Skip to content

refactor: /simplify 리뷰 반영 — 매직 넘버, 테스트 수정#809

Merged
ohah merged 1 commit into
mainfrom
fix/simplify-es5-helpers-review
Apr 6, 2026
Merged

refactor: /simplify 리뷰 반영 — 매직 넘버, 테스트 수정#809
ohah merged 1 commit into
mainfrom
fix/simplify-es5-helpers-review

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Apr 6, 2026

Summary

  • codegen.zig: 0x80000000Ast.STRING_TABLE_BIT 상수 참조
  • runtime_helpers.zig: 중복 주석 정리
  • hermes-runtime.test.ts: __copyProps 테스트를 Rolldown 호환 구현으로 업데이트 (깨진 테스트 수정)

Test plan

  • zig build test — 전체 통과
  • bun test tests/hermes-runtime.test.ts tests/runtime-helpers.test.ts tests/bundle-smoke.test.ts — 116개 통과

🤖 Generated with Claude Code

- codegen: 0x80000000 → Ast.STRING_TABLE_BIT 상수 참조
- runtime_helpers: TOESM_RUNTIME_CONFIGURABLE 중복 주석 정리
- hermes-runtime.test: __copyProps 테스트를 새 Rolldown 호환 구현으로 업데이트
  (Object.keys().forEach → getOwnPropertyNames + for 루프)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohah ohah added the refactor Code refactoring label Apr 6, 2026
@ohah ohah self-assigned this Apr 6, 2026
@ohah ohah merged commit 300a376 into main Apr 6, 2026
@ohah ohah deleted the fix/simplify-es5-helpers-review branch April 6, 2026 14:07
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Smoke Test Results (CI)

Smoke Test Results

Project ZTS Size Time esbuild Size Time rolldown Size Time rspack Size Time Output
lodash-es OK 46KB 25ms OK 64KB 62ms OK 99KB 181ms OK 122KB 134ms MATCH
preact OK 13KB 5ms OK 15KB 9ms OK 13KB 117ms OK 13KB 112ms MATCH
date-fns OK 37KB 144ms OK 47KB 46ms OK 77KB 130ms OK 102KB 158ms MATCH
uuid OK 2.2KB 4ms OK 2.1KB 9ms OK 2.0KB 117ms OK 3.9KB 112ms MATCH
zod OK 102KB 11ms OK 119KB 16ms OK 98KB 124ms OK 147KB 130ms MATCH
axios OK 346KB 21ms FAIL 436KB 35ms OK 399KB 140ms OK 411KB 159ms MATCH
toolkit OK 65KB 10ms OK 51KB 18ms OK 39KB 118ms OK 126KB 123ms MATCH
rxjs OK 329KB 23ms OK 367KB 37ms OK 308KB 146ms OK 325KB 145ms MATCH
immer OK 18KB 5ms OK 22KB 9ms OK 19KB 110ms OK 36KB 117ms MATCH
superjson OK 23KB 6ms OK 26KB 11ms OK 24KB 112ms OK 32KB 112ms MATCH
express OK 787KB 30ms OK 1138KB 59ms OK 908KB 173ms OK 917KB 174ms MATCH
react OK 53KB 5ms OK 64KB 9ms OK 53KB 116ms OK 18KB 109ms MATCH
commander OK 68KB 7ms OK 119KB 12ms OK 100KB 117ms OK 121KB 115ms MATCH
eventemitter3 OK 6.6KB 3ms OK 7.8KB 7ms OK 9.2KB 111ms OK 10KB 114ms MATCH
ms OK 3.5KB 3ms OK 4.3KB 7ms OK 4.0KB 106ms OK 5.0KB 107ms MATCH
dotenv OK 14KB 4ms OK 14KB 7ms OK 12KB 111ms OK 14KB 111ms MATCH
jsonwebtoken OK 117KB 10ms OK 137KB 20ms OK 141KB 123ms OK 159KB 125ms MATCH
bcryptjs OK 32KB 5ms OK 46KB 9ms OK 47KB 115ms OK 60KB 111ms MATCH
clsx OK 0.6KB 3ms OK 0.6KB 6ms OK 0.7KB 105ms OK 1.5KB 107ms MATCH
tiny-invariant OK 0.5KB 3ms OK 0.6KB 7ms OK 0.6KB 114ms OK 1.5KB 106ms MATCH
tanstack-query OK 47KB 6ms OK 57KB 12ms OK 49KB 117ms OK 59KB 121ms MATCH
fast-glob OK 165KB 13ms OK 199KB 23ms OK 187KB 128ms OK 201KB 122ms MATCH
micromatch OK 82KB 8ms OK 100KB 13ms OK 100KB 122ms OK 108KB 113ms MATCH
semver OK 56KB 6ms OK 66KB 12ms OK 52KB 114ms OK 67KB 114ms MATCH
debug OK 20KB 5ms FAIL 25KB 9ms OK 24KB 118ms OK 28KB 113ms MATCH
chalk OK 13KB 4ms OK 15KB 8ms OK 14KB 109ms OK 17KB 111ms MATCH
yaml OK 211KB 13ms OK 261KB 20ms OK 228KB 134ms OK 284KB 125ms MATCH
yargs OK 167KB 11ms OK 185KB 17ms OK 167KB 132ms OK 227KB 133ms MATCH
effect OK 666KB 152ms OK 477KB 168ms OK 368KB 272ms OK 1460KB 248ms MATCH
vue OK 1635KB 76ms OK 2009KB 80ms OK 1606KB 269ms OK 1216KB 180ms MATCH
svelte OK 71KB 13ms OK 4.7KB 17ms OK 3.5KB 127ms OK 197KB 130ms MATCH
solid-js OK 0.3KB 4ms OK 2.4KB 8ms OK 2.2KB 106ms OK 23KB 114ms MATCH
three OK 246KB 76ms OK 296KB 71ms OK 276KB 177ms OK 1280KB 252ms MATCH
graphql OK 55KB 14ms OK 604KB 34ms OK 547KB 159ms OK 100KB 122ms MATCH
supabase OK 312KB 21ms OK 759KB 32ms OK 706KB 158ms OK 779KB 146ms MATCH
mobx OK 135KB 14ms OK 271KB 24ms OK 234KB 141ms OK 190KB 135ms MATCH
jotai OK 21KB 5ms OK 23KB 9ms OK 20KB 121ms OK 26KB 113ms MATCH
mitt OK 0.5KB 3ms OK 0.6KB 6ms OK 0.7KB 110ms OK 1.5KB 108ms MATCH
zustand OK 1.1KB 3ms OK 1.2KB 6ms OK 1.3KB 104ms OK 2.3KB 110ms MATCH
valtio OK 6.8KB 4ms OK 7.5KB 8ms OK 8.3KB 111ms OK 24KB 112ms MATCH
react-dom OK 1110KB 35ms OK 1355KB 40ms OK 1116KB 186ms OK 534KB 129ms MATCH
d3 OK 116KB 42ms OK 100KB 77ms OK 96KB 167ms OK 150KB 192ms MATCH
hono OK 43KB 9ms OK 59KB 12ms OK 52KB 126ms OK 68KB 120ms MATCH
dayjs OK 11KB 4ms OK 14KB 8ms OK 11KB 109ms OK 8.9KB 109ms MATCH
nanoid OK 0.8KB 3ms OK 0.9KB 6ms OK 0.9KB 106ms OK 2.6KB 108ms MATCH
zlib OK 97KB 12ms OK 112KB 16ms OK 102KB 126ms OK 222KB 132ms MATCH
fp-ts OK 8.8KB 7ms OK 70KB 13ms OK 100KB 129ms OK 50KB 119ms MATCH
neverthrow OK 11KB 4ms OK 18KB 8ms OK 13KB 114ms OK 19KB 112ms MATCH
drizzle-orm OK 20KB 32ms OK 30KB 28ms OK 14KB 117ms OK 35KB 125ms MATCH
tslib OK 0.8KB 4ms OK 0.8KB 7ms OK 0.8KB 108ms OK 18KB 111ms MATCH
iconv-lite OK 303KB 7ms OK 543KB 14ms OK 319KB 117ms OK 325KB 117ms MATCH
qs OK 79KB 10ms OK 95KB 22ms OK 81KB 124ms OK 92KB 117ms MATCH
change-case OK 3.1KB 3ms OK 3.2KB 7ms OK 3.3KB 106ms OK 8.0KB 109ms MATCH
path-to-regexp OK 12KB 4ms OK 14KB 7ms OK 8.0KB 108ms OK 15KB 109ms MATCH
mime-types OK 178KB 9ms OK 235KB 14ms OK 198KB 119ms OK 164KB 154ms MATCH
ajv OK 214KB 14ms OK 243KB 21ms OK 208KB 133ms OK 239KB 127ms MATCH
cac OK 17KB 4ms OK 18KB 8ms OK 16KB 109ms OK 19KB 111ms MATCH
defu OK 1.9KB 3ms OK 2.1KB 6ms OK 1.8KB 109ms OK 3.0KB 110ms MATCH
pathe OK 14KB 4ms OK 3.4KB 8ms OK 3.0KB 109ms OK 13KB 110ms MATCH
destr OK 2.0KB 3ms OK 2.1KB 6ms OK 1.8KB 105ms OK 3.1KB 106ms MATCH
hookable OK 5.3KB 3ms OK 5.9KB 7ms OK 5.2KB 111ms OK 9.3KB 115ms MATCH
minimatch OK 46KB 7ms OK 56KB 14ms OK 47KB 126ms OK 90KB 120ms MATCH
cheerio OK 1743KB 58ms OK 2186KB 88ms OK 1747KB 265ms OK 2387KB 211ms MATCH
is-glob OK 4.8KB 3ms OK 6.4KB 7ms OK 4.9KB 106ms OK 6.0KB 106ms MATCH
glob-parent OK 6.2KB 3ms OK 8.4KB 7ms OK 6.3KB 121ms OK 7.9KB 108ms MATCH
escape-string-regexp OK 0.3KB 3ms OK 0.4KB 6ms OK 0.4KB 107ms OK 1.5KB 109ms MATCH
fast-deep-equal OK 2.3KB 3ms OK 2.9KB 6ms OK 2.3KB 107ms OK 3.2KB 109ms MATCH
deepmerge OK 4.8KB 3ms OK 5.5KB 6ms OK 4.5KB 111ms OK 6.0KB 106ms MATCH
color-convert OK 25KB 5ms OK 30KB 9ms OK 27KB 113ms OK 27KB 111ms MATCH
picomatch OK 48KB 6ms OK 58KB 9ms OK 55KB 113ms OK 61KB 116ms MATCH
type-is OK 186KB 10ms OK 244KB 17ms OK 210KB 123ms OK 179KB 152ms MATCH
object-assign OK 3.0KB 3ms OK 3.8KB 6ms OK 2.8KB 122ms OK 4.3KB 107ms MATCH
has-flag OK 0.4KB 3ms OK 0.5KB 6ms OK 1.5KB 116ms OK 1.7KB 116ms MATCH
p-limit OK 2.6KB 3ms OK 3.0KB 7ms OK 2.7KB 112ms OK 5.2KB 120ms MATCH
strip-ansi OK 0.7KB 3ms OK 0.8KB 6ms OK 0.8KB 112ms OK 2.2KB 112ms MATCH
ansi-regex OK 0.4KB 3ms OK 0.5KB 5ms OK 0.4KB 106ms OK 1.8KB 112ms MATCH
wrap-ansi OK 32KB 5ms OK 35KB 11ms OK 34KB 111ms OK 38KB 114ms MATCH
supports-color OK 3.6KB 3ms OK 3.8KB 7ms OK 4.6KB 112ms OK 5.7KB 112ms MATCH
cross-spawn OK 15KB 5ms OK 18KB 10ms OK 15KB 110ms OK 19KB 112ms MATCH
lru-cache OK 21KB 5ms OK 23KB 9ms OK 22KB 111ms OK 18KB 115ms MATCH
signal-exit OK 5.2KB 3ms OK 6.8KB 7ms OK 6.5KB 114ms OK 12KB 110ms MATCH
which OK 7.8KB 4ms OK 9.5KB 8ms OK 7.7KB 117ms OK 8.7KB 110ms MATCH
string-width OK 23KB 4ms OK 25KB 8ms OK 25KB 111ms OK 27KB 114ms MATCH
safe-buffer OK 2.7KB 3ms OK 3.8KB 7ms OK 1.7KB 108ms OK 3.8KB 109ms MATCH
bytes OK 3.4KB 3ms OK 4.3KB 7ms OK 4.3KB 118ms OK 5.5KB 109ms MATCH
depd OK 9.6KB 3ms OK 12KB 7ms OK 11KB 121ms OK 13KB 110ms MATCH
merge-descriptors OK 1.9KB 3ms OK 2.3KB 6ms OK 1.8KB 111ms OK 2.9KB 108ms MATCH
content-type OK 4.3KB 3ms OK 5.3KB 7ms OK 4.2KB 110ms OK 6.0KB 109ms MATCH
cookie OK 8.2KB 3ms OK 9.8KB 7ms OK 5.6KB 111ms OK 13KB 107ms MATCH
on-finished OK 5.1KB 3ms OK 6.9KB 7ms OK 6.6KB 106ms OK 8.3KB 111ms MATCH
statuses OK 4.5KB 3ms OK 5.8KB 6ms OK 5.3KB 106ms OK 6.1KB 107ms MATCH
etag OK 2.8KB 3ms OK 3.7KB 6ms OK 3.3KB 105ms OK 4.6KB 107ms MATCH
vary OK 3.0KB 3ms OK 3.7KB 6ms OK 3.5KB 113ms OK 5.1KB 107ms MATCH
flat OK 1.2KB 3ms OK 1.3KB 6ms OK 1.2KB 113ms OK 4.9KB 110ms MATCH
retry OK 7.1KB 3ms OK 8.6KB 7ms OK 7.0KB 110ms OK 7.3KB 108ms MATCH
camelcase OK 3.5KB 3ms OK 3.7KB 6ms OK 3.5KB 109ms OK 4.5KB 109ms MATCH
decamelize OK 1.2KB 3ms OK 1.3KB 6ms OK 1.3KB 108ms OK 3.0KB 108ms MATCH
memoize-one OK 1.2KB 3ms OK 3.1KB 6ms OK 2.3KB 104ms OK 2.4KB 111ms MATCH
rfdc OK 6.8KB 3ms OK 8.2KB 6ms OK 6.4KB 112ms OK 7.7KB 108ms MATCH
ohash OK 3.6KB 3ms OK 4.1KB 6ms OK 3.9KB 119ms OK 4.6KB 114ms MATCH
nanoevents OK 0.5KB 3ms OK 0.5KB 6ms OK 0.5KB 104ms OK 1.6KB 108ms MATCH
typebox OK 104KB 17ms OK 116KB 28ms OK 123KB 127ms OK 182KB 152ms MATCH
ts-pattern OK 10KB 4ms OK 12KB 8ms OK 11KB 117ms OK 9.6KB 112ms MATCH
valibot OK 5.9KB 12ms OK 6.8KB 15ms OK 8.0KB 126ms OK 193KB 131ms MATCH
ts-results-es OK 19KB 4ms OK 22KB 8ms OK 26KB 111ms OK 34KB 114ms MATCH
remeda OK 2.1KB 12ms OK 2.2KB 18ms OK 2.1KB 116ms OK 3.3KB 123ms MATCH
nanostores OK 4.9KB 4ms OK 5.7KB 8ms OK 5.1KB 111ms OK 8.2KB 112ms MATCH
ky OK 26KB 5ms OK 30KB 9ms OK 30KB 109ms OK 49KB 115ms MATCH
typedi OK 13KB 4ms OK 27KB 9ms OK 28KB 107ms OK 25KB 112ms MATCH
io-ts OK 23KB 9ms OK 104KB 16ms OK 117KB 124ms OK 102KB 125ms MATCH
type-fest OK 0.1KB 2ms OK 0.1KB 5ms OK 0.1KB 118ms OK 0.9KB 106ms MATCH
arktype OK 258KB 19ms OK 297KB 31ms OK 273KB 152ms OK 382KB 158ms MATCH
kysely OK 225KB 25ms OK 371KB 40ms OK 357KB 153ms OK 471KB 171ms MATCH
lodash-es@es5 OK 13KB 22ms OK 18KB 55ms OK 28KB 151ms FAIL - 0ms MATCH
clsx@es5 OK 1.1KB 2ms OK 0.6KB 6ms OK 0.6KB 105ms FAIL - 0ms MATCH
ms@es5 OK 4.1KB 3ms OK 4.5KB 7ms OK 4.0KB 113ms FAIL - 0ms MATCH
deepmerge@es5 OK 5.4KB 3ms OK 5.7KB 7ms OK 4.5KB 114ms FAIL - 0ms MATCH
fast-deep-equal@es5 OK 2.9KB 3ms OK 3.0KB 6ms OK 2.3KB 109ms FAIL - 0ms MATCH
semver@es5 OK 60KB 7ms FAIL - 10ms OK 52KB 115ms FAIL - 0ms MATCH
lodash-es@es2015 OK 13KB 22ms OK 18KB 56ms OK 28KB 150ms FAIL - 0ms MATCH
superjson@es2015 OK 23KB 6ms OK 27KB 11ms OK 24KB 115ms FAIL - 0ms MATCH
flat@es2017 OK 1.2KB 3ms OK 1.3KB 6ms OK 1.2KB 107ms FAIL - 0ms MATCH
defu@es2017 OK 1.9KB 3ms OK 2.8KB 7ms OK 1.8KB 114ms FAIL - 0ms MATCH
picomatch@es2018 OK 48KB 6ms OK 58KB 10ms OK 55KB 110ms FAIL - 0ms MATCH
semver@es2019 OK 56KB 6ms OK 66KB 12ms OK 52KB 114ms FAIL - 0ms MATCH
clsx@es2019 OK 0.5KB 2ms OK 0.6KB 6ms OK 0.6KB 105ms FAIL - 0ms MATCH
nanoid@es2019 OK 0.8KB 3ms OK 1.0KB 7ms OK 0.9KB 106ms FAIL - 0ms MATCH
dayjs@es2020 OK 11KB 4ms OK 14KB 8ms OK 11KB 117ms FAIL - 0ms MATCH
ohash@es2020 OK 3.7KB 3ms OK 4.8KB 7ms OK 3.9KB 109ms FAIL - 0ms MATCH
lru-cache@es2021 FAIL 25KB 5ms OK 35KB 9ms OK 22KB 120ms FAIL - 0ms -
nanostores@es2021 OK 1.8KB 3ms OK 2.3KB 8ms OK 1.9KB 108ms FAIL - 0ms MATCH
lodash-es@chrome80 OK 46KB 25ms OK 64KB 59ms OK 99KB 148ms FAIL - 0ms MATCH
clsx@chrome49 OK 1.0KB 3ms OK 0.6KB 6ms OK 0.7KB 106ms FAIL - 0ms MATCH
dayjs@safari14 OK 11KB 4ms OK 14KB 7ms OK 11KB 119ms FAIL - 0ms MATCH
nanoid@node16 OK 0.8KB 3ms OK 0.9KB 6ms OK 0.9KB 109ms FAIL - 0ms DIFF

