thin-provisioning-tools/functional-tests/regex-bench.scm
Joe Thornber 27eb4d8ce4 [functional-tests/regex] more optimisation.
I think we're going to have to lose the call/cc; something is allocating
a lot of memory.
2017-08-18 19:28:07 +01:00

12 lines
334 B
Scheme

(import (chezscheme)
(regex)
(loops))
(let ((rx (compile-rx
(seq (seq (star (lit "a"))
(lit "foo"))
(plus
(lit "b"))))))
(time (upto (n 1000000)
(rx "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafoobbbbbbb"))))