Skip to content

fix: __DEV__ 자동 define + define boolean 치환 수정#656

Merged
ohah merged 1 commit into
mainfrom
fix/define-dev-boolean
Apr 2, 2026
Merged

fix: __DEV__ 자동 define + define boolean 치환 수정#656
ohah merged 1 commit into
mainfrom
fix/define-dev-boolean

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Apr 2, 2026

Summary

  • --platform=react-native에서 __DEV__=false 자동 define (Metro 호환)
  • define 치환 타입 수정: false/true/숫자는 identifier_reference로, 문자열은 string_literal
  • 이전: 모든 값을 string_literal로 치환 → false"als" 오류

Test plan

  • zig build test 전체 통과
  • bun run test:hermes — 0 error, 13 pass
  • RN 번들 __DEV__ 0개 (전부 false로 치환)

🤖 Generated with Claude Code

- --platform=browser/react-native에서 __DEV__=false 자동 define (Metro 호환)
- define 치환 시 값 타입 감지: 따옴표 시작 → string_literal, 그 외 → identifier_reference
  이전: 모든 값을 string_literal로 치환하여 false→"als" 같은 오류 발생

hermesc 0 error, __DEV__ 0개 (전부 false로 치환)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohah ohah added the bug Something isn't working label Apr 2, 2026
@ohah ohah self-assigned this Apr 2, 2026
@ohah ohah merged commit b9fd791 into main Apr 2, 2026
@ohah ohah deleted the fix/define-dev-boolean branch April 2, 2026 20:12
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 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 30ms OK 64KB 67ms OK 99KB 340ms OK 122KB 133ms MATCH
preact OK 13KB 4ms OK 15KB 8ms OK 13KB 118ms OK 13KB 111ms MATCH
date-fns OK 37KB 141ms OK 47KB 46ms OK 77KB 134ms OK 102KB 156ms MATCH
uuid OK 2.2KB 4ms OK 2.1KB 8ms OK 2.0KB 110ms OK 3.9KB 109ms MATCH
zod OK 102KB 11ms OK 119KB 17ms OK 98KB 121ms OK 147KB 131ms MATCH
axios OK 346KB 21ms FAIL 436KB 39ms OK 399KB 142ms OK 411KB 169ms MATCH
toolkit OK 65KB 11ms OK 51KB 20ms OK 39KB 120ms OK 126KB 126ms MATCH
rxjs OK 328KB 22ms OK 367KB 38ms OK 308KB 157ms OK 325KB 152ms MATCH
immer OK 18KB 5ms OK 22KB 9ms OK 19KB 108ms OK 36KB 114ms MATCH
superjson OK 23KB 7ms OK 26KB 12ms OK 24KB 118ms OK 32KB 117ms MATCH
express FAIL 786KB 30ms OK 1138KB 60ms OK 908KB 163ms OK 917KB 174ms -
react OK 53KB 5ms OK 64KB 9ms OK 53KB 111ms OK 18KB 108ms MATCH
commander OK 68KB 7ms OK 119KB 13ms OK 100KB 123ms OK 121KB 118ms MATCH
eventemitter3 OK 6.2KB 3ms OK 7.8KB 7ms OK 9.2KB 108ms OK 10KB 112ms MATCH
ms OK 3.1KB 3ms OK 4.3KB 6ms OK 4.0KB 118ms OK 5.0KB 109ms MATCH
dotenv OK 12KB 4ms OK 14KB 9ms OK 12KB 115ms OK 14KB 108ms MATCH
jsonwebtoken OK 117KB 10ms OK 137KB 20ms OK 141KB 137ms OK 159KB 121ms MATCH
bcryptjs OK 32KB 6ms OK 46KB 10ms OK 47KB 120ms OK 60KB 115ms MATCH
clsx OK 0.6KB 3ms OK 0.6KB 7ms OK 0.7KB 109ms OK 1.5KB 107ms MATCH
tiny-invariant OK 0.5KB 3ms OK 0.6KB 7ms OK 0.6KB 106ms OK 1.5KB 110ms MATCH
tanstack-query OK 47KB 6ms OK 57KB 13ms OK 49KB 124ms OK 59KB 118ms MATCH
fast-glob OK 165KB 13ms OK 199KB 23ms OK 187KB 126ms OK 201KB 126ms MATCH
micromatch OK 81KB 8ms OK 100KB 13ms OK 100KB 129ms OK 108KB 118ms MATCH
semver OK 56KB 6ms OK 66KB 12ms OK 52KB 115ms OK 67KB 121ms MATCH
debug OK 19KB 5ms FAIL 25KB 11ms OK 24KB 120ms OK 28KB 117ms MATCH
chalk OK 13KB 4ms OK 15KB 9ms OK 14KB 122ms OK 17KB 115ms MATCH
yaml OK 210KB 13ms OK 261KB 23ms OK 228KB 137ms OK 284KB 129ms MATCH
yargs OK 167KB 12ms OK 185KB 19ms OK 167KB 141ms OK 227KB 134ms MATCH
effect OK 666KB 149ms OK 477KB 166ms OK 368KB 285ms OK 1460KB 252ms MATCH
vue OK 1634KB 75ms OK 2009KB 82ms OK 1606KB 265ms OK 1216KB 182ms MATCH
svelte OK 71KB 13ms OK 4.7KB 18ms OK 3.5KB 127ms OK 197KB 133ms MATCH
solid-js OK 0.3KB 4ms OK 2.4KB 9ms OK 2.2KB 117ms OK 23KB 119ms MATCH
three OK 246KB 66ms OK 296KB 71ms OK 276KB 192ms OK 1280KB 264ms MATCH
graphql OK 55KB 15ms OK 604KB 36ms OK 547KB 158ms OK 100KB 121ms MATCH
supabase OK 312KB 19ms OK 759KB 32ms OK 706KB 157ms OK 779KB 148ms MATCH
mobx OK 135KB 13ms OK 271KB 21ms OK 234KB 140ms OK 190KB 131ms MATCH
jotai OK 21KB 5ms OK 23KB 9ms OK 20KB 131ms OK 26KB 113ms MATCH
mitt OK 0.5KB 3ms OK 0.6KB 6ms OK 0.7KB 116ms OK 1.5KB 112ms MATCH
zustand OK 1.1KB 3ms OK 1.2KB 7ms OK 1.3KB 110ms OK 2.3KB 110ms MATCH
valtio OK 6.8KB 4ms OK 7.5KB 8ms OK 8.3KB 120ms OK 24KB 119ms MATCH
react-dom OK 1110KB 32ms OK 1355KB 42ms OK 1116KB 198ms OK 534KB 133ms MATCH
d3 OK 115KB 39ms OK 100KB 73ms OK 96KB 171ms OK 150KB 187ms MATCH
hono OK 43KB 9ms OK 59KB 13ms OK 52KB 127ms OK 68KB 120ms MATCH
dayjs OK 11KB 4ms OK 14KB 8ms OK 11KB 107ms OK 8.9KB 110ms MATCH
nanoid OK 0.8KB 3ms OK 0.9KB 6ms OK 0.9KB 112ms OK 2.6KB 110ms MATCH
zlib OK 97KB 12ms OK 112KB 16ms OK 102KB 132ms OK 222KB 129ms MATCH
fp-ts OK 8.8KB 7ms OK 70KB 13ms OK 100KB 124ms OK 50KB 121ms MATCH
neverthrow OK 11KB 4ms OK 18KB 8ms OK 13KB 108ms OK 19KB 115ms MATCH
drizzle-orm OK 20KB 34ms OK 30KB 28ms OK 14KB 127ms OK 35KB 129ms MATCH
tslib OK 0.8KB 4ms OK 0.8KB 8ms OK 0.8KB 124ms OK 18KB 113ms MATCH
iconv-lite OK 302KB 7ms OK 543KB 13ms OK 319KB 130ms OK 325KB 123ms MATCH
qs OK 78KB 11ms OK 95KB 24ms OK 81KB 118ms OK 92KB 120ms MATCH
change-case OK 3.1KB 3ms OK 3.2KB 7ms OK 3.3KB 113ms OK 8.0KB 114ms MATCH
path-to-regexp OK 11KB 4ms OK 14KB 8ms OK 8.0KB 112ms OK 15KB 109ms MATCH
mime-types FAIL 178KB 9ms OK 235KB 15ms OK 198KB 114ms OK 164KB 141ms -
ajv FAIL 210KB 12ms OK 243KB 21ms OK 208KB 134ms OK 239KB 130ms -
cac OK 17KB 4ms OK 18KB 8ms OK 16KB 118ms OK 19KB 114ms MATCH
defu OK 1.9KB 3ms OK 2.1KB 7ms OK 1.8KB 109ms OK 3.0KB 108ms MATCH
pathe OK 14KB 6ms OK 3.4KB 8ms OK 3.0KB 105ms OK 13KB 116ms MATCH
destr OK 2.0KB 3ms OK 2.1KB 6ms OK 1.8KB 112ms OK 3.1KB 117ms MATCH
hookable OK 5.3KB 3ms OK 5.9KB 7ms OK 5.2KB 114ms OK 9.3KB 113ms MATCH
minimatch OK 46KB 7ms OK 56KB 13ms OK 47KB 114ms OK 90KB 120ms MATCH
cheerio FAIL 1737KB 58ms OK 2186KB 87ms OK 1747KB 261ms OK 2387KB 216ms -
is-glob OK 4.5KB 3ms OK 6.4KB 6ms OK 4.9KB 119ms OK 6.0KB 108ms MATCH
glob-parent OK 5.8KB 3ms OK 8.4KB 8ms OK 6.3KB 111ms OK 7.9KB 107ms MATCH
escape-string-regexp OK 0.3KB 3ms OK 0.4KB 6ms OK 0.4KB 115ms OK 1.5KB 106ms MATCH
fast-deep-equal OK 1.9KB 3ms OK 2.9KB 7ms OK 2.3KB 104ms OK 3.2KB 106ms MATCH
deepmerge OK 4.4KB 3ms OK 5.5KB 8ms OK 4.5KB 107ms OK 6.0KB 115ms MATCH
color-convert OK 25KB 6ms OK 30KB 11ms OK 27KB 126ms OK 27KB 115ms MATCH
picomatch OK 48KB 7ms OK 58KB 11ms OK 55KB 119ms OK 61KB 113ms MATCH
type-is FAIL 186KB 10ms OK 244KB 16ms OK 210KB 121ms OK 179KB 141ms -
object-assign OK 2.6KB 3ms OK 3.8KB 6ms OK 2.8KB 105ms OK 4.3KB 107ms MATCH
has-flag OK 0.4KB 3ms OK 0.5KB 6ms OK 1.5KB 117ms OK 1.7KB 111ms MATCH
p-limit OK 2.6KB 3ms OK 3.0KB 7ms OK 2.7KB 115ms OK 5.2KB 111ms MATCH
strip-ansi OK 0.7KB 3ms OK 0.8KB 7ms OK 0.8KB 112ms OK 2.2KB 107ms MATCH
ansi-regex OK 0.4KB 3ms OK 0.5KB 6ms OK 0.4KB 120ms OK 1.8KB 110ms MATCH
wrap-ansi OK 32KB 5ms OK 35KB 10ms OK 34KB 119ms OK 38KB 116ms MATCH
supports-color OK 3.6KB 3ms OK 3.8KB 7ms OK 4.6KB 119ms OK 5.7KB 118ms MATCH
cross-spawn OK 14KB 5ms OK 18KB 11ms OK 15KB 123ms OK 19KB 118ms MATCH
lru-cache OK 21KB 5ms OK 23KB 9ms OK 22KB 110ms OK 18KB 111ms MATCH
signal-exit OK 5.2KB 3ms OK 6.8KB 7ms OK 6.5KB 120ms OK 12KB 110ms MATCH
which OK 7.4KB 3ms OK 9.5KB 7ms OK 7.7KB 117ms OK 8.7KB 110ms MATCH
string-width OK 23KB 4ms OK 25KB 8ms OK 25KB 111ms OK 27KB 115ms MATCH
safe-buffer OK 2.3KB 3ms OK 3.8KB 7ms OK 1.7KB 120ms OK 3.8KB 113ms MATCH
bytes OK 3.0KB 3ms OK 4.3KB 6ms OK 4.3KB 106ms OK 5.5KB 108ms MATCH
depd OK 9.2KB 3ms OK 12KB 7ms OK 11KB 111ms OK 13KB 111ms MATCH
merge-descriptors OK 1.5KB 3ms OK 2.3KB 7ms OK 1.8KB 110ms OK 2.9KB 112ms MATCH
content-type OK 4.0KB 4ms OK 5.3KB 6ms OK 4.2KB 114ms OK 6.0KB 116ms MATCH
cookie OK 7.8KB 3ms OK 9.8KB 8ms OK 5.6KB 115ms OK 13KB 111ms MATCH
on-finished OK 4.8KB 4ms OK 6.9KB 8ms OK 6.6KB 123ms OK 8.3KB 113ms MATCH
statuses FAIL 4.6KB 3ms OK 5.8KB 6ms OK 5.3KB 115ms OK 6.1KB 112ms -
etag OK 2.4KB 3ms OK 3.7KB 7ms OK 3.3KB 108ms OK 4.6KB 109ms MATCH
vary OK 2.6KB 3ms OK 3.7KB 7ms OK 3.5KB 110ms OK 5.1KB 109ms MATCH
flat OK 1.2KB 3ms OK 1.3KB 6ms OK 1.2KB 116ms OK 4.9KB 112ms MATCH
retry OK 6.8KB 3ms OK 8.6KB 7ms OK 7.0KB 119ms OK 7.3KB 115ms MATCH
camelcase OK 3.5KB 3ms OK 3.7KB 7ms OK 3.5KB 118ms OK 4.5KB 124ms MATCH
decamelize OK 1.2KB 3ms OK 1.3KB 7ms OK 1.3KB 120ms OK 3.0KB 111ms MATCH
memoize-one OK 1.2KB 3ms OK 3.1KB 7ms OK 2.3KB 106ms OK 2.4KB 113ms MATCH
rfdc OK 6.5KB 3ms OK 8.2KB 7ms OK 6.4KB 116ms OK 7.7KB 111ms MATCH
ohash OK 3.6KB 3ms OK 4.1KB 8ms OK 3.9KB 109ms OK 4.6KB 116ms MATCH
nanoevents OK 0.5KB 3ms OK 0.5KB 7ms OK 0.5KB 124ms OK 1.6KB 116ms MATCH
typebox OK 104KB 18ms OK 116KB 31ms OK 123KB 147ms OK 182KB 157ms MATCH
ts-pattern OK 10KB 4ms OK 12KB 9ms OK 11KB 110ms OK 9.6KB 116ms MATCH
valibot OK 5.9KB 12ms OK 6.8KB 18ms OK 8.0KB 131ms OK 193KB 138ms MATCH
ts-results-es OK 19KB 5ms OK 22KB 9ms OK 26KB 122ms OK 34KB 118ms MATCH
remeda OK 2.1KB 13ms OK 2.2KB 20ms OK 2.1KB 127ms OK 3.3KB 126ms MATCH
nanostores OK 4.9KB 4ms OK 5.7KB 8ms OK 5.1KB 102ms OK 8.2KB 122ms MATCH
ky OK 26KB 5ms OK 30KB 9ms OK 30KB 122ms OK 49KB 115ms MATCH
typedi OK 13KB 4ms OK 27KB 10ms OK 28KB 120ms OK 25KB 121ms MATCH
io-ts OK 23KB 9ms OK 104KB 17ms OK 117KB 139ms OK 102KB 134ms MATCH
type-fest OK 0.1KB 2ms OK 0.1KB 6ms OK 0.1KB 124ms OK 0.9KB 107ms MATCH
arktype OK 258KB 20ms OK 297KB 33ms OK 273KB 155ms OK 382KB 159ms MATCH
kysely OK 225KB 25ms OK 371KB 42ms OK 357KB 157ms OK 471KB 174ms MATCH
lodash-es@es5 OK 13KB 23ms OK 18KB 59ms OK 28KB 148ms FAIL - 0ms MATCH
clsx@es5 OK 1.0KB 3ms OK 0.6KB 6ms OK 0.6KB 120ms FAIL - 0ms MATCH
ms@es5 OK 3.5KB 3ms OK 4.5KB 7ms OK 4.0KB 125ms FAIL - 0ms MATCH
deepmerge@es5 OK 4.8KB 3ms OK 5.7KB 7ms OK 4.5KB 117ms FAIL - 0ms MATCH
fast-deep-equal@es5 OK 2.4KB 4ms OK 3.0KB 7ms OK 2.3KB 115ms FAIL - 0ms MATCH
semver@es5 FAIL 58KB 6ms FAIL - 11ms OK 52KB 125ms FAIL - 0ms -
lodash-es@es2015 OK 13KB 22ms OK 18KB 56ms OK 28KB 144ms FAIL - 0ms MATCH
superjson@es2015 OK 23KB 6ms OK 27KB 12ms OK 24KB 112ms FAIL - 0ms MATCH
flat@es2017 OK 1.2KB 3ms OK 1.3KB 7ms OK 1.2KB 115ms FAIL - 0ms MATCH
defu@es2017 OK 1.9KB 3ms OK 2.8KB 7ms OK 1.8KB 105ms FAIL - 0ms MATCH
picomatch@es2018 OK 48KB 6ms OK 58KB 10ms OK 55KB 110ms FAIL - 0ms MATCH
semver@es2019 OK 56KB 6ms OK 66KB 11ms OK 52KB 110ms FAIL - 0ms MATCH
clsx@es2019 OK 0.5KB 3ms OK 0.6KB 6ms OK 0.6KB 107ms FAIL - 0ms MATCH
nanoid@es2019 OK 0.8KB 3ms OK 1.0KB 6ms OK 0.9KB 115ms FAIL - 0ms MATCH
dayjs@es2020 OK 11KB 4ms OK 14KB 8ms OK 11KB 115ms FAIL - 0ms MATCH
ohash@es2020 OK 3.7KB 3ms OK 4.8KB 8ms OK 3.9KB 118ms FAIL - 0ms MATCH
lru-cache@es2021 FAIL 25KB 5ms OK 35KB 10ms OK 22KB 110ms FAIL - 0ms -
nanostores@es2021 OK 1.8KB 4ms OK 2.3KB 8ms OK 1.9KB 113ms FAIL - 0ms MATCH
lodash-es@chrome80 OK 46KB 25ms OK 64KB 59ms OK 99KB 147ms FAIL - 0ms MATCH
clsx@chrome49 OK 1.0KB 3ms OK 0.6KB 6ms OK 0.7KB 108ms FAIL - 0ms MATCH
dayjs@safari14 OK 11KB 4ms OK 14KB 8ms OK 11KB 110ms FAIL - 0ms MATCH
nanoid@node16 OK 0.8KB 3ms OK 0.9KB 7ms OK 0.9KB 107ms 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.0KB 0.6KB 0.6KB - 1.57x
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 115KB 100KB 96KB 150KB 1.15x ⚠️
uuid 2.2KB 2.1KB 2.0KB 3.9KB 1.05x
remeda 2.1KB 2.2KB 2.1KB 3.3KB 0.97x
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
destr 2.0KB 2.1KB 1.8KB 3.1KB 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
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
clsx@es2019 0.5KB 0.6KB 0.6KB - 0.90x
rxjs 328KB 367KB 308KB 325KB 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
superjson@es2015 23KB 27KB 24KB - 0.87x
zlib 97KB 112KB 102KB 222KB 0.87x
chalk 13KB 15KB 14KB 17KB 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
mitt 0.5KB 0.6KB 0.7KB 1.5KB 0.85x
deepmerge@es5 4.8KB 5.7KB 4.5KB - 0.85x
jsonwebtoken 117KB 137KB 141KB 159KB 0.85x
nanoevents 0.5KB 0.5KB 0.5KB 1.6KB 0.85x
semver@es2019 56KB 66KB 52KB - 0.84x
semver 56KB 66KB 52KB 67KB 0.84x
immer 18KB 22KB 19KB 36KB 0.84x
dotenv 12KB 14KB 12KB 14KB 0.83x
three 246KB 296KB 276KB 1280KB 0.83x
color-convert 25KB 30KB 27KB 27KB 0.83x
fast-glob 165KB 199KB 187KB 201KB 0.83x
react 53KB 64KB 53KB 18KB 0.83x
qs 78KB 95KB 81KB 92KB 0.82x
tanstack-query 47KB 57KB 49KB 59KB 0.82x
picomatch@es2018 48KB 58KB 55KB - 0.82x
picomatch 48KB 58KB 55KB 61KB 0.82x
react-dom 1110KB 1355KB 1116KB 534KB 0.82x
micromatch 81KB 100KB 100KB 108KB 0.82x
vue 1634KB 2009KB 1606KB 1216KB 0.81x
escape-string-regexp 0.3KB 0.4KB 0.4KB 1.5KB 0.81x
minimatch 46KB 56KB 47KB 90KB 0.81x
path-to-regexp 11KB 14KB 8.0KB 15KB 0.81x
yaml 210KB 261KB 228KB 284KB 0.80x
nanoid@es2019 0.8KB 1.0KB 0.9KB - 0.80x
cookie 7.8KB 9.8KB 5.6KB 13KB 0.80x
deepmerge 4.4KB 5.5KB 4.5KB 6.0KB 0.80x
nanoid 0.8KB 0.9KB 0.9KB 2.6KB 0.80x
nanoid@node16 0.8KB 0.9KB 0.9KB - 0.80x
nanostores@es2021 1.8KB 2.3KB 1.9KB - 0.80x
eventemitter3 6.2KB 7.8KB 9.2KB 10KB 0.80x
rfdc 6.5KB 8.2KB 6.4KB 7.7KB 0.79x
date-fns 37KB 47KB 77KB 102KB 0.79x
ms@es5 3.5KB 4.5KB 4.0KB - 0.79x
retry 6.8KB 8.6KB 7.0KB 7.3KB 0.79x
depd 9.2KB 12KB 11KB 13KB 0.79x
cross-spawn 14KB 18KB 15KB 19KB 0.78x
which 7.4KB 9.5KB 7.7KB 8.7KB 0.78x
fast-deep-equal@es5 2.4KB 3.0KB 2.3KB - 0.77x
signal-exit 5.2KB 6.8KB 6.5KB 12KB 0.77x
ohash@es2020 3.7KB 4.8KB 3.9KB - 0.77x
dayjs@es2020 11KB 14KB 11KB - 0.77x
dayjs 11KB 14KB 11KB 8.9KB 0.77x
dayjs@safari14 11KB 14KB 11KB - 0.77x
content-type 4.0KB 5.3KB 4.2KB 6.0KB 0.75x
hono 43KB 59KB 52KB 68KB 0.73x
ms 3.1KB 4.3KB 4.0KB 5.0KB 0.72x
lodash-es@chrome80 46KB 64KB 99KB - 0.72x
lodash-es 46KB 64KB 99KB 122KB 0.72x
bytes 3.0KB 4.3KB 4.3KB 5.5KB 0.72x
lodash-es@es2015 13KB 18KB 28KB - 0.70x
lodash-es@es5 13KB 18KB 28KB - 0.70x
vary 2.6KB 3.7KB 3.5KB 5.1KB 0.70x
is-glob 4.5KB 6.4KB 4.9KB 6.0KB 0.70x
bcryptjs 32KB 46KB 47KB 60KB 0.69x
on-finished 4.8KB 6.9KB 6.6KB 8.3KB 0.69x
object-assign 2.6KB 3.8KB 2.8KB 4.3KB 0.69x
glob-parent 5.8KB 8.4KB 6.3KB 7.9KB 0.69x
defu@es2017 1.9KB 2.8KB 1.8KB - 0.68x
fast-deep-equal 1.9KB 2.9KB 2.3KB 3.2KB 0.68x
drizzle-orm 20KB 30KB 14KB 35KB 0.67x
etag 2.4KB 3.7KB 3.3KB 4.6KB 0.65x
merge-descriptors 1.5KB 2.3KB 1.8KB 2.9KB 0.64x
neverthrow 11KB 18KB 13KB 19KB 0.62x
safe-buffer 2.3KB 3.8KB 1.7KB 3.8KB 0.62x
kysely 225KB 371KB 357KB 471KB 0.61x
commander 68KB 119KB 100KB 121KB 0.57x
iconv-lite 302KB 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.95x | Smaller: 116 | Similar(±10%): 1 | Larger: 8

