Pierwsza maszyna
Kod: Zaznacz cały
root@Server:~# time grep "line\|kaktus" test_kaktus_f > /dev/null
real 0m0.149s
user 0m0.138s
sys 0m0.011s
root@Server:~# time cat test_kaktus_f |grep line > /dev/null
real 0m0.222s
user 0m0.202s
sys 0m0.028s
Kod: Zaznacz cały
root@webster:~ # time grep "line\|kaktus" test_kaktus_f > /dev/null
real 0m0.083s
user 0m0.082s
sys 0m0.002s
root@webster:~ # time cat test_kaktus_f |grep line|grep kaktus > /dev/null
real 0m0.233s
user 0m0.338s
sys 0m0.014s