WebGPU vs WASM
One instance of embeddings per backend, same model, same texts. benchmark() times the load, the first (warm-up) batch, then steady state.
Results
| device | dtype | load ms | first batch ms | batch ms | texts / s |
|---|
Load includes the download on a first visit; reload to see the cached number. The first batch includes shader compilation on WebGPU. Batch ms is the mean over the iterations.