2004-08-25 20:51:19 -04:00
|
|
|
IN: scratchpad
|
|
|
|
USE: math
|
|
|
|
USE: test
|
2004-12-17 19:27:42 -05:00
|
|
|
USE: compiler
|
2005-01-06 23:16:13 -05:00
|
|
|
USE: kernel
|
2004-08-25 20:51:19 -04:00
|
|
|
|
2005-01-06 23:16:13 -05:00
|
|
|
: small-fac-benchmark
|
|
|
|
#! This tests fixnum math.
|
|
|
|
1 swap [ 10 fac 10 [ 1 + / ] times* max ] times ; compiled
|
|
|
|
|
|
|
|
: big-fac-benchmark
|
2004-12-29 03:35:46 -05:00
|
|
|
10000 fac 10000 [ 1 + / ] times* ; compiled
|
2004-12-17 19:27:42 -05:00
|
|
|
|
2005-01-06 23:16:13 -05:00
|
|
|
[ 1 ] [ big-fac-benchmark ] unit-test
|
|
|
|
|
|
|
|
[ 1 ] [ 1000000 small-fac-benchmark ] unit-test
|