Skip to content

Instantly share code, notes, and snippets.

@rexbutler
Created February 29, 2012 03:39
Show Gist options
  • Save rexbutler/1937398 to your computer and use it in GitHub Desktop.
Save rexbutler/1937398 to your computer and use it in GitHub Desktop.
Pair benchmark #1: Results
rex@rex-desktop:~/ruby_stuff/knight_puzzle$ ruby test_pair_speeds.rb
Rehearsal ---------------------------------------------------------
Create Array Pairs: 0.230000 0.020000 0.250000 ( 0.292854)
Create Hash Pairs: 1.340000 0.040000 1.380000 ( 1.432234)
Create Object Pairs: 0.600000 0.010000 0.610000 ( 0.638025)
------------------------------------------------ total: 2.240000sec
user system total real
Create Array Pairs: 0.190000 0.000000 0.190000 ( 0.197217)
Create Hash Pairs: 1.250000 0.010000 1.260000 ( 1.309144)
Create Object Pairs: 0.510000 0.010000 0.520000 ( 0.540731)
Rehearsal --------------------------------------------------------
Write Array Pairs: 0.310000 0.000000 0.310000 ( 0.330850)
Write Hash Pairs: 0.390000 0.010000 0.400000 ( 0.406595)
Write Object Pairs: 0.310000 0.010000 0.320000 ( 0.323708)
----------------------------------------------- total: 1.030000sec
user system total real
Write Array Pairs: 0.320000 0.000000 0.320000 ( 0.328616)
Write Hash Pairs: 0.400000 0.000000 0.400000 ( 0.410477)
Write Object Pairs: 0.320000 0.000000 0.320000 ( 0.327718)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment