[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)
|
||||
(loops))
|
||||
|
||||
(let ((rx (compile-rx
|
||||
(seq (seq (star (lit "a"))
|
||||
(lit "foo"))
|
||||
(plus
|
||||
(lit "b"))))))
|
||||
(time (upto (n 1000000)
|
||||
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
||||
(let ((rx (regex "a*foob+")))
|
||||
(time (upto (n 1000000)
|
||||
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))
|
||||
|
Loading…
Reference in New Issue
Block a user