[LTP] [PATCH 1/2] Optimise grep action in power_management.
Cyril Hrubis
chrubis@suse.cz
Tue Oct 27 17:35:17 CET 2015
Hi!
> root@p1:~# time (grep siblings /proc/cpuinfo > /dev/null)
> real 0m0.003s
> user 0m0.001s
> sys 0m0.002s
> root@p1:~# time (cat /proc/cpuinfo | grep siblings > /dev/null)
> real 0m0.004s
> user 0m0.002s
> sys 0m0.003s
I wouldn't say optimise in the commit message but rather simplify. Since
the difference in speed is not that big.
Otherwise the patches looks good.
--
Cyril Hrubis
chrubis@suse.cz
More information about the Ltp
mailing list