grep with --extended-regexp much slower on Ubuntu 16.04

Karl Auer kauer at biplane.com.au
Thu Feb 8 21:03:43 UTC 2018


On Thu, 2018-02-08 at 16:42 +0000, Brian Bird wrote:
> Eg. On Ubuntu 14.04
> # openssl rand -out /tmp/random.txt -base64 100000000; time grep --
> extended-regexp "[0-9]{10}$" /tmp/random.txt

It's possible that the generation of random data is taking longer on
one than the other. For this sort of test, you want to make sure that
the test is using the same data on both systems. Pre-generate those
chunk of random data and use the same chunks on both systems.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A






More information about the ubuntu-users mailing list