Coder Social home page Coder Social logo

e7dal / fastero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wasi-master/fastero

0.0 1.0 0.0 6.92 MB

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

Home Page: https://fastero.readthedocs.io

License: MIT License

Python 100.00%

fastero's Introduction

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

fastero's People

Contributors

imgbotapp avatar wasi-master avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.