Hacker News new | ask | show | jobs
by jojo1 5536 days ago
How fast is it?
2 comments

Go home pru...

rw@raccoon:~> du -h messages

19M messages

rw@raccoon:~> time grep -e "foobar" < messages

real 0m0.030s

user 0m0.022s

sys 0m0.008s

rw@raccoon:~> time pru /foobar/ < messages

real 0m0.796s

user 0m0.722s

sys 0m0.071s

A valid question, but a counter-question is: which is more expensive: development time, or run time?

The answer is usually (but not always) developer time.

I'm using grep/awk/sed all day long, I need never more than 10 seconds to build a command group...