set things up to remove the cache

svn: r4234
This commit is contained in:
Robby Findler 2006-09-04 01:55:59 +00:00
parent d10a0bec24
commit 204bc48a50

View File

@ -1,7 +1,20 @@
(require (planet "beginner.ss" ("robby" "redex.plt") "examples"))
#|
Time the cache-less version of the pattern matcher
under the theory that if this speeds up, the cache
can be used less, leading to less memory use, and
better performance.
(and I'm pretty sure that measuing the cache isn't
super useful.)
Robby
|#
(require (planet "reduction-semantics.ss" ("robby" "redex.plt" 2 4)))
(set-cache-size! #f)
(require (planet "beginner.ss" ("robby" "redex.plt" 2 4) "examples"))
(collect-garbage)
(printf "Now\n")
(time (begin
(run-tests) (run-tests) (run-tests) (run-tests) (run-tests)
(run-tests) (run-tests) (run-tests) (run-tests) (run-tests)
))
(time (begin (run-tests) (run-tests) (run-tests)))