Commit graph

3 commits

Author SHA1 Message Date
Pier-Hugues Pellerin
fd4824c23f Add a micro benchmark runner
Fixes #3457
Add `rake benchmark:run` task to run micro benchmark on specific part of
the code, it's uses the benchmark-ips gem to generate gem.
See https://github.com/evanphx/benchmark-ips for usage
2015-06-26 11:11:52 -07:00
Pier-Hugues Pellerin
d85fdcb86d remove benchmark from this PR
Fixes #3425
2015-06-18 17:59:49 +00:00
Pier-Hugues Pellerin
fcf8d783fa Add a caching mechanism for the #sprintf calls
This PR allow the Event class to compile a `sprintf` the first time and
reuse the template for the other calls. This strategy speeds up considerably
calls that uses date formatting or use fieldref its a bit slower if you
dont do any string manipulation.

Fixes #3425
2015-06-18 17:59:47 +00:00