Skip to content

Instantly share code, notes, and snippets.

@timurb
Created December 17, 2012 12:34
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 timurb/4317972 to your computer and use it in GitHub Desktop.
Save timurb/4317972 to your computer and use it in GitHub Desktop.
$ rvm current
ree-1.8.7-2011.03
~
$ ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03
~
$ ruby -rrbconfig -e 'puts RbConfig::CONFIG["CFLAGS"]'
-g -O2 -O3
~
$ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
ruby -e 21.56s user 0.01s system 99% cpu 21.638 total
$ rvm current
ree-1.8.7-2011.03
~
$ ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2011.03
~
$ ruby -rrbconfig -e 'puts RbConfig::CONFIG["CFLAGS"]'
-g -O2
~
$ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
ruby -e 24.54s user 0.01s system 99% cpu 24.570 total
$ rvm current
ree-1.8.7-2012.02
~
$ ruby --version
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02
~
$ ruby -rrbconfig -e 'puts RbConfig::CONFIG["CFLAGS"]'
-g -O2 -O3
~
$ time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
100000000
ruby -e 22.43s user 0.01s system 99% cpu 22.492 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment