Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wasi-master/fastero
Python timeit CLI for the 21st century! colored output, multi-line input with syntax highlighting and autocompletion and much more!
https://github.com/wasi-master/fastero
benchmark benchmarking fastero pyperf pyperform pyperformance python python-benchmark python-benchmarks python-timeit python3 timeit
Last synced: about 2 months ago
JSON representation
Python timeit CLI for the 21st century! colored output, multi-line input with syntax highlighting and autocompletion and much more!
- Host: GitHub
- URL: https://github.com/wasi-master/fastero
- Owner: wasi-master
- License: mit
- Created: 2022-04-13T06:16:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T18:40:54.000Z (4 months ago)
- Last Synced: 2024-10-02T08:10:18.319Z (3 months ago)
- Topics: benchmark, benchmarking, fastero, pyperf, pyperform, pyperformance, python, python-benchmark, python-benchmarks, python-timeit, python3, timeit
- Language: Python
- Homepage: https://fastero.readthedocs.io
- Size: 6.76 MB
- Stars: 237
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# fastero
Python timeit CLI for the 21st century[**Read the Documentation**](https://fastero.readthedocs.io)
## Installation & Usage
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](https://fastero.readthedocs.io)
## Features
For more info on all of these features, please the [documentation]((https://fastero.readthedocs.io))
- đ *Beautiful* formatted, and colored output. Output is reminiscent of [hyperfine](https://github.com/sharkdp/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.### Acknowledgements
- [hyperfine](https://github.com/sharkdp/hyperfine) - Inspiration for creating this library and the UI.
- [snappify.io](https://snappify.io) - Inspiration for the Image export.
- [rich](https://github.com/Textualize/rich) - Used for *beautiful* output