Skip to content

perf(linker): buildInlineObjectStr cache miss double-dupe 제거#751

Merged
ohah merged 1 commit into
mainfrom
fix/simplify-linker-cache-cleanup
Apr 5, 2026
Merged

perf(linker): buildInlineObjectStr cache miss double-dupe 제거#751
ohah merged 1 commit into
mainfrom
fix/simplify-linker-cache-cleanup

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Apr 5, 2026

Summary

  • cache miss 시 result + cache_copy 2회 dupe → result를 cache에 직접 저장 + caller에만 dupe 1회로 변경

Test plan

  • zig build test 통과
  • bun test tests/bundle-smoke.test.ts 99개 통과

🤖 Generated with Claude Code

cache miss 경로에서 result를 dupe 후 cache_copy를 다시 dupe하던 것을
result를 cache에 직접 저장하고 caller에게만 dupe 반환하도록 변경.
1회 할당 절약.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohah ohah added the enhancement New feature or request label Apr 5, 2026
@ohah ohah self-assigned this Apr 5, 2026
@ohah ohah added the enhancement New feature or request label Apr 5, 2026
@ohah ohah merged commit ff8fd29 into main Apr 5, 2026
@ohah ohah deleted the fix/simplify-linker-cache-cleanup branch April 5, 2026 12:04
@github-actions
Copy link
Copy Markdown

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

Auto-generated by CI on 2026-04-05 12:08 UTC

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 5, 2026

Benchmark Results (CI)

macos-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 3 4 1.0x
esbuild 5 5 6 1.7x
Bun 6 6 6 2.0x
oxc (node) 64 59 70 21.3x
SWC 128 113 172 42.7x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 4 4 4 1.0x
esbuild 5 4 5 1.3x
Bun 9 7 9 2.3x
oxc (node) 74 70 82 18.5x
SWC 146 132 170 36.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 6 5 6 1.0x
Bun 9 9 10 1.5x
ZTS 11 11 11 1.8x
oxc (node) 68 61 74 11.3x
SWC 149 139 170 24.8x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 3 3 3 1.0x
Bun 6 6 6 2.0x
esbuild 7 7 7 2.3x
rspack 230 112 392 76.7x
rolldown 254 156 363 84.7x
webpack 414 372 471 138.0x

bundle — medium (50 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 4 4 5 1.0x
Bun 7 7 8 1.8x
esbuild 9 8 11 2.3x
rspack 168 120 324 42.0x
rolldown 268 150 421 67.0x
webpack 412 378 439 103.0x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 7 6 7 1.0x
Bun 10 9 10 1.4x
esbuild 12 12 13 1.7x
rolldown 205 114 441 29.3x

ubuntu-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 1 1 2 1.0x
esbuild 2 2 2 2.0x
Bun 2 2 3 2.0x
oxc (node) 32 30 35 32.0x
SWC 92 89 96 92.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) 32 31 34 16.0x
SWC 97 94 101 48.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
esbuild 2 2 2 1.0x
Bun 10 10 10 5.0x
ZTS 16 16 16 8.0x
oxc (node) 31 30 33 15.5x
SWC 115 113 116 57.5x

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 5 6 3.0x
rolldown 108 105 111 54.0x
rspack 113 111 116 56.5x
webpack 529 523 541 264.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 114 107 121 38.0x
rspack 118 117 120 39.3x
webpack 526 519 536 175.3x

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 8 7 8 1.0x
Bun 9 8 9 1.1x
esbuild 14 14 15 1.8x
rolldown 119 114 123 14.9x

windows-latest

transpile — small (100 lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 10 10 11 1.0x
Bun 18 17 19 1.8x
oxc (node) 68 65 73 6.8x

transpile — medium (1K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 12 11 14 1.0x
Bun 18 17 18 1.5x
oxc (node) 66 64 69 5.5x

transpile — large (5K lines)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
Bun 18 16 19 1.0x
ZTS 22 22 22 1.2x
oxc (node) 62 60 66 3.4x

bundle — small (10 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 13 13 13 1.0x
Bun 31 30 31 2.4x

bundle — medium (50 modules)

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

bundle — large (200 modules)

Tool Avg (ms) Min (ms) Max (ms) vs fastest
ZTS 31 30 31 1.0x
Bun 43 43 45 1.4x

Auto-generated by CI on 2026-04-05 12:11 UTC

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant