athletic icon indicating copy to clipboard operation
athletic copied to clipboard

Refactored to support dynamic/multiple benchmarks

Open oytuntez opened this issue 9 years ago • 0 comments

Today I refactored some of this package to support:

  • multiple benchmarking classes, such as one for time and one for memory.
  • custom benchmarking classes. This lets you benchmark almost anything, from network latency to database IOPS.
  • show/hide specific columns from the result output.

This required the refactor of these files:

  • AthleticEvent
  • DefaultFormatter
  • MethodResults
  • A new directory: Benchmarkers
    • BenchmarkerInterface
    • TimeBenchmarker
    • MemoryBenchmarker

See my commits here: https://github.com/oytuntez/athletic/commits/master.

I didn't issue a PR as couldn't know how to organize the changes into tags/branches.

oytuntez avatar Nov 16 '15 21:11 oytuntez