News for hackers. Stuff that matters.
Re:Don't MAWK AWK - the fastest and most elegant big data mu... by fizx on Thursday September 10, 2009 @02:13PM (#815822)
Depends. If you do a naive Ruby implementation, then you'll be CPU-bound quite quickly.

  #!/usr/bin/env ruby
  while line = STDIN.gets
    puts line.split(/\s+/).first
  end
This pegs my CPU at only 2MB/s, well below the IO capabilities of any modern system. I guess the tool you're using matters, which I think was the original point.

There are no comments on this comment yet.