Skip to content

Add Nutrient benchmark #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,22 @@ let BENCHMARKS = [
iterations: 15,
worstCaseCount: 2,
tags: ["Default", "Wasm", "dotnet"],
})
}),
new WasmEMCCBenchmark({
name: "nutrient-wasm",
files: [
"./wasm/nutrient/helper.js",
"./wasm/nutrient/build/nutrient-viewer.wasm.js",
"./wasm/nutrient/benchmark.js",
],
preload: {
pdfDocument: "./wasm/nutrient/assets/example.pdf",
wasmBinary: "./wasm/nutrient/build/nutrient-viewer.wasm",
annotations: "./wasm/nutrient/assets/annotations.json"
},
iterations: 30,
tags: ["Wasm"],
}),
];

// FIXME: figure out what to do this these benchmarks.
Expand Down
8 changes: 8 additions & 0 deletions in-depth.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ <h3>
Source code: <a href="RexBench/OfflineAssembler/parser.js">OfflineAssembler.js</a>
</dd>

<dt id="nutrient-wasm">nutrient-wasm</dt>
<dd>
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.
This benchmark loads a PDF document, renders a page, creates text annotations, and renders the annotations.
It stresses WebAssembly performance and the interaction between JavaScript and WebAssembly for complex document processing operations.
Source code: <a href="wasm/nutrient/benchmark.js">benchmark.js</a>
</dd>

<dt id="octane-code-load">octane-code-load</dt>
<dd>
Test of code load speed of the jQuery and Closure libraries. Because this test allows
Expand Down
Loading
Loading