Skip to content
Myr

Add PEP-723 inline metadata

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 65dd84f · Browse files · 6 files+42 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+42 added−0 removed

  • other:+42 added−0 removed

6 files+42 added−0 removed

modified:scripts/advanced_statistics.py+6 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "numpy",6# ]7# ///89import argparse10import json11import numpy as np
31 unmodified lines
modified:scripts/plot_histogram.py+8 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "matplotlib",6# "pyqt6",7# "numpy",8# ]9# ///1011"""This program shows `hyperfine` benchmark results as a histogram."""1213import argparse
91 unmodified lines
modified:scripts/plot_parametrized.py+7 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "matplotlib",6# "pyqt6",7# ]8# ///910"""This program shows parametrized `hyperfine` benchmark results as an11errorbar plot."""12
99 unmodified lines
modified:scripts/plot_progression.py+8 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "pyqt6",6# "matplotlib",7# "numpy",8# ]9# ///1011"""This program shows `hyperfine` benchmark results in a sequential way12in order to debug possible background interference, caching effects,13thermal throttling and similar effects.
73 unmodified lines
modified:scripts/plot_whisker.py+7 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "matplotlib",6# "pyqt6",7# ]8# ///910"""This program shows `hyperfine` benchmark results as a box and whisker plot.1112Quoting from the matplotlib documentation:
53 unmodified lines
modified:scripts/welch_ttest.py+6 added
1#!/usr/bin/env python2# /// script3# requires-python = ">=3.10"4# dependencies = [5# "scipy",6# ]7# ///89"""This script performs Welch's t-test on a JSON export file with two10benchmark results to test whether or not the two distributions are11the same."""
33 unmodified lines