in reply to Re^2: search array for closest lower and higher number from another array
in thread search array for closest lower and higher number from another array
Hm. On my Win64 system the difference between Perl and grep is much smaller.
[15:00:05.53] c:\test>perl -nle"/234/ && ++$c }{ print $c" 1GB.dat 6791 [15:00:17.31] ## 11.78 seconds [15:01:05.67] c:\test>grep -c -F 234 1GB.dat 6791 [15:01:14.28] c:\test> ## 8.61 seconds
I don't see much wrong with your benchmark, so I wonder if that means your Perl is much slower than mine or my grep slower than yours?
|
|---|