Auto-generated by CI on 2026-04-02 20:16 UTC

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Benchmark Results (CI)

macos-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 7 5 11 1.0x
Bun 8 7 9 1.1x
esbuild 11 8 18 1.6x
oxc (node) 85 73 98 12.1x
SWC 191 177 206 27.3x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 7 5 11 1.0x
esbuild 8 6 9 1.1x
Bun 13 11 17 1.9x
oxc (node) 90 85 98 12.9x
SWC 183 153 208 26.1x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 9 6 11 1.0x
ZTS 14 10 19 1.6x
Bun 15 11 22 1.7x
oxc (node) 95 78 114 10.6x
SWC 188 182 197 20.9x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 7 5 8 1.0x
Bun 12 8 15 1.7x
esbuild 13 11 16 1.9x
rspack 236 159 439 33.7x
rolldown 257 184 353 36.7x
webpack 549 516 610 78.4x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 8 6 10 1.0x
Bun 11 9 15 1.4x
esbuild 15 12 19 1.9x
rspack 175 143 205 21.9x
rolldown 271 209 302 33.9x
webpack 535 518 558 66.9x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 10 9 12 1.0x
Bun 15 13 17 1.5x
esbuild 20 16 25 2.0x
rolldown 197 148 362 19.7x

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 3 3 3 1.5x
oxc (node) 29 28 29 14.5x
SWC 90 89 92 45.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) 29 28 29 14.5x
SWC 95 94 96 47.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 2 2 2 1.0x
Bun 11 11 11 5.5x
ZTS 16 16 17 8.0x
oxc (node) 29 29 29 14.5x
SWC 115 113 117 57.5x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 2 2 2 1.0x
Bun 4 4 5 2.0x
esbuild 6 6 6 3.0x
rolldown 105 104 109 52.5x
rspack 110 109 111 55.0x
webpack 499 496 504 249.5x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 3 3 1.0x
Bun 5 5 5 1.7x
esbuild 7 7 8 2.3x
rolldown 108 104 112 36.0x
rspack 117 117 118 39.0x
webpack 502 497 508 167.3x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 8 8 8 1.0x
Bun 9 9 9 1.1x
esbuild 14 14 15 1.8x
rolldown 117 114 120 14.6x

windows-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 9 8 9 1.0x
Bun 16 16 16 1.8x
oxc (node) 61 57 64 6.8x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 11 10 12 1.0x
Bun 16 16 18 1.5x
oxc (node) 58 57 58 5.3x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
Bun 16 16 16 1.0x
ZTS 20 20 21 1.3x
oxc (node) 58 57 59 3.6x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 12 12 12 1.0x
Bun 29 29 31 2.4x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 16 16 17 1.0x
Bun 33 32 34 2.1x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 31 31 32 1.0x
Bun 43 42 44 1.4x

Auto-generated by CI on 2026-04-02 20:18 UTC

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant