mljs / matrix

Matrix manipulation and computation library
https://mljs.github.io/matrix/
MIT License
353 stars 54 forks source link

Benchmarking with WebGPU? #186

Open jaanli opened 5 months ago

jaanli commented 5 months ago

Hi, just wondering whether WebGPU support would be possible (https://codelabs.developers.google.com/your-first-webgpu-app#0).

Not sure how big of a lift this might be or how hard the integration could get.

Context: trying to benchmark various approximate nearest neighbor libraries for in-browser nearest k-nearest neighbor algorithms. One example is here: https://github.com/Maxxen/duckdb-vss (DuckDB runs in WebAssembly via rust I think)

Please let me know if you need any more context!