Skip to content

Instantly share code, notes, and snippets.

@thatrubylove
Created December 21, 2013 19:28
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 thatrubylove/8073789 to your computer and use it in GitHub Desktop.
Save thatrubylove/8073789 to your computer and use it in GitHub Desktop.
Interesting results from benchmarking
[
{:type=>"Functional::Lists::SinglyLinked", :operation=>"#plus", :sample_size=>10000, :benchmark=>0.116519289},
{:type=>"Functional::Lists::SinglyLinked", :operation=>"#plus", :sample_size=>50000, :benchmark=>0.557987583},
{:type=>"Functional::Lists::SinglyLinked", :operation=>"#plus", :sample_size=>750000, :benchmark=>18.900261197},
{:type=>"Functional::Lists::SinglyLinked", :operation=>"#plus", :sample_size=>2000000, :benchmark=>145.656489316}
],
[
{:type=>"Array", :operation=>"#plus", :sample_size=>10000, :benchmark=>1.640012864},
{:type=>"Array", :operation=>"#plus", :sample_size=>50000, :benchmark=>5.108800796},
{:type=>"Array", :operation=>"#plus", :sample_size=>750000, :benchmark=>71.655338726},
{:type=>"Array", :operation=>"#plus", :sample_size=>2000001, :benchmark=>99.299921618}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment