Skip to content

Commit 8d89dfa

Browse files
miguelcalderonpweiskircher
authored andcommitted
Add Nutrient benchmark (WIP).
1 parent df197ef commit 8d89dfa

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
@@ -2215,7 +2215,22 @@ let BENCHMARKS = [
22152215
iterations: 15,
22162216
worstCaseCount: 2,
22172217
tags: ["Wasm", "dotnet"]
2218-
})
2218+
}),
2219+
new WasmEMCCBenchmark({
2220+
name: "nutrient-wasm",
2221+
files: [
2222+
"./wasm/nutrient/helper.js",
2223+
"./wasm/nutrient/build/nutrient-viewer.wasm.js",
2224+
"./wasm/nutrient/benchmark.js",
2225+
],
2226+
preload: {
2227+
pdfDocument: "./wasm/nutrient/assets/example.pdf",
2228+
wasmBinary: "./wasm/nutrient/build/nutrient-viewer.wasm",
2229+
annotations: "./wasm/nutrient/assets/annotations.json"
2230+
},
2231+
iterations: 30,
2232+
tags: ["Wasm"],
2233+
}),
22192234
];
22202235

22212236
// 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)