[Bug 224160] wc -c is slow
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Dec 8 08:28:27 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224160
--- Comment #1 from Wolfram Schneider <wosch at FreeBSD.org> ---
In case you don’t want download 61GB for testing, here is a much simpler test
case using dd(1)
# FreeBSD wc
$ dd if=/dev/zero of=/dev/stdout bs=1m count=2000 | time wc -c
2000+0 records in
2000+0 records out
2097152000 bytes transferred in 9.587758 secs (218732260 bytes/sec)
2097152000
9.58 real 9.15 user 0.39 sys
# GNU wc
$ dd if=/dev/zero of=/dev/stdout bs=1m count=2000 | time gwc -c
2000+0 records in
2000+0 records out
2097152000 bytes transferred in 0.821867 secs (2551693015 bytes/sec)
2097152000
0.82 real 0.04 user 0.40 sys
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list