[functional-tests/regex-bench] update benchmark to use regex from a

string rather than combinators.
This commit is contained in:
Joe Thornber 2017-08-29 13:26:14 +01:00
parent 14d1751022
commit 13cee36804

View File

@ -2,10 +2,6 @@
(regex)
(loops))
(let ((rx (compile-rx
(seq (seq (star (lit "a"))
(lit "foo"))
(plus
(lit "b"))))))
(let ((rx (regex "a*foob+")))
(time (upto (n 1000000)
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))