Install either with pipx or pip. Both work, use what you want. Or optionally you can install from github using pip install git+https://github.com/wasi-master/fastero
For usage please check out the documentation
For more info on all of these features, please the documentation
- ๐ Beautiful formatted, and colored output. Output is reminiscent of hyperfine
- ๐คฏ Amazing exporting options
- ๐ Export as a bar plot with matplotlib
- ๐ Export as a beautiful image with the console output
- โน๏ธ Export as Markdown, HTML, CSV, AsciiDoc tables
- ๐พ Export as JSON and YAML data to use them elsewhere
- ๐ You can also import the JSON data later within fastero to re-run the benchmark with the same parameters or to export the data again with different parameters.
- ๐ Extremely intuitive and easy to use.
- ๐ข Benchmark multiple snippets
- ๐ค Assign a name to each snippet to make it easier to distinguish
- ๐ Get nice statistics about the each of the snippet and a summary on how fast each of them are compared to each other
- โฉ Enter multiline code in an input with syntax highlighting and amazing autocomplete
- โฐ Excellent time parsing. Inputs like
500ms
,10s
,1m5s
,1.5m
,1h30m15s
, etc. work flawlessly - ๐ฅ Run a few times without timing with the warmup parameter to fill caches and things like that.
- ๐จ Customize it to your liking.
- ๐ฃ Custom time formats e.g. nanoseconds, microseconds, milliseconds, seconds etc.
- ๐จ Custom theme for code input and/or output.
- ๐๏ธ Control how long each snippet is benchmarked for
- ๐ข Specify a minimum and a maximum amount of runs to calculate the number of runs automatically based on run duration
- ๐ Or specify a definite number of runs for manual override
- ๐ป Cross-platform.
- ๐คฏ Open source.
- ๐ Extensive documentation.
- hyperfine - Inspiration for creating this library and the UI.
- snappify.io - Inspiration for the Image export.
- rich - Used for beautiful output