perf: improve mapObjectValues by ~50%(#18922)

Merged
Merging
perf/map-object-values
into
main
-34%
IMPROVEMENTS
1
REGRESSIONS
1
UNTOUCHED
1
NEW
0
DROPPED
0

Benchmarks

Failing

client generation 100 models with relations
Regression
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
-34%
40.4 s
61.5 s

Passing

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
-10%
5.7 s
6.3 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
×14
676.4 ms
49.3 ms

Commits

Click on a commit to change the comparison range
perf(client): Replace `chalk` with `kleur/color` (#18900) * perf(client): Replace `chalk` with `kleur/color` Signgicantly reduces bundle size (from 280K to 255K) and improves `require(runtime)` performance by 5-10ms. * Replace chalk in CLI * Remove chalk from migrate * Remove chalk from top-level scripts * Update packages/client/src/runtime/utils/createErrorMessageWithContext.ts Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Make all binary engine labels bold --------- Co-authored-by: Alexey Orlenko <alex@aqrln.net>
base
56672be
7 months ago by SevInf
-34%
perf: improve mapObjectValues by ~50%
2bbcab7
7 months ago by Weakky
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.