Skip to content

Commit f79f62a

Browse files
miguelcalderonpweiskircher
authored andcommitted
Add Nutrient benchmark (WIP).
1 parent 4b8dff1 commit f79f62a

File tree

8 files changed

+1459
-1
lines changed

8 files changed

+1459
-1
lines changed

JetStreamDriver.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,22 @@ let BENCHMARKS = [
25222522
iterations: 15,
25232523
worstCaseCount: 2,
25242524
tags: ["Default", "Wasm", "dotnet"],
2525-
})
2525+
}),
2526+
new WasmEMCCBenchmark({
2527+
name: "nutrient-wasm",
2528+
files: [
2529+
"./wasm/nutrient/helper.js",
2530+
"./wasm/nutrient/build/nutrient-viewer.wasm.js",
2531+
"./wasm/nutrient/benchmark.js",
2532+
],
2533+
preload: {
2534+
pdfDocument: "./wasm/nutrient/assets/example.pdf",
2535+
wasmBinary: "./wasm/nutrient/build/nutrient-viewer.wasm",
2536+
annotations: "./wasm/nutrient/assets/annotations.json"
2537+
},
2538+
iterations: 30,
2539+
tags: ["Wasm"],
2540+
}),
25262541
];
25272542

25282543

in-depth.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ <h3>
333333
Source code: <a href="RexBench/OfflineAssembler/parser.js">OfflineAssembler.js</a>
334334
</dd>
335335

336+
<dt id="nutrient-wasm">nutrient-wasm</dt>
337+
<dd>
338+
Tests the <a href="https://www.nutrient.io/sdk/web">Nutrient Web SDK</a>, a client-side PDF framework that runs in the browser using WebAssembly.
339+
This benchmark loads a PDF document, renders a page, creates text annotations, and renders the annotations.
340+
It stresses WebAssembly performance and the interaction between JavaScript and WebAssembly for complex document processing operations.
341+
Source code: <a href="wasm/nutrient/benchmark.js">benchmark.js</a>
342+
</dd>
343+
336344
<dt id="octane-code-load">octane-code-load</dt>
337345
<dd>
338346
Test of code load speed of the jQuery and Closure libraries. Because this test allows

0 commit comments

Comments
 (0)