Size Comparison (ZTS vs esbuild)

Project ZTS esbuild rolldown rspack Ratio Status
svelte 71KB 4.7KB 3.5KB 197KB 15.28x
pathe 14KB 3.4KB 3.0KB 13KB 3.96x
clsx@es5 1.1KB 0.6KB 0.6KB - 1.79x
clsx@chrome49 1.0KB 0.6KB 0.7KB - 1.56x
effect 666KB 477KB 368KB 1460KB 1.40x ⚠️
toolkit 65KB 51KB 39KB 126KB 1.28x ⚠️
type-fest 0.1KB 0.1KB 0.1KB 0.9KB 1.18x ⚠️
d3 116KB 100KB 96KB 150KB 1.16x ⚠️
uuid 2.2KB 2.1KB 2.0KB 3.9KB 1.05x
remeda 2.1KB 2.2KB 2.1KB 3.3KB 0.97x
dotenv 14KB 14KB 12KB 14KB 0.96x
camelcase 3.5KB 3.7KB 3.5KB 4.5KB 0.96x
change-case 3.1KB 3.2KB 3.3KB 8.0KB 0.95x
string-width 23KB 25KB 25KB 27KB 0.94x
fast-deep-equal@es5 2.9KB 3.0KB 2.3KB - 0.94x
destr 2.0KB 2.1KB 1.8KB 3.1KB 0.94x
deepmerge@es5 5.4KB 5.7KB 4.5KB - 0.94x
supports-color 3.6KB 3.8KB 4.6KB 5.7KB 0.94x
flat@es2017 1.2KB 1.3KB 1.2KB - 0.94x
flat 1.2KB 1.3KB 1.2KB 4.9KB 0.94x
zustand 1.1KB 1.2KB 1.3KB 2.3KB 0.93x
decamelize 1.2KB 1.3KB 1.3KB 3.0KB 0.93x
tslib 0.8KB 0.8KB 0.8KB 18KB 0.93x
lru-cache 21KB 23KB 22KB 18KB 0.92x
cac 17KB 18KB 16KB 19KB 0.92x
wrap-ansi 32KB 35KB 34KB 38KB 0.92x
has-flag 0.4KB 0.5KB 1.5KB 1.7KB 0.92x
valtio 6.8KB 7.5KB 8.3KB 24KB 0.91x
ansi-regex 0.4KB 0.5KB 0.4KB 1.8KB 0.91x
hookable 5.3KB 5.9KB 5.2KB 9.3KB 0.91x
ms@es5 4.1KB 4.5KB 4.0KB - 0.90x
yargs 167KB 185KB 167KB 227KB 0.90x
clsx 0.6KB 0.6KB 0.7KB 1.5KB 0.90x
jotai 21KB 23KB 20KB 26KB 0.90x
rxjs 329KB 367KB 308KB 325KB 0.90x
clsx@es2019 0.5KB 0.6KB 0.6KB - 0.90x
defu 1.9KB 2.1KB 1.8KB 3.0KB 0.89x
typebox 104KB 116KB 123KB 182KB 0.89x
ts-pattern 10KB 12KB 11KB 9.6KB 0.89x
superjson 23KB 26KB 24KB 32KB 0.89x
ohash 3.6KB 4.1KB 3.9KB 4.6KB 0.88x
ky 26KB 30KB 30KB 49KB 0.88x
strip-ansi 0.7KB 0.8KB 0.8KB 2.2KB 0.88x
ajv 214KB 243KB 208KB 239KB 0.88x
superjson@es2015 23KB 27KB 24KB - 0.87x
zlib 97KB 112KB 102KB 222KB 0.87x
chalk 13KB 15KB 14KB 17KB 0.87x
deepmerge 4.8KB 5.5KB 4.5KB 6.0KB 0.87x
arktype 258KB 297KB 273KB 382KB 0.87x
tiny-invariant 0.5KB 0.6KB 0.6KB 1.5KB 0.87x
valibot 5.9KB 6.8KB 8.0KB 193KB 0.87x
p-limit 2.6KB 3.0KB 2.7KB 5.2KB 0.86x
preact 13KB 15KB 13KB 13KB 0.86x
ts-results-es 19KB 22KB 26KB 34KB 0.86x
zod 102KB 119KB 98KB 147KB 0.86x
nanostores 4.9KB 5.7KB 5.1KB 8.2KB 0.85x
jsonwebtoken 117KB 137KB 141KB 159KB 0.85x
mitt 0.5KB 0.6KB 0.7KB 1.5KB 0.85x
semver@es2019 56KB 66KB 52KB - 0.85x
semver 56KB 66KB 52KB 67KB 0.85x
eventemitter3 6.6KB 7.8KB 9.2KB 10KB 0.85x
nanoevents 0.5KB 0.5KB 0.5KB 1.6KB 0.85x
immer 18KB 22KB 19KB 36KB 0.84x
color-convert 25KB 30KB 27KB 27KB 0.84x
cookie 8.2KB 9.8KB 5.6KB 13KB 0.84x
rfdc 6.8KB 8.2KB 6.4KB 7.7KB 0.84x
path-to-regexp 12KB 14KB 8.0KB 15KB 0.84x
react 53KB 64KB 53KB 18KB 0.83x
three 246KB 296KB 276KB 1280KB 0.83x
retry 7.1KB 8.6KB 7.0KB 7.3KB 0.83x
fast-glob 165KB 199KB 187KB 201KB 0.83x
picomatch@es2018 48KB 58KB 55KB - 0.83x
picomatch 48KB 58KB 55KB 61KB 0.83x
qs 79KB 95KB 81KB 92KB 0.83x
tanstack-query 47KB 57KB 49KB 59KB 0.82x
micromatch 82KB 100KB 100KB 108KB 0.82x
content-type 4.3KB 5.3KB 4.2KB 6.0KB 0.82x
react-dom 1110KB 1355KB 1116KB 534KB 0.82x
depd 9.6KB 12KB 11KB 13KB 0.82x
which 7.8KB 9.5KB 7.7KB 8.7KB 0.82x
vue 1635KB 2009KB 1606KB 1216KB 0.81x
escape-string-regexp 0.3KB 0.4KB 0.4KB 1.5KB 0.81x
ms 3.5KB 4.3KB 4.0KB 5.0KB 0.81x
fast-deep-equal 2.3KB 2.9KB 2.3KB 3.2KB 0.81x
minimatch 46KB 56KB 47KB 90KB 0.81x
yaml 211KB 261KB 228KB 284KB 0.81x
bytes 3.4KB 4.3KB 4.3KB 5.5KB 0.81x
nanoid@es2019 0.8KB 1.0KB 0.9KB - 0.80x
merge-descriptors 1.9KB 2.3KB 1.8KB 2.9KB 0.80x
nanoid 0.8KB 0.9KB 0.9KB 2.6KB 0.80x
vary 3.0KB 3.7KB 3.5KB 5.1KB 0.80x
nanoid@node16 0.8KB 0.9KB 0.9KB - 0.80x
nanostores@es2021 1.8KB 2.3KB 1.9KB - 0.80x
cheerio 1743KB 2186KB 1747KB 2387KB 0.80x
cross-spawn 15KB 18KB 15KB 19KB 0.80x
dayjs@es2020 11KB 14KB 11KB - 0.79x
dayjs 11KB 14KB 11KB 8.9KB 0.79x
dayjs@safari14 11KB 14KB 11KB - 0.79x
object-assign 3.0KB 3.8KB 2.8KB 4.3KB 0.79x
date-fns 37KB 47KB 77KB 102KB 0.79x
statuses 4.5KB 5.8KB 5.3KB 6.1KB 0.78x
signal-exit 5.2KB 6.8KB 6.5KB 12KB 0.77x
ohash@es2020 3.7KB 4.8KB 3.9KB - 0.77x
type-is 186KB 244KB 210KB 179KB 0.76x
is-glob 4.8KB 6.4KB 4.9KB 6.0KB 0.76x
mime-types 178KB 235KB 198KB 164KB 0.76x
on-finished 5.1KB 6.9KB 6.6KB 8.3KB 0.75x
etag 2.8KB 3.7KB 3.3KB 4.6KB 0.75x
hono 43KB 59KB 52KB 68KB 0.73x
glob-parent 6.2KB 8.4KB 6.3KB 7.9KB 0.73x
lodash-es@chrome80 46KB 64KB 99KB - 0.72x
lodash-es 46KB 64KB 99KB 122KB 0.72x
safe-buffer 2.7KB 3.8KB 1.7KB 3.8KB 0.72x
lodash-es@es5 13KB 18KB 28KB - 0.71x
bcryptjs 32KB 46KB 47KB 60KB 0.70x
lodash-es@es2015 13KB 18KB 28KB - 0.70x
express 787KB 1138KB 908KB 917KB 0.69x
defu@es2017 1.9KB 2.8KB 1.8KB - 0.68x
drizzle-orm 20KB 30KB 14KB 35KB 0.67x
neverthrow 11KB 18KB 13KB 19KB 0.62x
kysely 225KB 371KB 357KB 471KB 0.61x
commander 68KB 119KB 100KB 121KB 0.57x
iconv-lite 303KB 543KB 319KB 325KB 0.56x
mobx 135KB 271KB 234KB 190KB 0.50x
typedi 13KB 27KB 28KB 25KB 0.49x
supabase 312KB 759KB 706KB 779KB 0.41x
memoize-one 1.2KB 3.1KB 2.3KB 2.4KB 0.39x
io-ts 23KB 104KB 117KB 102KB 0.22x
solid-js 0.3KB 2.4KB 2.2KB 23KB 0.14x
fp-ts 8.8KB 70KB 100KB 50KB 0.13x
graphql 55KB 604KB 547KB 100KB 0.09x

Average ratio: 0.96x | Smaller: 122 | Similar(±10%): 1 | Larger: 8

Auto-generated by CI on 2026-04-06 14:09 UTC

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Benchmark Results (CI)

macos-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 2 5 1.0x
esbuild 4 4 4 1.3x
Bun 7 7 7 2.3x
oxc (node) 65 62 67 21.7x
SWC 107 105 113 35.7x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 5 5 5 1.0x
esbuild 6 5 6 1.2x
Bun 7 6 8 1.4x
oxc (node) 69 65 72 13.8x
SWC 125 112 134 25.0x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 4 4 5 1.0x
ZTS 9 8 9 2.3x
Bun 12 10 13 3.0x
oxc (node) 65 60 68 16.3x
SWC 123 118 133 30.8x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 3 4 1.0x
Bun 6 5 6 2.0x
esbuild 7 6 7 2.3x
rolldown 101 100 102 33.7x
rspack 127 105 166 42.3x
webpack 382 364 396 127.3x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 4 3 4 1.0x
Bun 7 6 7 1.8x
esbuild 8 8 8 2.0x
rspack 171 117 350 42.8x
rolldown 220 102 276 55.0x
webpack 390 377 407 97.5x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 8 7 13 1.0x
Bun 10 10 11 1.3x
esbuild 13 13 13 1.6x
rolldown 201 109 276 25.1x

