Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created June 10, 2011 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hosiawak/58a1c6cdfe3a3a2c9b88 to your computer and use it in GitHub Desktop.
Save hosiawak/58a1c6cdfe3a3a2c9b88 to your computer and use it in GitHub Desktop.
karol@mint ~/projects/personal $ ruby -v
rubinius 2.0.0dev (1.8.7 79e1d425 yyyy-mm-dd JI) [i686-pc-linux-gnu]
karol@mint ~/projects/personal $ ruby bug.rb
1 runs:
speed-up: threads 11.649/11.309 = 1.030
efficiency: 103.010%
speed-up: procs 11.649/10.743 = 1.084
efficiency: 108.431%
2 runs:
speed-up: threads 21.431/24.109 = 0.889
efficiency: 44.446%
speed-up: procs 21.431/12.339 = 1.737
efficiency: 86.838%
3 runs:
speed-up: threads 32.352/36.233 = 0.893
efficiency: 29.763%
speed-up: procs 32.352/18.840 = 1.717
efficiency: 57.239%
4 runs:
speed-up: threads 43.111/48.324 = 0.892
efficiency: 22.303%
speed-up: procs 43.111/26.628 = 1.619
efficiency: 40.476%
5 runs:
speed-up: threads 54.490/60.523 = 0.900
efficiency: 18.006%
speed-up: procs 54.490/31.009 = 1.757
efficiency: 35.145%
karol@mint ~/projects/personal $ ruby bug.rb
1 runs:
[BUG: Tried to stop but threads still running!]
ruby(_ZN8rubinius3bugEPKc+0x80) [0x817e630]
ruby(_ZN8rubinius11SharedState14stop_the_worldEPNS_13ManagedThreadE+0x23c) [0x82394bc]
ruby(_ZN8rubinius12ObjectMemory13collect_maybeEPNS_2VMEPNS_9CallFrameE+0x128) [0x819ab58]
ruby(_ZN8rubinius2VM13collect_maybeEPNS_9CallFrameE+0x33) [0x826a803]
ruby(rbx_check_interrupts+0xa3) [0x8350493]
[0x18796c]
ruby(_ZN8rubinius11InlineCache18check_cache_fixnumEPNS_2VMEPS0_PNS_9CallFrameERNS_9ArgumentsE+0x74) [0x8181664]
speed-up: threads 11.282/11.269 = 1.001
efficiency: 100.113%
speed-up: procs 11.282/0.015 = 755.410
efficiency: 75541.001%
2 runs:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment