mew
A tool for microbenchmarking Python code, powered by Google Benchmark.
import mew
@mew.benchmark
def bench_sorted(state: mew.State) -> None:
data = list(range(1000, 0, -1))
for _ in state:
sorted(data)
$ mew run
mew · host=laptop cpus=10 scaling=enabled
Benchmark │ Iters │ Real │ CPU
────────────────────────────────────────────────────────────────────────────
benchmarks/bench_sort.py::bench_sorted │ 1,000,000 │ 32.10 ns │ 32.05 ns
- Decorate:
@mew.benchmark,@mew.parametrize,@mew.productregister one benchmark or a benchmark family. - Run:
mew rundiscoversbench_*.pyfiles, streams results to a formatted table, JSON, or a JSONL archive. - Profiling:
mew run --sample(in-process pyinstrument) and--profile-memory(memray allocations) in the same run, driven by Google Benchmark's own profiler/memory managers. - Compare:
mew compare head.json baseline.json --regression-threshold 5% --exit-non-zero-on-regressionfor CI jobs.
Installation
$ uv add mew-bench # or: pip install mew-bench
$ uv add 'mew-bench[cpu,memory]' # opt-in profilers
Requires Python 3.11+. A pre-built wheel is installed where available; otherwise the C++ extension is compiled via CMake + nanobind.
Docs
- Quickstart, concepts, user guide: https://mew.readthedocs.io/
- API reference: https://mew.readthedocs.io/en/latest/reference/api/
- CLI reference: https://mew.readthedocs.io/en/latest/reference/cli.html
License
This project is licensed under the Apache-2.0 license.
Metadata
Release files for mew-bench 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mew_bench-0.2.0.tar.gz | 228.9 kB | Details |
Built distributions (wheels)
Total release size: 9.7 MB
Release files / mew_bench-0.2.0.tar.gz
| Download URL | mew_bench-0.2.0.tar.gz |
|---|---|
| Size | 228.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae3cc33e5645779ecbd3408a4405d33950f2da9a55983a87f4a4e455fabf2d63
|
|
BLAKE2b-256 checksum How to use checksums |
25611b558705e63646a4e46cfa09f66ddb929df6b72b46da4d0573365250ca36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-win_amd64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 491.7 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
be35d71031e47c1d0665552483c26e9f4f5e21c160c60d14aadbcc5714a86643
|
|
BLAKE2b-256 checksum How to use checksums |
7c6296ca51e7a5ef42d8c6b629452bf96caaa82cb028b818e1152229c9097678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 877.5 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
c3f29fde13e799f3ba64dc0839f6ae0e108346a8989d0a6b8ba7510e6063e801
|
|
BLAKE2b-256 checksum How to use checksums |
07f450ec8974fbe2cd64ab2ee99bd0c0c00559cc18c8aea299abe31e419116db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 827.8 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
d408685ea0de71613ac1e4fabfa6a6858c4645d0ab41e730022904eeb4d28143
|
|
BLAKE2b-256 checksum How to use checksums |
16c7b3e62fd08eda7875f44b1e5ee107e77f96f83b29b17f1463d0c9b687b97e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 379.9 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
673d5d10f677d13f130bcfe00636b99a60292d0f3c4cc5effae59d982fb1856a
|
|
BLAKE2b-256 checksum How to use checksums |
3e5db2178bfce7aba1e6ed43154917742d7a7af2cda966cbb4bbbf002ca21171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 345.6 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
086399b577da3c8c012aef436abf7c72df70e7eb92a7f993cdc8e5561b2139c4
|
|
BLAKE2b-256 checksum How to use checksums |
414b49ce8dca7408517a2bad7496ed3245de9e1b217c65609a56f22f15fecc84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | mew_bench-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 251.5 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c3741e0b0e203ea91521b911483dd35751924c1f5c9ad843bab80e8735b2dcc5
|
|
BLAKE2b-256 checksum How to use checksums |
63ab7f2dfd278134239116fe70bbdff1c7986c2c918cbf6de8b19575b98601c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-win_amd64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 473.8 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
db8801dd453b1959364d3aa2198fee5453b3a3c666a8d2f734fb3aff238f7692
|
|
BLAKE2b-256 checksum How to use checksums |
82bbfd41ea25213cd8e1605c2ef24500175016db185498d591835f5c2941c4a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 874.0 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0b60c16128f07d7f20be3d6c92c535ea25bacb922aeca3ba6161bd24de620fdf
|
|
BLAKE2b-256 checksum How to use checksums |
38f6997134fdc38954c6d46a37cfcb52505dc3f1b2f17e20850cc3ff98b75032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 824.3 kB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9f8eade770506d1d1baa06667287ce7b497656c6c59e874b65dfc53aaf17ffc1
|
|
BLAKE2b-256 checksum How to use checksums |
ebf393fa24909b2bb5d826284c8141ef36c8baaa74106085156e7b80a294315c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 375.4 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b4f63a857b30fc3c832d65ea1193963c0e232a4c931817398bd4cc0bf09d2f28
|
|
BLAKE2b-256 checksum How to use checksums |
b739e20baacdb5e6ba3e9ded22f5ede320b25d0c3e3ee0e514180e1fb23acd37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 341.2 kB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0a0cf63bbe34db6d2dd813e63a4d4427a62c84ac7a3e2042b87d09e3a5d8cd08
|
|
BLAKE2b-256 checksum How to use checksums |
24212c6b6335e433e48441e8b9899f84fc1788974af3456df04d20c200481068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | mew_bench-0.2.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 247.4 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ed784dc88f2e749a9e32575f665645888c441c0ffb6900e4ddd08161eee1da43
|
|
BLAKE2b-256 checksum How to use checksums |
2f26d0e67334db3be471c5f6b2e8aa7e2348006d55cd50590613e9356b1c1aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-win_amd64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 474.3 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
98e03102e00d40fe411f0fa634cbdfd0b52444c4807827d1cb788e42ffbdc0f9
|
|
BLAKE2b-256 checksum How to use checksums |
6fb2a9f7ceeee81f0b3522e34c71b8e5a53b754fd97f64deb60fbeb2ddad954b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 878.5 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
3a379cd6f518445310094299f4aaa1f0cca31b70698fa1eb0afe2d72837a7f8b
|
|
BLAKE2b-256 checksum How to use checksums |
ac26ed7f4176b03c86720b243cc6f9873bbb289eb3c8da205bb1321f3b20461d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-musllinux_1_2_aarch64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 828.5 kB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
b51f316118ccba98600cc89e9cac52090932d3bc9b7255484204facce6e46d75
|
|
BLAKE2b-256 checksum How to use checksums |
e8029f85e942225c086f41ca77a37b9d409635191529337485444b297b73debc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 380.6 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
208af5d0d1938884f0ca9e9caa24ec3270429f2776d2f4fac4167bde17de23a2
|
|
BLAKE2b-256 checksum How to use checksums |
60a16016aea94aa20a3157008f9da0c404c475870a909025c3ad97b509a4a3f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 345.8 kB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
894e29bbcefb8bc3d3ad68de3d21891b4bb47f576e869fde971ccc1b3cc3163a
|
|
BLAKE2b-256 checksum How to use checksums |
3933c2eb5b398dbef9b7f848fc4c8d6e37fe09ca275caaf6d28afd8c5d93ccd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / mew_bench-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | mew_bench-0.2.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 249.7 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0be86dfb586bcf1d38ff6a6888a87dcb65669dcbd1afde8ac3fb5abf29a3b1b5
|
|
BLAKE2b-256 checksum How to use checksums |
821325eeb09600f8b1e005ca0cf5331f021ef9ad24d86d6f63177a50d91053ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log