Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir Sedach
storage
Commits
c38add28
Commit
c38add28
authored
Dec 23, 2011
by
Stas Boukarev
Browse files
benchmarks.lisp: Add time-with-gc macro.
parent
8c5fe050
Changes
1
Show whitespace changes
Inline
Side-by-side
benchmarks.lisp
View file @
c38add28
...
...
@@ -13,10 +13,16 @@
(
loop
repeat
amount
do
(
write-object
object
stream
)))))
(
defun
gc
()
#+
sbcl
(
sb-ext:gc
:full
t
))
(
defmacro
time-with-gc
(
&body
body
)
`
(
progn
(
gc
)
(
time
(
progn
,@
body
))))
(
defun
load-test
()
#+
sbcl
(
sb-ext:gc
:full
t
)
(
with-io-file
(
stream
*test-file*
)
(
time
(
time
-with-gc
(
loop
repeat
(
read-next-object
stream
)
do
(
read-next-object
stream
)))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment