I can not really share the log file in question (it has sensitive customer
data), but I did run the following test.
root@piks:/tmp# time result=`grep -a 'best_bid' ff.log`
real0m0.026s
user0m0.020s
sys 0m0.004s
root@piks:/tmp# time result=`grep -a 'best_bid\|fixed' ff.log`
real
Control: tag -1 + moreinfo
El 15/11/18 a las 12:18, Jan van den Berg escribió:
>Just a fraction better (with -a and LANG=C)
>Ran it multiple times, stays just under 6 seconds now:
>real 0m5.835s
>user 0m5.720s
>sys 0m0.060s
>Still a far cry from the original /
Just a fraction better (with -a and LANG=C)
Ran it multiple times, stays just under 6 seconds now:
real0m5.835s
user0m5.720s
sys 0m0.060s
Still a far cry from the original / other results (under a second).
The logfile it greps is valid XML data.
Jan
Op wo 14 nov. 2018 om 15:19
Dear Jan,
El 13/11/18 a las 17:09, Jan van den Berg escribió:
> Package: grep
> Version: 2.27-2
> Severity: normal
>
> Dear Maintainer,
>
> I just upgraded from Debian 8 to 9 and noticed that a script which I run
> several times per day was really slow:
>
> real0m6.384s
> user0m6.288s
Package: grep
Version: 2.27-2
Severity: normal
Dear Maintainer,
I just upgraded from Debian 8 to 9 and noticed that a script which I run
several times per day was really slow:
real0m6.384s
user0m6.288s
sys 0m0.036s
This used to take well under a second.
I dug a little deeper and
5 matches
Mail list logo