sintax provides a small library and utility for converting Criterion.rs CSV files into Google's Benchmark JSON format. It also allows you to read in Google JSON formatted files, and iterate over the list of results, for further post-processing.
Python versions supported: 3.6, 3.7
Install the library, and then import sintax.
import sintaxIf you want to use the command line utility you may do so easily:
sintax.convert --criterion <CRITERION_PATH> --gbenchmark-json=benchmark.jsonpip install sintaxThis project uses pre-commit to automatically verify code style and linting
using black the Python code formatter.
pre-commit installThen everytime you run git commit the code will be verified to match our
style.
You may also run black directly using tox
tox -e run-blackFor running tests and verifying everything continues to work, please run:
tox