diff --git a/extra/benchmark/completion/completion.factor b/extra/benchmark/completion/completion.factor new file mode 100644 index 0000000000..1c7d921f8b --- /dev/null +++ b/extra/benchmark/completion/completion.factor @@ -0,0 +1,15 @@ + +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 + } + ] replicate concat [ name-completions ] keep + [ length ] bi@ assert= ; + +MAIN: completion-benchmark