folly: add a simple benchmark for Histogram::addValue()
Summary: I wrote this an an example for the BENCHMARK_NAMED_PARAM() comments in D527040, and figured I might as well check it in as a real benchmark. Test Plan: Here's the output: ====================================================================== folly/test/HistogramBenchmark.cpp relative time/iter iters/s ====================================================================== addValue(0_to_100) 15.43ns 64.81M addValue(0_to_1000) 15.45ns 64.70M addValue(5k_to_20k) 15.46ns 64.67M ====================================================================== Reviewed By: rajat@fb.com FB internal diff: D552875
Showing
Please register or sign in to comment