Skip to content

Instantly share code, notes, and snippets.

@shugo
Created April 4, 2012 01:05
Show Gist options
  • Save shugo/2296880 to your computer and use it in GitHub Desktop.
Save shugo/2296880 to your computer and use it in GitHub Desktop.
Rehearsal ---------------------------------------------------------
Hash aset 0.320000 0.000000 0.320000 ( 0.320000)
Hash aref 0.192000 0.000000 0.192000 ( 0.192000)
Hash delete 0.091000 0.000000 0.091000 ( 0.091000)
AVLTree aset 2.724000 0.000000 2.724000 ( 2.723000)
AVLTree aref 0.787000 0.000000 0.787000 ( 0.786000)
AVLTree delete 2.323000 0.000000 2.323000 ( 2.323000)
RedBlackTree aset 3.615000 0.000000 3.615000 ( 3.615000)
RedBlackTree aref 0.581000 0.000000 0.581000 ( 0.582000)
RedBlackTree delete 2.087000 0.000000 2.087000 ( 2.088000)
Immutable::Map insert 4.387000 0.000000 4.387000 ( 4.387000)
Immutable::Map aref 0.809000 0.000000 0.809000 ( 0.809000)
Immutable::Map delete 5.690000 0.000000 5.690000 ( 5.690000)
----------------------------------------------- total: 23.606000sec
user system total real
Hash aset 0.062000 0.000000 0.062000 ( 0.063000)
Hash aref 0.045000 0.000000 0.045000 ( 0.045000)
Hash delete 0.053000 0.000000 0.053000 ( 0.054000)
AVLTree aset 1.792000 0.000000 1.792000 ( 1.792000)
AVLTree aref 0.501000 0.000000 0.501000 ( 0.501000)
AVLTree delete 1.946000 0.000000 1.946000 ( 1.946000)
RedBlackTree aset 2.858000 0.000000 2.858000 ( 2.858000)
RedBlackTree aref 0.506000 0.000000 0.506000 ( 0.506000)
RedBlackTree delete 1.242000 0.000000 1.242000 ( 1.242000)
Immutable::Map insert 3.771000 0.000000 3.771000 ( 3.772000)
Immutable::Map aref 0.769000 0.000000 0.769000 ( 0.770000)
Immutable::Map delete 4.858000 0.000000 4.858000 ( 4.858000)
@shugo
Copy link
Author

shugo commented Apr 4, 2012

jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK Server VM 1.6.0_23) [linux-i386-java]

@nahi
Copy link

nahi commented Apr 4, 2012

Java SE 7上のjruby-headならさらに1.3倍速くなります。という発表は明日!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment