Skip to content

Instantly share code, notes, and snippets.

Created January 3, 2017 16:55
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 anonymous/a006865001e5fe3d2b5b3ca04c1f9413 to your computer and use it in GitHub Desktop.
Save anonymous/a006865001e5fe3d2b5b3ca04c1f9413 to your computer and use it in GitHub Desktop.
perl5.10.1 -Ilib -MMojo::File -MPath::Tiny -Mojo -E 'n { Path::Tiny::path("/foo/bar")->child("baz") } 100000; n { Mojo::File::path("/foo/bar")->child("baz") } 100000'
0.763295 wallclock secs ( 0.76 usr + 0.00 sys = 0.76 CPU) @ 131578.95/s (n=100000)
0.740361 wallclock secs ( 0.74 usr + 0.00 sys = 0.74 CPU) @ 135135.14/s (n=100000)
perl5.24.0 -Ilib -MMojo::File -MPath::Tiny -Mojo -E 'n { Path::Tiny::path("/foo/bar")->child("baz") } 100000; n { Mojo::File::path("/foo/bar")->child("baz") } 100000'
0.457183 wallclock secs ( 0.46 usr + 0.00 sys = 0.46 CPU) @ 217391.30/s (n=100000)
0.406894 wallclock secs ( 0.41 usr + 0.00 sys = 0.41 CPU) @ 243902.44/s (n=100000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment