2 ms·
This looked fun, so I did my own micro-benchmark on an rpi3, armv7 : $ for i in bench-native bench-pcre bench-pcrejit bench-rure; do echo -n $i; (cd $i
by Aissen 8y ago
This looked fun, so I did my own micro-benchmark on an rpi3, armv7 :
$ for i in bench-native bench-pcre bench-pcrejit bench-rure; do echo -n $i; (cd $i; time ./$i < ../input500000.txt > /dev/null) ; echo; done
bench-native
real 0m24,883s
user 0m56,580s
sys 0m0,120s
bench-pcre
real 0m13,125s
user 0m27,200s
sys 0m0,160s
bench-pcrejit
real 0m2,688s
user 0m3,140s
sys 0m0,120s
bench-rure
real 0m2,779s
user 0m3,300s
sys 0m0,090s
It looks like pcre with JIT enabled is always faster than the rure version, but this is very close.