Skip to content

Instantly share code, notes, and snippets.

@savonarola
Created January 28, 2011 22:39
Show Gist options
  • Save savonarola/801152 to your computer and use it in GitHub Desktop.
Save savonarola/801152 to your computer and use it in GitHub Desktop.
1:32 savonarola@thnk:~/dev/ruby-perl>perl test_from_perl.pl
empty:
timethis 10000000: 5 wallclock secs ( 3.67 usr + 0.00 sys = 3.67 CPU) @ 2724795.64/s (n=10000000)
withdb:
timethis 10000: 3 wallclock secs ( 1.41 usr + 0.39 sys = 1.80 CPU) @ 5555.56/s (n=10000)
1:33 savonarola@thnk:~/dev/ruby-perl>ruby test_from_ruby.rb
user system total real
empty: 1.800000 0.000000 1.800000 ( 1.798274)
withdb: 1.620000 0.440000 2.060000 ( 3.355840)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment