|
|
|
|
|
by GalacticDomin8r
2635 days ago
|
|
It would help if you tested just grep when benchmarking grep. These datapoints tell a much different story. # /usr/bin/grep -V
grep (BSD grep) 2.6.0-FreeBSD
root@m6600:~ # /usr/local/bin/grep -V
grep (GNU grep) 3.3
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others; see
<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
root@m6600:~ # /usr/bin/time /usr/bin/grep X-User-Agent packetdump.pcap -c
60
0.54 real 0.45 user 0.07 sys
root@m6600:~ # /usr/bin/time /usr/bin/grep X-User-Agent packetdump.pcap -c
60
0.54 real 0.44 user 0.08 sys
root@m6600:~ # /usr/bin/time /usr/bin/grep X-User-Agent packetdump.pcap -c
60
0.54 real 0.41 user 0.11 sys
root@m6600:~ # /usr/bin/time /usr/local/bin/grep X-User-Agent packetdump.pcap -c
60
0.58 real 0.49 user 0.08 sys
root@m6600:~ # /usr/bin/time /usr/local/bin/grep X-User-Agent packetdump.pcap -c
60
0.60 real 0.48 user 0.11 sys
root@m6600:~ # /usr/bin/time /usr/local/bin/grep X-User-Agent packetdump.pcap -c
60
0.59 real 0.50 user 0.08 sys
root@m6600:~ # du -h -s packetdump.pcap
225M packetdump.pcap
|
|