Git Product home page Git Product logo

wasi-master / fastero Goto Github PK

View Code? Open in Web Editor NEW
237.0 3.0 6.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%
benchmark benchmarking python python-benchmark python-benchmarks python3 timeit fastero python-timeit pyperf

fastero's Introduction

πŸ’« About Me

🏫: I'm in 10th grade, a High School Student. πŸ“š
πŸ€”: I’m looking for input on anything I am working on! πŸ˜„
πŸ‘‰: Please feel free to clone/fork projects, raise issues, and submit PRs if you think something could be improved. 🀩
πŸ˜„: Pronouns: He/Him πŸ‘¦
πŸ“«: You can email me at: [email protected]. πŸ“¨

wasi-master Total time coded since Jul 13 2021, amounting to approximately half my total lifetime coding

Show some ❀️ by starring some of my repositories

🌐 Socials

Instagram LinkedIn Medium Pinterest Quora Reddit Stack Overflow TikTok Twitch Twitter YouTube Codepen Mastodon

πŸ’» Tech Stack

C C# C++ CSS3 Dart Go HTML5 Java JavaScript Kotlin Lua Markdown PowerShell Python Ruby Rust TypeScript Shell Script Windows Terminal Cloudflare GithubPages Firebase Netlify Heroku Vercel Bootstrap Flask Jinja NPM NodeJS OpenCV Yarn Firebase MusicBrainz MySQL Postgres Supabase Adobe Adobe After Effects Adobe Acrobat Reader Adobe Audition Adobe Illustrator Adobe Lightroom Classic Adobe Photoshop Adobe Premiere Pro Blender Canva Bitwarden CodeCov Docker ESLint Gradle Jellyfin Notion Plex TOR

πŸ“Š GitHub Stats


fastero's People

Contributors

deepsource-io[bot] avatar imgbotapp avatar wasi-master avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fastero's Issues

[FEAT]: Update Sphinx config for favicon

Description

Thanks for using Sphinx Favicon in your project! I just released version 1.0 of the extension, which brings one breaking change: to better conform with Python standards, we changed the module name to sphinx_favicon (instead of sphinx-favicon). This means you'll have to update the name in the extensions list of your conf.py file (https://github.com/wasi-master/fastero/blob/main/docs/source/conf.py#L47) before you can use version 1.0. Otherwise, your existing configuration should continue to work!

Additional Information

No response

[BUG]: python_diff_between_two_lists_benchmark.sh has two slashes at end unlike other examples

Description of the bug

Open python_diff_between_two_lists_benchmark.sh and note it has \\ as end of lines. That could doesn't work when I paste in a terminal. Whereas the other .sh files in example work.

Steps To Reproduce

Open python_diff_between_two_lists_benchmark.sh and note it has \\ as end of lines. The other .sh files just have single \.

Additional Information

No response

Issue when timing code with a call to global

I tried fastero after listening to the April 28 2022 episode of Python Bytes.

In installed
fastero 0.2.4
python 3.10.4
windows 10.

I wanted to time two functions one that used global and one that didn't.

I made a file - "using_global.py"

R = 8.314

def calling_global():
    global R
    R*10

calling_global()

and a file - "not_using_global.py"

R=8.314

def not_calling_global():
    R*10

not_calling_global()

then at the command line ran:

python -m fastero "file: not_using_global.py" "file: using_global.py"

I received an error

────────────────────────────────────────────────── Benchmark started… ──────────────────────────────────────────────────
Benchmark 1: R = 8.314


def not_calling_global():
    R * 10


not_calling_global()
  Time  (mean Β± Οƒ):       196.1 ns Β±   5.2 ns
  Range (min  … max):     190.9 ns … 204.9 ns    [runs: 14,000,000]
Benchmark 2: R = 8.314


def calling_global():
    global R
    R * 10


calling_global()
Traceback (most recent call last):
  File "C:\Users\XXX\Anaconda3\envs\eos\lib\site-packages\fastero\core.py", line 475, in app
    num_in_one_batch, time_taken = _autorange(timer, autorange_callback)
  File "C:\Users\rlarson\Anaconda3\envs\eos\lib\site-packages\fastero\core.py", line 461, in _autorange
    time_taken = timer.timeit(number)
  File "C:\Users\XXX\Anaconda3\envs\eos\lib\timeit.py", line 178, in timeit
    timing = self.inner(it, self.timer)
  File "<timeit-src>", line 14, in inner
    calling_global()
  File "<timeit-src>", line 11, in calling_global
    R * 10
NameError: name 'R' is not defined

if I run the file "using_global.py" with python I do not get the error related to this file.

python using_global.py

[BUG]: Can't install with pipx

Description of the bug

pipx doesn't find any binaries to run in fastero

Steps To Reproduce

  1. pipx run fastero
    Output:
> pipx run fastero
fastero not found in package fastero. Available binaries:

Additional Information

No response

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.