{"id":21391622,"url":"https://github.com/multiprocessio/python-wasm-benchmarks","last_synced_at":"2025-03-16T13:25:23.127Z","repository":{"id":103665202,"uuid":"440311469","full_name":"multiprocessio/python-wasm-benchmarks","owner":"multiprocessio","description":"Benchmarking load times of Pyodide, Coldbrew, etc","archived":false,"fork":false,"pushed_at":"2021-12-20T23:38:06.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T01:13:04.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multiprocessio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T21:29:11.000Z","updated_at":"2022-03-01T20:26:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e9d9a03-ffb3-4859-bb8b-644168974938","html_url":"https://github.com/multiprocessio/python-wasm-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiprocessio%2Fpython-wasm-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiprocessio%2Fpython-wasm-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiprocessio%2Fpython-wasm-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiprocessio%2Fpython-wasm-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multiprocessio","download_url":"https://codeload.github.com/multiprocessio/python-wasm-benchmarks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243873646,"owners_count":20361689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-22T13:35:22.110Z","updated_at":"2025-03-16T13:25:23.093Z","avatar_url":"https://github.com/multiprocessio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python WASM Benchmark\n\n[Pyodide](https://pyodide.org/en/stable/) and\n[Coldbrew](https://github.com/plasticityai/coldbrew) are two packages\nof CPython+Emscripten that enables you to run CPython in the browser\non WebAssembly.\n\nThe good thing about that is that unlike\n[Brython](https://brython.info/) (which is a great project in its own\nright) you're not dealing with an implementation that only __looks__\nlike Python.\n\nThe bad thing is that there's an expensive load time. This repo\nprovides some utilities for benchmarking the load time of various\nPython WASM packages.\n\n## Setup\n\nOnce you have this repo, run:\n\n```bash\n$ yarn\n$ ./prepare.sh\n```\n\n./prepare.sh will install coldbrew and pyodide locally so we aren't\nbenchmark CDN response times.\n\n## Run\n\nYou can run a load tests a number of times:\n\n```bash\n$ ./run.sh\n```\n\nThis will dump a CSV to output.\n\n## Analysis\n\n```bash\n$ ./run.sh | tee results.csv\n$ sqlite3 bench.db\nsqlite\u003e .mode csv\nsqlite\u003e .import results.csv results\nsqlite\u003e ^D\n```\n\nThen you can run queries:\n\n```sql\n$ sqlite3 bench.db 'SELECT name, AVG(time) FROM results GROUP BY name ORDER BY AVG(time) ASC;'\npyodide,2.24545\ncoldbrew,2.35455\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiprocessio%2Fpython-wasm-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultiprocessio%2Fpython-wasm-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiprocessio%2Fpython-wasm-benchmarks/lists"}