Skip to content

Commit 1a8a584

Browse files
miguelcalderonpweiskircher
authored andcommitted
Add Nutrient benchmark (WIP).
1 parent c1851d9 commit 1a8a584

File tree

8 files changed

+1459
-0
lines changed

8 files changed

+1459
-0
lines changed

JetStreamDriver.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,22 @@ let BENCHMARKS = [
22122212
iterations: 40,
22132213
tags: ["Wasm"],
22142214
}),
2215+
// nutrient
2216+
new WasmEMCCBenchmark({
2217+
name: "nutrient-wasm",
2218+
files: [
2219+
"./wasm/nutrient/helper.js",
2220+
"./wasm/nutrient/build/nutrient-viewer.wasm.js",
2221+
"./wasm/nutrient/benchmark.js",
2222+
],
2223+
preload: {
2224+
pdfDocument: "./wasm/nutrient/assets/example.pdf",
2225+
wasmBinary: "./wasm/nutrient/build/nutrient-viewer.wasm",
2226+
annotations: "./wasm/nutrient/assets/annotations.json"
2227+
},
2228+
iterations: 30,
2229+
tags: ["Wasm"],
2230+
}),
22152231
];
22162232

22172233
// LuaJSFight tests

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)