[functional-tests/regex-bench] update benchmark to use regex from a
string rather than combinators.
This commit is contained in:
parent
14d1751022
commit
13cee36804
@ -2,10 +2,6 @@
|
|||||||
(regex)
|
(regex)
|
||||||
(loops))
|
(loops))
|
||||||
|
|
||||||
(let ((rx (compile-rx
|
(let ((rx (regex "a*foob+")))
|
||||||
(seq (seq (star (lit "a"))
|
|
||||||
(lit "foo"))
|
|
||||||
(plus
|
|
||||||
(lit "b"))))))
|
|
||||||
(time (upto (n 1000000)
|
(time (upto (n 1000000)
|
||||||
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
||||||
|
Loading…
Reference in New Issue
Block a user