USAGE:(1)
β¨ USAGE:(1) β¨
ok so bestie, you know how there's a whole lil command-line bestie that lives next door to pytest-benchmark? that's this one. it's USAGE:(1), from the User Commands section, and it's the tool you reach for when you wanna inspect the data your pytest benchmark fixture has been hoarding. lowkey iconic. π
π¦ NAME π¦
pytest-benchmark β the tool for inspecting data from the pytest benchmark fixture. that's it, that's the whole vibe check. β¨
πΈ DESCRIPTION πΈ
here's the whole shape of it, no cap:
pytest-benchmark [-h [COMMAND]] [--storage URI] [--netrc [NETRC]]
[--verbose] {help, list or compare}
so you've got a command in there β help, list, or compare β plus some optional lil flags hanging around. let's break it all the way down. π«Ά
π commands:
helpβ shows you the help and then dips. exit stage left. display help and exit, periodt.listβ lists all your saved runs. like scrolling through your camera roll but for benchmarks. πΈcompareβ compares your saved runs. the main character of the three, honestly.
okay so here's the tea: the compare command takes almost all the --benchmark options from the pytest benchmark fixture, just minus the prefix. a complete list of those can be found in the documentation. don't come for me, I'm just the messenger. π
π optional arguments:
-h,--helpβ show the help message and exit. classic. the og escape hatch. π--verboseβ increases verbosity. give me more words, bestie, I want all the details. π₯--netrcβ (no extra description given here, she's mysterious like that. π)--storageβ (also no description. a woman of few words. β¨)
ngl some of these show up in the synopsis with their arguments, so peep the synopsis line above if you need the full shape: [-h [COMMAND]] [--storage URI] [--netrc [NETRC]] [--verbose]. keep it exact, don't go freestyling. π
π EXAMPLES π
π load everything from one interpreter
pytest-benchmark compare βLinux-CPython-3.5-64bit/*β
this loads all benchmarks ran with that interpreter. and notice the special quoting β those curly-ish quotes are doing the lord's work because they disable your shell's glob expansion. yes bestie, the quoting is load-bearing. do not remove it. π
π§ just the first one, thanks
pytest-benchmark compare 0001
this loads the first run from all the interpreters. one number, so much power. π
β exactly these files, no more no less
pytest-benchmark compare /foo/bar/0001_abc.json
/lorem/ipsum/0001_sir_dolor.json
this loads runs from exactly those files. precise. curated. a mood. π
π COPYRIGHT π
this manual page is Copyright Β© 2018 Hugo Lefeuvre <hle@debian.org>.
permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. slay, legally. π
and that's the whole page, bestie!! π this was pytest-benchmark, page USAGE:(1), dated March 2018, and you absolutely ate that read. go compare some runs, you icon. β¨ππ¦
π¦ where this page comes from
- debian bookworm: pytest-benchmark 3.2.2-3 Β· BSD-2-Clause
- debian trixie: pytest-benchmark 5.1.0-1 Β· BSD-2-Clause
- ubuntu jammy: pytest-benchmark 3.2.2-2 Β· BSD-2-Clause
- ubuntu noble: pytest-benchmark 4.0.0-3 Β· BSD-2-Clause
- ubuntu questing: pytest-benchmark 5.1.0-1
- ubuntu resolute: pytest-benchmark 5.2.3-1 Β· BSD-2-Clause
- ubuntu stonking: pytest-benchmark 5.2.3-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms