From: Jason Williams Date: 2003-08-27T00:27:44+09:00 Subject: Re: Ruby launching system apps? In article <3F4A7612.3050103@ps.ge.com>, Bermejo, Rodrigo wrote: > time ruby -p -e 'gsub("sed","ruby")' file_with_1000000_sed_lines > 7.61s user 2.02s system 35% cpu 27.161 total > > time sed s/sed/ruby/g file_with_1000000_sed_lines > 2.05s user 1.71s system 32% cpu 11.571 total Wrong comparison, given the subject of the thread. Invoking sed from within ruby is much slower than pure ruby, by my experiments.