GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pdf-parser/benchmark/eval/wasm at main · Tom-R-Main/pdf-parser

Expand file tree

/

wasm

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

wasm

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
abi.test.mjs
abi.test.mjs
 
 
browser.mjs
browser.mjs
 
 
fixtures.mjs
fixtures.mjs
 
 
stage.mjs
stage.mjs
 
 
worker.test.mjs
worker.test.mjs
 
 

README.md

WASM consumer checks

Use the pinned Zig 0.17.0 compiler and Node 22 or newer. These checks consume the actual built module and maintained web files, without npm dependencies.

zig build wasm --summary all
node --test --test-concurrency=1 benchmark/eval/wasm/*.test.mjs
node benchmark/eval/wasm/browser.mjs benchmark/eval/outputs/wasm-browser

The browser runner needs an installed Chrome/Chromium executable. Set CHROME_BIN when it is outside the runner's normal paths. It creates and closes its own headless browser profile and localhost server. It does not install or fetch tools. Chromium's --no-sandbox flag is confined to this disposable test driver; run it against repository-owned staged content only.

The Node suite checks the compiled ABI, wrapper ownership, status/refusal boundaries, legacy compatibility and independent decoded-stream controls. It compares clean text to checked-in ground truth. Mocked host exceptions isolate cleanup paths; they are not natural guest-trap or memory-exhaustion evidence. Worker scheduling mocks check initialization cancellation, input snapshot timing, timeout/reset, stale replies, disposal and pre-aborted signals. They do not substitute for the real Worker browser checks.

The browser runner stages the same asset set as the deployment recipe, binds hashes in asset-manifest.json, and drives the actual demo's file input. It checks delayed readiness, clean text, an empty scan, nested paths, missing HTTP assets, the real Worker heartbeat, one-job admission, cancellation and recovery. It writes results.json, a screenshot and Chrome logs under its output folder. Both suites include a wrong-text negative assertion control. This proves that the semantic expectation fails, rather than accepting an ignored boolean.

To stage only the deployable asset set:

node benchmark/eval/wasm/stage.mjs deploy

These tests do not qualify other browsers, deployed GitHub Pages, aggregate host memory, arbitrary PDF correctness or performance. Node success is separate from the browser gate; the latter is required for the static browser consumer.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.