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

devicedtypeload msfirst batch msbatch mstexts / 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.

Log