Heck, forget about RAM, the output of both programs don't even match.
That awk is pretty efficient and fast is no surprise ;)