Skip to content

Instantly share code, notes, and snippets.

@SpringMT
Created September 23, 2013 19:48
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 SpringMT/6675931 to your computer and use it in GitHub Desktop.
Save SpringMT/6675931 to your computer and use it in GitHub Desktop.
for vs multi
% perl scripts/test_insert.pl ~/DBIx-InsertMultiTranslator
Benchmark: timing 100 iterations of for, multi...
for: 2 wallclock secs ( 0.07 usr + 0.10 sys = 0.17 CPU) @ 588.24/s (n=100)
(warning: too few iterations for a reliable count)
multi: 2 wallclock secs ( 2.64 usr + 0.00 sys = 2.64 CPU) @ 37.88/s (n=100)
Rate multi for
multi 37.9/s -- -94%
for 588/s 1453% --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment