{"id":16528371,"url":"https://github.com/danvk/ts-bench","last_synced_at":"2026-06-11T14:32:16.567Z","repository":{"id":232206062,"uuid":"763542004","full_name":"danvk/ts-bench","owner":"danvk","description":"Performance testing tool for the TypeScript compiler","archived":false,"fork":false,"pushed_at":"2024-02-26T13:47:22.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-17T00:17:34.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/danvk.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}},"created_at":"2024-02-26T13:47:02.000Z","updated_at":"2024-02-26T15:09:43.000Z","dependencies_parsed_at":"2024-04-08T16:07:34.846Z","dependency_job_id":null,"html_url":"https://github.com/danvk/ts-bench","commit_stats":null,"previous_names":["danvk/ts-bench"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danvk/ts-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danvk","download_url":"https://codeload.github.com/danvk/ts-bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danvk%2Fts-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34204179,"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-11T02:00:06.485Z","response_time":57,"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":[],"created_at":"2024-10-11T17:40:04.146Z","updated_at":"2026-06-11T14:32:16.538Z","avatar_url":"https://github.com/danvk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript Benchmark Test Harness\n\nThis script runs two versions of TypeScript against the same codebase to test for performance\ndifferences. This was motivated by a desire to reproduce the \"Compiler-Unions\" benchmark for [TypeScript#57465].\n\nExperiments are specified in JSON files, check out the [experiments](/experiments/) directory for for more examples.\n\n```json\n{\n    \"description\": \"Compare PR branch to main\",\n    \"ref_control\": \"main\",\n    \"ref_exp\": \"pr-branch\",\n    \"command\": \"cd /Users/danvk/code/TypeScript-Compiler-Unions; npx hereby clean-src \u0026\u0026 node $tsc -b --emitDeclarationOnly false src/compiler --extendedDiagnostics\",\n    \"ts_dir\": \"/Users/danvk/github/TypeScript\",\n    \"num_runs\": 8\n}\n```\n\nRun via:\n\n```sh\n$ ./run.py experiments/branch-vs-main.json\n...\nControl: 31.82 +/- 1.92 s\n    Exp: 31.81 +/- 1.49 s = -0.05%\n```\n\nRuns are interleaved to try and reduce bias from whatever else your computer happens to be doing.\n\n[TypeScript#57465]: https://github.com/microsoft/TypeScript/pull/57465\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanvk%2Fts-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanvk%2Fts-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanvk%2Fts-bench/lists"}