Last active
April 17, 2020 19:15
-
-
Save headius/36cfe66789f9bc1cf98c0ffac0265271 to your computer and use it in GitHub Desktop.
Zero-cost oneshot line coverage in JRuby 9.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[] ~/projects/jruby $ jruby -Xcompile.invokedynamic -Xfixnum.cache=false -e 'load "../bench2018/bench_mandelbrot.rb"' | |
0.14059200000000002 | |
0.14031 | |
0.14225 | |
0.139491 | |
0.132145 | |
0.143139 | |
0.132212 | |
0.134711 | |
0.13967700000000002 | |
0.13581300000000002 | |
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
[] ~/projects/jruby $ jruby -Xcompile.invokedynamic -Xfixnum.cache=false -rcoverage -e 'Coverage.start(oneshot_lines: true); load "../bench2018/bench_mandelbrot.rb"; p Coverage.result' | |
0.14324599999999998 | |
0.13825 | |
0.14143399999999998 | |
0.13478 | |
0.133028 | |
0.138501 | |
0.13390200000000002 | |
0.141196 | |
0.13159300000000002 | |
0.13553300000000001 | |
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5] | |
{"/Users/headius/projects/bench2018/bench_mandelbrot.rb"=>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment