{"id":50951890,"url":"https://github.com/nicholasjng/mew","last_synced_at":"2026-06-18T02:30:36.199Z","repository":{"id":359307425,"uuid":"1237633594","full_name":"nicholasjng/mew","owner":"nicholasjng","description":"A microbenchmarking CLI for Python.","archived":false,"fork":false,"pushed_at":"2026-06-16T12:07:14.000Z","size":614,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-16T13:26:26.494Z","etag":null,"topics":["benchmark","google-benchmark","nanobind","python"],"latest_commit_sha":null,"homepage":"https://mew.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicholasjng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T11:10:58.000Z","updated_at":"2026-06-15T12:56:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nicholasjng/mew","commit_stats":null,"previous_names":["nicholasjng/mew"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicholasjng/mew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjng%2Fmew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjng%2Fmew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjng%2Fmew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjng%2Fmew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicholasjng","download_url":"https://codeload.github.com/nicholasjng/mew/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjng%2Fmew/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34474063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","google-benchmark","nanobind","python"],"created_at":"2026-06-18T02:30:35.539Z","updated_at":"2026-06-18T02:30:36.189Z","avatar_url":"https://github.com/nicholasjng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mew\n\n[![Documentation Status](https://readthedocs.org/projects/mew/badge/?version=latest)](https://mew.readthedocs.io/en/latest/)\n[![CI](https://github.com/nicholasjng/mew/actions/workflows/ci.yml/badge.svg)](https://github.com/nicholasjng/mew/actions/workflows/ci.yml)\n\nA tool for microbenchmarking Python code, powered by [Google Benchmark](https://github.com/google/benchmark).\n\n```python\nimport mew\n\n\n@mew.benchmark\ndef bench_sorted(state: mew.State) -\u003e None:\n    data = list(range(1000, 0, -1))\n    for _ in state:\n        sorted(data)\n```\n\n```console\n$ mew run\nmew · host=laptop cpus=10 @ 3200MHz scaling=enabled\nBenchmark                              │     Iters │       Real │        CPU\n────────────────────────────────────────────────────────────────────────────\nbenchmarks/bench_sort.py::bench_sorted │ 1,000,000 │   32.10 ns │   32.05 ns\n```\n\n- **Decorate**: `@mew.benchmark`, `@mew.parametrize`, `@mew.product` register one benchmark or a benchmark family.\n- **Run**: `mew run` discovers `bench_*.py` files, streams results to a formatted table, JSON, or Parquet.\n- **Profiling**: `mew run --sample` (in-process pyinstrument) and `--profile-memory` (memray allocations) in the same run; `mew profile` for native C frames via xctrace / py-spy / perf.\n- **Compare**: `mew compare baseline.json head.json --fail-on-regression 5` for CI jobs.\n\n## Installation\n\nWith a `[tool.uv.sources]` entry in your `pyproject.toml`:\n\n```toml\n[tool.uv.sources]\nmew = { git = \"https://github.com/nicholasjng/mew\" }\n```\n\n```console\n$ uv add mew                 # or: pip install mew\n$ uv add 'mew[cpu,memory]'   # opt-in profilers\n```\n\nRequires Python 3.11+. A pre-built wheel is installed where available;\notherwise the C++ extension is compiled via CMake + nanobind.\n\nA PyPI release is planned for the future.\n\n## Docs\n\n- Quickstart, concepts, user guide: \u003chttps://mew.readthedocs.io/\u003e\n- API reference: \u003chttps://mew.readthedocs.io/en/latest/reference/api/\u003e\n- CLI reference: \u003chttps://mew.readthedocs.io/en/latest/reference/cli.html\u003e\n\n## License\n\nThis project is licensed under the Apache-2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjng%2Fmew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicholasjng%2Fmew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjng%2Fmew/lists"}