Skip to content

Instantly share code, notes, and snippets.

@shugo
Created April 4, 2012 00:57
Show Gist options
  • Save shugo/2296820 to your computer and use it in GitHub Desktop.
Save shugo/2296820 to your computer and use it in GitHub Desktop.
Rehearsal ---------------------------------------------------------
Hash aset 0.140000 0.010000 0.150000 ( 0.146636)
Hash aref 0.070000 0.000000 0.070000 ( 0.064835)
Hash delete 0.110000 0.000000 0.110000 ( 0.111818)
AVLTree aset 4.310000 0.010000 4.320000 ( 4.319618)
AVLTree aref 1.090000 0.000000 1.090000 ( 1.092948)
AVLTree delete 4.970000 0.000000 4.970000 ( 4.968573)
RedBlackTree aset 5.570000 0.000000 5.570000 ( 5.568030)
RedBlackTree aref 1.100000 0.000000 1.100000 ( 1.093582)
RedBlackTree delete 3.360000 0.000000 3.360000 ( 3.363166)
Immutable::Map insert 9.840000 0.000000 9.840000 ( 9.845281)
Immutable::Map aref 1.960000 0.000000 1.960000 ( 1.961723)
Immutable::Map delete 14.230000 0.020000 14.250000 ( 14.246223)
----------------------------------------------- total: 46.790000sec
user system total real
Hash aset 0.110000 0.000000 0.110000 ( 0.110948)
Hash aref 0.070000 0.000000 0.070000 ( 0.074677)
Hash delete 0.120000 0.000000 0.120000 ( 0.115417)
AVLTree aset 4.170000 0.000000 4.170000 ( 4.175209)
AVLTree aref 1.060000 0.000000 1.060000 ( 1.056710)
AVLTree delete 4.690000 0.000000 4.690000 ( 4.689218)
RedBlackTree aset 5.710000 0.000000 5.710000 ( 5.714609)
RedBlackTree aref 1.090000 0.000000 1.090000 ( 1.094270)
RedBlackTree delete 3.180000 0.000000 3.180000 ( 3.183620)
Immutable::Map insert 9.620000 0.000000 9.620000 ( 9.618812)
Immutable::Map aref 2.050000 0.000000 2.050000 ( 2.056471)
Immutable::Map delete 16.480000 0.000000 16.480000 ( 16.474848)
@shugo
Copy link
Author

shugo commented Apr 4, 2012

ruby 2.0.0dev (2012-04-03 trunk 35220) [i686-linux]

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