diff options
-rw-r--r-- | src/library/scala/testing/Benchmark.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/library/scala/testing/Benchmark.scala b/src/library/scala/testing/Benchmark.scala index 936db014c0..90a9292db2 100644 --- a/src/library/scala/testing/Benchmark.scala +++ b/src/library/scala/testing/Benchmark.scala @@ -22,7 +22,14 @@ import compat.Platform * {{{ * > scala sort1 5 * }}} - * This will run the benchmark 10 times, and print the execution times to stdout. + * This will run the benchmark 5 times, forcing a garbage collection + * between runs, and printing the execution times to stdout. + * + * It is also possible to add a multiplier, so + * {{{ + * > scala sort1 5 10 + * }}} + * will run the entire benchmark 10 times, each time for 5 runs. * * @author Iulian Dragos, Burak Emir */ |