[Bug 223553] bsdgrep in -current is 10 times slower than before
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 9 09:18:06 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223553
Bug ID: 223553
Summary: bsdgrep in -current is 10 times slower than before
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: wosch at FreeBSD.org
While working on bug #223532 I noticed that bsdgrep on a recent
FreeBSD12-current is much slower than on FreeBSD11-stable
On both machines runs the same bsdgrep version 2.6.0
$ /usr/bin/bsdgrep -V
bsdgrep (BSD grep, GNU compatible) 2.6.0-FreeBSD
How to repeat:
First, we create a 100MB text file:
for i in $(seq 1 20);do man tcsh;done > /tmp/tcsh20;
for i in $(seq 1 20); do cat /tmp/tcsh20;done > /tmp/tcsh400
$ du -hs /tmp/tcsh400
99M /tmp/tcsh400
# FreeBSD11-stable
LANG=en_CA.UTF-8 time /usr/bin/bsdgrep -ic foobar /tmp/tcsh400
0
2.06 real 2.00 user 0.05 sys
# FreeBSD12-current
LANG=en_CA.UTF-8 time /usr/bin/bsdgrep -ic foobar /tmp/tcsh400
0
19.27 real 19.17 user 0.05 sys
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list