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

Merged
Merging
integration/misc-tree-shaking
into
main
+39%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
3
NEW
0
DROPPED
0

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+27%
7.2 s
5.7 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-3%
60.1 ms
61.7 ms
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
+39%
54.2 s
39 s

Commits

Click on a commit to change the comparison range
fix(client): Fix deno build after keyed-dmmf migration (#19071) `dmmfToRuntimeDataModel` is not exported from runitme and is not used in generated client, but was imported. This causes an error for `edge-esm` runtime, used by Deno.
base
fdc8732
7 months ago by SevInf
-14%
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
7 months ago by SevInf
+53%
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
7 months ago by SevInf
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.