benchmark.struct-arrays: doesn't actually need HINTS:
parent
908b4742c5
commit
9d61c162e2
|
@ -2,7 +2,7 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors classes.struct combinators.smart fry kernel
|
USING: accessors classes.struct combinators.smart fry kernel
|
||||||
math math.functions math.order math.parser sequences
|
math math.functions math.order math.parser sequences
|
||||||
struct-arrays hints io ;
|
struct-arrays io ;
|
||||||
IN: benchmark.struct-arrays
|
IN: benchmark.struct-arrays
|
||||||
|
|
||||||
STRUCT: point { x float } { y float } { z float } ;
|
STRUCT: point { x float } { y float } { z float } ;
|
||||||
|
@ -45,8 +45,6 @@ STRUCT: point { x float } { y float } { z float } ;
|
||||||
: struct-array-benchmark ( len -- )
|
: struct-array-benchmark ( len -- )
|
||||||
make-points [ normalize-points ] [ max-points ] bi print-point ;
|
make-points [ normalize-points ] [ max-points ] bi print-point ;
|
||||||
|
|
||||||
HINTS: struct-array-benchmark fixnum ;
|
|
||||||
|
|
||||||
: main ( -- ) 5000000 struct-array-benchmark ;
|
: main ( -- ) 5000000 struct-array-benchmark ;
|
||||||
|
|
||||||
MAIN: main
|
MAIN: main
|
||||||
|
|
Loading…
Reference in New Issue