Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-48506: Introduce CheckpointBench.ExtractItemsToExpel
Extracting the items to expel is the part of the logic the executes under CM::queueLock. That's what the new bench measures. The bench serves a double purpose: (1) Measuring the runtime of expel at various expel-count (2) Showing the asymptotic behaviour of our code, currently linear Both metrics will be improved in following patches and we'll use this bench for tracking results. Note: ExtractItemsToExpel/1 is quite noisy and not really representative of any real workload, but it's reported for (2). $ ./ep_engine_benchmarks --benchmark_filter="ExtractItemsToExpel" --benchmark_repetitions=10 Running ./ep_engine_benchmarks Run on (24 X 2239.57 MHz CPU s) CPU Caches: L1 Data 32 KiB (x12) L1 Instruction 32 KiB (x12) L2 Unified 256 KiB (x12) L3 Unified 15360 KiB (x2) -------------------------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------- CheckpointBench/ExtractItemsToExpel/1/iterations:1_mean 9937 ns 9509 ns 10 CheckpointBench/ExtractItemsToExpel/1/iterations:1_median 9298 ns 7990 ns 10 CheckpointBench/ExtractItemsToExpel/1/iterations:1_stddev 2274 ns 4017 ns 10 CheckpointBench/ExtractItemsToExpel/1/iterations:1_cv 22.89 % 42.24 % 10 CheckpointBench/ExtractItemsToExpel/10/iterations:1_mean 11802 ns 10504 ns 10 CheckpointBench/ExtractItemsToExpel/10/iterations:1_median 11627 ns 10359 ns 10 CheckpointBench/ExtractItemsToExpel/10/iterations:1_stddev 523 ns 498 ns 10 CheckpointBench/ExtractItemsToExpel/10/iterations:1_cv 4.43 % 4.74 % 10 CheckpointBench/ExtractItemsToExpel/100/iterations:1_mean 33975 ns 32624 ns 10 CheckpointBench/ExtractItemsToExpel/100/iterations:1_median 33963 ns 32630 ns 10 CheckpointBench/ExtractItemsToExpel/100/iterations:1_stddev 962 ns 908 ns 10 CheckpointBench/ExtractItemsToExpel/100/iterations:1_cv 2.83 % 2.78 % 10 CheckpointBench/ExtractItemsToExpel/1000/iterations:1_mean 305137 ns 303309 ns 10 CheckpointBench/ExtractItemsToExpel/1000/iterations:1_median 299253 ns 297779 ns 10 CheckpointBench/ExtractItemsToExpel/1000/iterations:1_stddev 15277 ns 15124 ns 10 CheckpointBench/ExtractItemsToExpel/1000/iterations:1_cv 5.01 % 4.99 % 10 CheckpointBench/ExtractItemsToExpel/10000/iterations:1_mean 3285609 ns 3282457 ns 10 CheckpointBench/ExtractItemsToExpel/10000/iterations:1_median 3293980 ns 3291032 ns 10 CheckpointBench/ExtractItemsToExpel/10000/iterations:1_stddev 98379 ns 98295 ns 10 CheckpointBench/ExtractItemsToExpel/10000/iterations:1_cv 2.99 % 2.99 % 10 Change-Id: I14513f24699efb5a5885a74310a1f1b2e9fdc105 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/161771 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Dave Rigby <daver@couchbase.com>
- Loading branch information