• Stars
    star
    240
  • Rank 162,633 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 2 years ago
  • Updated almost 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

showfile

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

.github

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

word-starts-with

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

vscode-wikipedia-hyperlink

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

youtube-tags-compiler

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