WebNN hand-off study on Windows / RTX 3060 (N12.14)

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
47/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript, web-dev
Domain
performance

Research direction

Start with bench/nrc/webnn-replay.ts and the existing results in bench/results/NRC-WEBNN-SYNC.md; reproduce the listed ctx, tensors, sync, route, and fold arms on Windows with an RTX 3060, using gemmC=zero for Chrome's ORT / DirectML backend. Record the results in the study and compare them with the existing Mac measurements and WGSL figures; a quiet-Mac rerun is optional if final absolute numbers are needed.

Written by the indexing model from the issue text.

Description

question

Task: N12.14 · Page: nrc WebNN replay (bench/nrc/webnn-replay.ts), results NRC-WEBNN-SYNC.md

The Mac half of the WebNN <-> WebGPU hand-off study is done (M5 Pro, Chrome 158, best effort): exportToGPU was the cost (44-50 ms per frame); going through JavaScript (route=cpu) costs 2.8-3.0 ms; a folded tensor (fold=8) gives ONE exported dispatch at 6.1-6.9 ms. That is still ~2x the whole WGSL cache frame and ~6x WGSL inference, so the recommendation stays portable WGSL (N12.12 found the same on Windows: WebNN 4.4-9.7x slower than WGSL on the 3060).

Open

  • The same arms (ctx, tensors, sync, route, fold) on Windows / RTX 3060 (Chrome's ORT / DirectML backend needs gemmC=zero, the default there).
  • A quiet-Mac rerun if the absolute numbers are to be final.

Low priority: this is a confirmation that WebNN does not beat WGSL for NRC inference, not a blocker for anything.

Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
15h 19m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/pathtracer

All issues in pmndrs/pathtracer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.