2012-06-19 17:09:38 -04:00
|
|
|
|
|
|
|
|
USING: kernel sequences tools.completion ;
|
|
|
|
|
|
|
|
|
|
IN: benchmark.completion
|
|
|
|
|
|
|
|
|
|
: completion-benchmark ( -- )
|
|
|
|
|
"nth" 25,000 [
|
|
|
|
|
{
|
|
|
|
|
nth ?nth nths set-nth insert-nth
|
|
|
|
|
remove-nth remove-nth! change-nth
|
|
|
|
|
}
|
2020-09-22 14:32:52 -04:00
|
|
|
] replicate concat [ named completions ] keep
|
2012-06-19 17:09:38 -04:00
|
|
|
[ length ] bi@ assert= ;
|
|
|
|
|
|
|
|
|
|
MAIN: completion-benchmark
|