From: Rob Pike <robpike@gmail.com>
To: Dave Horsfall <dave@horsfall.org>
Cc: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Regular Expressions
Date: Mon, 10 Aug 2020 10:50:41 +1000 [thread overview]
Message-ID: <CAKzdPgwew+RMrEOTVv9KsP=djy=fAyUZiiw0=H8t81+sJfKh8w@mail.gmail.com> (raw)
In-Reply-To: <alpine.BSF.2.21.9999.2008100938290.3620@aneurin.horsfall.org>
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
Ken's grep for Plan 9 beats them all.
% time /usr/local/plan9/bin/grep -c . /tmp/x
39536274
real 0m1.731s
user 0m1.568s
sys 0m0.158s
% time /usr/bin/egrep -c . /tmp/x
39536274
real 0m9.798s
user 0m9.644s
sys 0m0.153s
%
% time /usr/local/plan9/bin/grep -c '(ab|cd)' /tmp/x
1023171
real 0m1.719s
user 0m1.560s
sys 0m0.158s
% time /usr/bin/egrep -c '(ab|cd)' /tmp/x
1023171
real 0m32.692s
user 0m32.525s
sys 0m0.166s-rob
[-- Attachment #2: Type: text/html, Size: 9453 bytes --]
next prev parent reply other threads:[~2020-08-10 0:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-01 21:12 Doug McIlroy
2020-08-09 23:44 ` Dave Horsfall
2020-08-10 0:50 ` Rob Pike [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-08-02 4:59 Rudi Blom
2020-08-01 0:00 Noel Chiappa
2020-07-31 22:57 Will Senn
2020-08-01 0:01 ` Bakul Shah
2020-08-01 0:36 ` Rob Pike
2020-08-01 0:53 ` John P. Linderman
2020-08-01 1:31 ` Bakul Shah
2020-08-01 1:39 ` Larry McVoy
2020-08-01 2:33 ` Will Senn
2020-08-01 2:50 ` Rich Morin
2020-08-01 3:01 ` Larry McVoy
2020-08-01 3:07 ` Will Senn
2020-08-01 4:31 ` Earl Baugh
2020-08-01 4:53 ` ron minnich
2020-08-01 5:48 ` Andrew Hume
2020-08-01 13:31 ` Richard Salz
2020-08-01 13:43 ` Andrew Hume
2020-08-02 0:45 ` Christopher Browne
2020-08-09 1:00 ` Dave Horsfall
2020-08-09 1:15 ` Nelson H. F. Beebe
2020-08-09 23:53 ` Dave Horsfall
2020-08-10 1:38 ` John Cowan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKzdPgwew+RMrEOTVv9KsP=djy=fAyUZiiw0=H8t81+sJfKh8w@mail.gmail.com' \
--to=robpike@gmail.com \
--cc=dave@horsfall.org \
--cc=tuhs@tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).