ubuntu-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 2 1 2 1.0x
esbuild 2 2 2 1.0x
Bun 2 2 3 1.0x
oxc (node) 32 32 34 16.0x
SWC 98 93 103 49.0x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 2 2 2 1.0x
ZTS 4 4 4 2.0x
Bun 4 4 4 2.0x
oxc (node) 33 31 35 16.5x
SWC 99 97 102 49.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 2 2 2 1.0x
Bun 10 10 11 5.0x
ZTS 16 16 16 8.0x
oxc (node) 34 32 36 17.0x
SWC 120 117 124 60.0x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 2 2 2 1.0x
Bun 4 4 4 2.0x
esbuild 6 6 6 3.0x
rolldown 114 111 117 57.0x
rspack 120 118 124 60.0x
webpack 564 550 596 282.0x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 3 4 1.0x
Bun 5 5 6 1.7x
esbuild 8 8 9 2.7x
rolldown 109 106 111 36.3x
rspack 120 119 122 40.0x
webpack 537 535 538 179.0x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 8 8 8 1.0x
Bun 9 8 9 1.1x
esbuild 14 14 14 1.8x
rolldown 118 116 119 14.8x

windows-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 11 9 13 1.0x
Bun 20 19 21 1.8x
oxc (node) 88 73 127 8.0x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 13 12 14 1.0x
Bun 19 18 20 1.5x
oxc (node) 71 68 73 5.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
Bun 19 18 20 1.0x
ZTS 24 23 24 1.3x
oxc (node) 72 70 77 3.8x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 14 14 14 1.0x
Bun 33 32 34 2.4x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 20 17 22 1.0x
Bun 37 35 38 1.9x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 36 34 39 1.0x
Bun 48 47 48 1.3x

Auto-generated by CI on 2026-04-06 14:12 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant