Trying 1M iterations on a relatively complex lpeg.re pattern, these are the results:
$ time luajit test_lpeglj.lua|wc -l
1000000
real 0m49.544s
user 0m49.509s
sys 0m0.540s
$ time luajit test_lulpeg.lua|wc -l
1000000
real 0m18.219s
user 0m18.192s
sys 0m0.492s
$ time luajit test_lpeg.lua|wc -l
1000000
real 0m3.004s
user 0m3.022s
sys 0m0.143s
$ luajit -v
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2020 Mike Pall. https://luajit.org/
is this expected?
Trying 1M iterations on a relatively complex lpeg.re pattern, these are the results:
is this expected?