{"id":16885873,"url":"https://github.com/haikyuu/benchmark","last_synced_at":"2026-02-08T03:34:33.396Z","repository":{"id":78520912,"uuid":"543522521","full_name":"haikyuu/benchmark","owner":"haikyuu","description":"A barebones benchmark comparing imba, React and maybe other frameworks","archived":false,"fork":false,"pushed_at":"2022-09-30T13:32:53.000Z","size":103,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T18:41:35.482Z","etag":null,"topics":["benchmark","imba","performance","react","vite"],"latest_commit_sha":null,"homepage":"https://benchmark-95q.pages.dev/","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/haikyuu.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,"zenodo":null}},"created_at":"2022-09-30T09:23:02.000Z","updated_at":"2023-04-09T05:12:36.000Z","dependencies_parsed_at":"2023-03-24T08:03:32.812Z","dependency_job_id":null,"html_url":"https://github.com/haikyuu/benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haikyuu/benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fbenchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fbenchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fbenchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fbenchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haikyuu","download_url":"https://codeload.github.com/haikyuu/benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikyuu%2Fbenchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29219274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","imba","performance","react","vite"],"created_at":"2024-10-13T16:37:19.649Z","updated_at":"2026-02-08T03:34:33.391Z","avatar_url":"https://github.com/haikyuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\nThis is a benchmark to test Imba against React and Svelte. This is obviously **not** an extensive benchmark, but just to illustrate a point: Imba is very fast! ... 9 times faster than React and Svelte.\n\nHow comes? Well, Imba uses a different technique called the memoized DOM [Check out how it works](https://imba.io/guides/rendering). It would be interesting to see other libraries and frameworks adopt it since it's so effecient.\n\nThe benchmark is a very simple automated test that playwright runs for each framework.\n\nThe test is very simple: it just clicks 500 times on a button that increments 10k other buttons\n```\nawait Promise.all(Array.from(Array(count).keys()).map(()=\u003e page.locator(`data-testid=${target}-1`).click())); // target is replaced with each framework\nawait expect(button1).toHaveText(`${count + 1}`)\n```\n\nNo tricks here ^^' Inspect the code, run it locally and optimize if you feel like it.\n\u003cimg width=\"1223\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8558836/193279144-b30270d4-42a1-4ffc-a1e0-50031e337b05.png\"\u003e\n\nResults of running the benchmark can be seen here https://imba-benchmark.netlify.app/\n\nResults are built on every push to main branch. And you can see the same results by inspecting github actions artifacts. Github actions machine is a bit more powerful than Netlify, so results are different but within the same range.\n\n\n\n## Profiling\nIn the following manual test, I clicked 20 times on buttons of each respective \"framework\". \n\n*If you know a way to automate this profiling, create an issue or a PR. I'd love to include that instead.*\n\nLook at the scripting portion or even better, try the profiling in your browser:\n- Imba: 147ms\n- Svelte: 487ms\n- React: 589ms\n\n### React results \n\u003cimg width=\"1919\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8558836/193266068-6e99bfb0-f05d-4fd6-a61a-3e068e5682c5.png\"\u003e\n\n### Imba results\n\u003cimg width=\"1815\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8558836/193266523-643fe75d-dac6-490b-9ce0-641fec2bd991.png\"\u003e\n\n### Svelte results\n\u003cimg width=\"1813\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8558836/193280520-56962430-0a01-436e-9bf6-f3a15371192f.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikyuu%2Fbenchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaikyuu%2Fbenchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikyuu%2Fbenchmark/lists"}