Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
Async wait for init (WASM) 321503.7 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas 12.1 Ops/sec
(WebGL) Tensor_from_Canvas_TypedArray 2.6 Ops/sec
(WebGL) Tensor_from_Canvas_ImageData 8.5 Ops/sec
(WebGL) Tensor_from_Canvas 11.7 Ops/sec
Async wait for init (WebGL) 928418.6 Ops/sec
(CPU) 1 373809088.0 Ops/sec
(CPU) Tensor_from_OffscreenCanvas_TypedArray 7.6 Ops/sec
(CPU) Tensor_from_OffscreenCanvas_ImageData 7.5 Ops/sec
(CPU) Tensor_from_OffscreenCanvas 7.6 Ops/sec
(CPU) Tensor_from_Canvas_TypedArray 6.3 Ops/sec
(CPU) Tensor_from_Canvas_ImageData 6.2 Ops/sec
(CPU) Tensor_from_Canvas 7.8 Ops/sec
Async wait for init (CPU) 700584.3 Ops/sec
(WASM) 2 329295904.0 Ops/sec
(WASM) Tensor_from_OffscreenCanvas_TypedArray 5.7 Ops/sec
(WASM) Tensor_from_OffscreenCanvas_ImageData 6.5 Ops/sec
(WASM) Tensor_from_OffscreenCanvas 6.7 Ops/sec
(WASM) Tensor_from_Canvas_TypedArray 5.5 Ops/sec
(WASM) Tensor_from_Canvas_ImageData 4.7 Ops/sec
(WASM) Tensor_from_Canvas 6.2 Ops/sec
(WASM) 1 378406496.0 Ops/sec
(General) OffscreenCanvas_from_OffscreenCanvas_ImageData 8.5 Ops/sec
(General) OffscreenCanvas_from_OffscreenCanvas 423.7 Ops/sec
(General) OffscreenCanvas_from_Canvas_ImageData 10.5 Ops/sec
(General) OffscreenCanvas_from_Canvas 549.2 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_ImageData 9.4 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_TypedArray 2.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Async wait for init (WASM)

  • (General) OffscreenCanvas_from_Canvas

  • (General) OffscreenCanvas_from_Canvas_ImageData

  • (General) OffscreenCanvas_from_OffscreenCanvas

  • (General) OffscreenCanvas_from_OffscreenCanvas_ImageData

  • (WASM) 1

  • (WASM) Tensor_from_Canvas

  • (WASM) Tensor_from_Canvas_ImageData

  • (WASM) Tensor_from_Canvas_TypedArray

  • (WASM) Tensor_from_OffscreenCanvas

  • (WASM) Tensor_from_OffscreenCanvas_ImageData

  • (WASM) Tensor_from_OffscreenCanvas_TypedArray

  • (WASM) 2

  • Async wait for init (CPU)

  • (CPU) Tensor_from_Canvas

  • (CPU) Tensor_from_Canvas_ImageData

  • (CPU) Tensor_from_Canvas_TypedArray

  • (CPU) Tensor_from_OffscreenCanvas

  • (CPU) Tensor_from_OffscreenCanvas_ImageData

  • (CPU) Tensor_from_OffscreenCanvas_TypedArray

  • (CPU) 1

  • Async wait for init (WebGL)

  • (WebGL) Tensor_from_Canvas

  • (WebGL) Tensor_from_Canvas_ImageData

  • (WebGL) Tensor_from_Canvas_TypedArray

  • (WebGL) Tensor_from_OffscreenCanvas

  • (WebGL) Tensor_from_OffscreenCanvas_ImageData

  • (WebGL) Tensor_from_OffscreenCanvas_TypedArray