Avatar for the prisma user
prisma
prisma
BlogDocsChangelog

perf(client): Properly tree-shake `arg` and `lz-string`

#19050Merged
Comparing
integration/misc-tree-shaking
(
b398ecb
) with
main
(
0064ee3
)
CodSpeed Performance Gauge
+34%
Improvements
2
Regressions
0
Untouched
1
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
CodSpeed Performance Gauge
+34%
10.4 s
7.8 s
client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
CodSpeed Performance Gauge
+26%
1.4 s
1.1 s

Passed

typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
CodSpeed Performance Gauge
-3%
12.9 ms
13.3 ms

Commits

Click on a commit to change the comparison range
Base
main
0064ee3
-6%
perf(client): Properly tree-shake some `arg` and `lz-string` `arg` is not used by any of the runtime dependencies but was not tree-shaked because it is not marked as side effects free and some `internals` helpers required it. `lz-string` is not used by any runtime except edge/data-proxy but was still bundled. That saves around 8KB from a bundle size, but unfortinately has no visible effect on performance. Close prisma/client-plannning#342
0933c8d
2 years ago
by SevInf
+40%
perf(client): Properly tree-shake some `arg` and `lz-string` `arg` is not used by any of the runtime dependencies but was not tree-shaked because it is not marked as side effects free and some `internals` helpers required it. `lz-string` is not used by any runtime except edge/data-proxy but was still bundled. That saves around 8KB from a bundle size, but unfortinately has no visible effect on performance. Close prisma/client-plannning#342
b398ecb
2 years ago
by SevInf
© 2025 CodSpeed Technology
Home Terms Privacy Docs