diff --git a/extra/benchmark/sort/sort.factor b/extra/benchmark/sort/sort.factor index 4171bb7196..2bf9df3251 100644 --- a/extra/benchmark/sort/sort.factor +++ b/extra/benchmark/sort/sort.factor @@ -1,9 +1,10 @@ -USING: io.files io.encodings.ascii kernel math math.parser -random sequences sorting ; +USING: io.files io.encodings.ascii kernel literals math +math.parser random sequences sorting ; IN: benchmark.sort +CONSTANT: numbers-to-sort $[ 300,000 200 random-integers ] + : sort-benchmark ( -- ) - 10 300000 200 random-integers - [ natural-sort drop ] curry times ; + 10 [ numbers-to-sort natural-sort drop ] times ; MAIN: sort-benchmark