mapbox / hpp-skel

Skeleton for C++ header-only libraries
Creative Commons Zero v1.0 Universal
117 stars 19 forks source link

Benchmark scripts #33

Closed springmeyer closed 6 years ago

springmeyer commented 7 years ago

We should have benchmarks that test the code.

Phase 1

Extremely simple and bare bones. But this would be extremely useful for downstream devs writing simple libs off hpp-skel.

We can use https://github.com/mapbox/vector-tile/blob/master/bench/run.cpp as a reference.

Phase 2

Run hello_world::exclaim() or some new, more interesting sample function like hello_world::do_expensive_work() for N iterations in N threads. Make these options configurable.

Could use https://github.com/mapnik/mapnik/blob/441687ecff6b906c86fde456034f8cab1b767a87/benchmark/bench_framework.hpp#L29-L97 as a reference point for a multithreaded/concurrent benchmark.

Phase 3

Integrate and example of using https://github.com/google/benchmark which was recently packaged in mason for mbgl: https://github.com/mapbox/mason/pull/467

springmeyer commented 6 years ago

done in #48