Handbook
Glossary
benchmark ( quot -- runtime )
Factor handbook
»
Developer tools
»
Timing code and collecting statistics
Prev:
gc-summary. ( -- )
Vocabulary
tools
.
time
Inputs
quot
a
quotation
Outputs
runtime
the runtime in nanoseconds
Word description
Runs a quotation, measuring the total wall clock time.
Notes
A nicer word for interactive use is
time
.
See also
time
Definition
USING:
kernel
math
system
;
IN:
tools.time
:
benchmark
( quot -- runtime )
nano-count
[
call
nano-count
]
dip
-
;
inline