apache_beam.tools.coders_microbenchmark module¶
A microbenchmark for measuring performance of coders.
This runs a sequence of encode-decode operations on random inputs to collect performance of various coders.
To evaluate coders performance we approximate the behavior how the coders are used in PCollections: we encode and decode a list of elements. An element can be a string, a list of integers, a windowed value, or any other object we want a coder to process.
- Run as:
- python -m apache_beam.tools.coders_microbenchmark