A Benchmark for WebAssembly (Wasm, WA) that uses PSPDFKit for Web Standalone.
The rendering engine of PSPDFKit for Web Standalone is written in C/C++ and compiled to Wasm.
- Node.js (with npm or Yarn)
- A PSPDFKit for Web license. If you don't already have one you can request a free trial here.
pspdfkit npm package and move all contents to the vendor directory.
npm install --save pspdfkit
mkdir -p public/vendor
cp -R node_modules/pspdfkit/dist public/vendor/pspdfkit
Bootstrap the project by installing all the other dependencies.
Now that PSPDFKit for Web is installed, you need to copy your product (license) key to the
We can now run the benchmark server:
The benchmark is available at
You can build an optimized version using the following command:
PUBLIC_URL="/webassembly-benchmark/" npm run build
PUBLIC_URL must be set according to the final URL, where the application is hosted.
The following optimizations can be enabled via URL parameter:
runsScaleFactor, scales the number of test runs,
This repository contains files used to build the PSPDFKit WebAssembly benchmark.
The source files are structured into two different categories:
src/libcontains all files necessary to set up the test suite including the individual tests and helper functions.
src/uicontains a React application that is used to render the user interface.
For a main entry point, have a look at
This software is licensed under the MIT license.
Please ensure you have signed our CLA so that we can accept your contributions.