Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created July 24, 2012 15:04
Show Gist options
  • Save Sciss/3170530 to your computer and use it in GitHub Desktop.
Save Sciss/3170530 to your computer and use it in GitHub Desktop.
BenchResults.txt
(1) :::::: Scala 2.9.2 ::::::
[info] Running benchmark.Bench1
Running benchmarks for n = 1000
while1 took 630.9814 µs per run
while2 took 71.3434 µs per run
for1 took 5487.2262 µs per run
for2 took 7332.3932 µs per run
[success] Total time: 147 s, completed Jul 24, 2012 3:40:24 PM
[info] Running benchmark.Bench2
Running benchmarks for n = 1000
while1 took 628.3087 µs per run
while2 took 71.3108 µs per run
for1 took 5393.0756 µs per run
for2 took 8166.9081 µs per run
[success] Total time: 144 s, completed Jul 24, 2012 3:43:27 PM
(2) :::::: Scala 2.9.2 / -optimize ::::::
[info] Running benchmark.Bench1
Running benchmarks for n = 1000
while1 took 625.8193 µs per run
while2 took 0.8017 µs per run
for1 took 5812.1191 µs per run
for2 took 973.8434 µs per run
[success] Total time: 88 s, completed Jul 24, 2012 3:45:34 PM
[info] Running benchmark.Bench2
Running benchmarks for n = 1000
while1 took 58255.6019 µs per run // !!!!
while2 took 0.879 µs per run
for1 took 6387.7572 µs per run
for2 took 973.7738 µs per run
[success] Total time: 658 s, completed Jul 24, 2012 3:56:44 PM
(3) :::::: Scala 2.10.0-M5 ::::::
[info] Running benchmark.Bench1
Running benchmarks for n = 1000
while1 took 625.3797 µs per run
while2 took 70.9307 µs per run
for1 took 5384.7453 µs per run
for2 took 958.7821 µs per run
[success] Total time: 90 s, completed Jul 24, 2012 3:35:20 PM
[info] Running benchmark.Bench2
Running benchmarks for n = 1000
while1 took 629.1972 µs per run
while2 took 71.1964 µs per run
for1 took 5311.2149 µs per run
for2 took 962.7186 µs per run
[success] Total time: 73 s, completed Jul 24, 2012 3:37:00 PM
(4) :::::: Scala 2.10.0-M5 / -optimize ::::::
[info] Running benchmark.Bench1
Running benchmarks for n = 1000
while1 took 626.2676 µs per run
while2 took 0.8033 µs per run
for1 took 6651.5304 µs per run
for2 took 954.851 µs per run
[success] Total time: 93 s, completed Jul 24, 2012 3:28:53 PM
[info] Running benchmark.Bench2
Running benchmarks for n = 1000
while1 took 58093.068 µs per run // !!!!
while2 took 0.8553 µs per run
for1 took 6715.2547 µs per run
for2 took 953.9164 µs per run
[success] Total time: 665 s, completed Jul 24, 2012 3:25:19 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment