Skip to content

Instantly share code, notes, and snippets.

@masaki
Created April 6, 2009 02:02
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 masaki/90608 to your computer and use it in GitHub Desktop.
Save masaki/90608 to your computer and use it in GitHub Desktop.
# release-0.01 (CPAN)
Benchmark: timing 10000 iterations of match, match_block, to_block, with...
match: 14.2198 wallclock secs (13.88 usr + 0.05 sys = 13.93 CPU) @ 717.88/s (n=10000)
match_block: 14.6266 wallclock secs (14.44 usr + 0.04 sys = 14.48 CPU) @ 690.61/s (n=10000)
to_block: 15.8561 wallclock secs (15.69 usr + 0.05 sys = 15.74 CPU) @ 635.32/s (n=10000)
with: 15.2271 wallclock secs (14.78 usr + 0.07 sys = 14.85 CPU) @ 673.40/s (n=10000)
# 32664d58be4ebfea9c445aa91bac1709e62ce5fa (Class::Accessor::Fast)
Benchmark: timing 10000 iterations of match, match_block, to_block, with...
match: 8.87748 wallclock secs ( 8.79 usr + 0.02 sys = 8.81 CPU) @ 1135.07/s (n=10000)
match_block: 9.01892 wallclock secs ( 8.97 usr + 0.01 sys = 8.98 CPU) @ 1113.59/s (n=10000)
to_block: 9.54057 wallclock secs ( 9.47 usr + 0.01 sys = 9.48 CPU) @ 1054.85/s (n=10000)
with: 9.35841 wallclock secs ( 9.34 usr + 0.00 sys = 9.34 CPU) @ 1070.66/s (n=10000)
# 2d1d2180288f7132296f32e64c5ecc20211a2788 (Any::Moose and stack)
Benchmark: timing 10000 iterations of match, match_block, to_block, with...
match: 10.5347 wallclock secs (10.32 usr + 0.03 sys = 10.35 CPU) @ 966.18/s (n=10000)
match_block: 10.5684 wallclock secs (10.36 usr + 0.03 sys = 10.39 CPU) @ 962.46/s (n=10000)
to_block: 10.7481 wallclock secs (10.58 usr + 0.04 sys = 10.62 CPU) @ 941.62/s (n=10000)
with: 10.4275 wallclock secs (10.36 usr + 0.02 sys = 10.38 CPU) @ 963.39/s (n=10000)
# 25bc9f710da1a6fa517cb7845f6c56c7305a3605 (Any::Moose)
Benchmark: timing 10000 iterations of match, match_block, to_block, with...
match: 11.6604 wallclock secs (11.45 usr + 0.05 sys = 11.50 CPU) @ 869.57/s (n=10000)
match_block: 12.3152 wallclock secs (12.11 usr + 0.03 sys = 12.14 CPU) @ 823.72/s (n=10000)
to_block: 12.3703 wallclock secs (12.27 usr + 0.03 sys = 12.30 CPU) @ 813.01/s (n=10000)
with: 12.4425 wallclock secs (12.34 usr + 0.04 sys = 12.38 CPU) @ 807.75/s (n=10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment