Avatar for the prisma user
prisma
prisma-engines
BlogDocsChangelog

feat(schema-wasm): support edge runtimes in addition to Node.js

#4950
Comparing
integration/schema-wasm-bundler
(
2ffa63f
) with
main
(
9618390
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
11
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

medium_read
query-engine/request-handlers/benches/query_planning_bench.rs::benches::criterion_benchmark::medium_read
CodSpeed Performance Gauge
0%
321.9 µs
321.5 µs
validate (large)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::psl::validate (large)
CodSpeed Performance Gauge
0%
63.6 ms
63.5 ms
build (small)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::schema_builder::build (small)
CodSpeed Performance Gauge
0%
297.8 µs
297.7 µs
build (large)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::schema_builder::build (large)
CodSpeed Performance Gauge
0%
5.1 ms
5.1 ms
validate (medium)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::psl::validate (medium)
CodSpeed Performance Gauge
0%
14 ms
14 ms
mutation
query-engine/request-handlers/benches/query_planning_bench.rs::benches::criterion_benchmark::mutation
CodSpeed Performance Gauge
0%
6.3 ms
6.3 ms
validate (small)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::psl::validate (small)
CodSpeed Performance Gauge
0%
2.1 ms
2.1 ms
large_read
query-engine/request-handlers/benches/query_planning_bench.rs::benches::criterion_benchmark::large_read
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
deep_read_query
query-engine/request-handlers/benches/query_planning_bench.rs::benches::criterion_benchmark::deep_read_query
CodSpeed Performance Gauge
0%
2 ms
2 ms
small_read
query-engine/request-handlers/benches/query_planning_bench.rs::benches::criterion_benchmark::small_read
CodSpeed Performance Gauge
0%
110.3 µs
110.5 µs
build (medium)
query-engine/schema/benches/schema_builder_bench.rs::benches::criterion_benchmark::schema_builder::build (medium)
CodSpeed Performance Gauge
-1%
2.5 ms
2.5 ms

Commits

Click on a commit to change the comparison range
Base
main
9618390
0%
feat(schema-wasm): support environments other than Node.js Previously we generated wasm-bindgen bindings for `@prisma/prisma-schema-wasm` with `--target nodejs`. This makes the generated glue code use Node.js `fs` module to load the WebAssembly module from disk and then instantiate it from an array of bytes. This commit change this to `--target bundler` which is what we use for `query-engine-wasm`. This makes wasm-bindgen use `import` statement to load the WebAssembly module instead. This is a breaking change, and requires updating Prisma CLI and language tools.
2ffa63f
6 months ago
by aqrln
Home Terms PrivacyDocs