apache_beam.tools.distribution_counter_microbenchmark module

A microbenchmark for measuring DistributionAccumulator performance

This runs a sequence of distribution.update for random input value to calculate average update time per input. A typical update operation should run into 0.6 microseconds

Run as
python -m apache_beam.tools.distribution_counter_microbenchmark
apache_beam.tools.distribution_counter_microbenchmark.generate_input_values(num_input, lower_bound, upper_bound)[source]
apache_beam.tools.distribution_counter_microbenchmark.run_benchmark(num_runs=100, num_input=10000, seed=1591137038.126438)[source]