[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"))
|
(time (upto (n 1000000)
|
||||||
(lit "foo"))
|
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
||||||
(plus
|
|
||||||
(lit "b"))))))
|
|
||||||
(time (upto (n 1000000)
|
|
||||||
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user