• Stars
    star
    240
  • Rank 168,229 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python timeit CLI for the 21st century! colored output, multi-line input with syntax highlighting and autocompletion and much more!

fastero

Python timeit CLI for the 21st century

Read the Documentation

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

Features

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.

Acknowledgements

  • hyperfine - Inspiration for creating this library and the UI.
  • snappify.io - Inspiration for the Image export.
  • rich - Used for beautiful output

More Repositories

1

13ft

My own custom 12ft.io replacement
Python
454
star
2

pypi-command-line

A powerful, colorful, beautiful command-line-interface for pypi.org
Python
43
star
3

sponsorblock.py

An unofficial wrapper and a cli for the Sponsorblock API
Python
22
star
4

wm_bot

A multipurpose discord bot with more than 220 commands
Python
18
star
5

vscode-discord.py-snippets

Code snippets for the discord.py library in python
14
star
6

gradient_figlet

Prints gradient figlets using rich and pyfiglet
Python
13
star
7

rich-rst

A reStructuredText renderer for rich
HTML
12
star
8

google-tui

A terminal user interface for searching google
Python
10
star
9

helicopter-helicopter

Helicopter animation in terminal
Python
8
star
10

charinfo

A command line tool to view detailed information about a character
Python
7
star
11

wasi-master

Profile Repo
5
star
12

dpylint

An extension for linting discord.py with pylint
Python
4
star
13

todot

A powerful tool to parse TODOs/FIXMEs etc. from source files
Python
4
star
14

coding-challenges

A repo on new challenges that I do
Rust
3
star
15

vscode-google-inserter

Inserts google search results (including images) to files with a lot of formatting options including custom ones and ones for for specific languages
TypeScript
2
star
16

codeblocks

πŸ§›πŸ»β€β™‚οΈ Dark theme for Code::Blocks
2
star
17

wasi-master.github.io

HTML
2
star
18

rich-tree

A better tree command with beautiful icons and colors made in Python
Python
1
star
19

bengali-word-scripts

Solutions for a bunch of challenges I found on facebook for the Bengali language
Python
1
star
20

Python-Examples

Python examples that I made for begineers/intermidiates
Python
1
star
21

.github

A fallback for repos that don't have a .github folder
1
star
22

word-starts-with

CLI to find a word that starts with some character(s)
Python
1
star
23

vscode-wikipedia-hyperlink

Adds a hyperlink to a wikipedia article for the currently selected text in markup languages
TypeScript
1
star
24

showfile

A tool to view files with their proper syntax highlighting in the console
Python
1
star
25

youtube-tags-compiler

Make a list of tags for a specific video
Python
1
star