collect-benchmarks needs to convert from nano not micro
parent
0d939f731a
commit
7e6479cd36
|
@ -1,11 +1,11 @@
|
||||||
! Copyright (c) 2007, 2008 Aaron Schaefer.
|
! Copyright (c) 2007, 2008 Aaron Schaefer.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: combinators.smart formatting fry io kernel macros math
|
USING: combinators.smart formatting fry io kernel macros math math.functions
|
||||||
math.functions math.statistics memory sequences tools.time ;
|
math.statistics memory sequences tools.time ;
|
||||||
IN: project-euler.ave-time
|
IN: project-euler.ave-time
|
||||||
|
|
||||||
MACRO: collect-benchmarks ( quot n -- seq )
|
MACRO: collect-benchmarks ( quot n -- seq )
|
||||||
swap '[ _ [ [ [ _ nullary ] preserving ] gc benchmark 1000 / ] replicate ] ;
|
swap '[ _ [ [ [ _ nullary ] preserving ] gc benchmark 6 10^ / ] replicate ] ;
|
||||||
|
|
||||||
: ave-time ( quot n -- )
|
: ave-time ( quot n -- )
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue