Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
Async wait for init (WASM) 49581.1 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas 42.8 Ops/sec
(WebGL) Tensor_from_Canvas_TypedArray 3.4 Ops/sec
(WebGL) Tensor_from_Canvas_ImageData 10.5 Ops/sec
(WebGL) Tensor_from_Canvas 14.3 Ops/sec
Async wait for init (WebGL) 56059.2 Ops/sec
(CPU) 14 411622368.0 Ops/sec
(CPU) 13 402485824.0 Ops/sec
(CPU) 12 380243264.0 Ops/sec
(CPU) 11 407316608.0 Ops/sec
(CPU) Tensor_from_Canvas_TypedArray 9.4 Ops/sec
(CPU) Tensor_from_Canvas_ImageData 9.5 Ops/sec
(CPU) Tensor_from_Canvas 7.9 Ops/sec
Async wait for init (CPU) 54841.8 Ops/sec
(WASM) 13 406232032.0 Ops/sec
(WASM) 12 398684256.0 Ops/sec
(WASM) 11 402301120.0 Ops/sec
(WASM) 10 400329504.0 Ops/sec
(General) OffscreenCanvas_from_Canvas 541.1 Ops/sec
(General) OffscreenCanvas_from_Canvas_ImageData 14.2 Ops/sec
(WASM) Tensor_from_Canvas 7.3 Ops/sec
(WASM) Tensor_from_Canvas_ImageData 7.2 Ops/sec
(WASM) Tensor_from_Canvas_TypedArray 7.3 Ops/sec
(WASM) 1 350661952.0 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_ImageData 11.5 Ops/sec
(WASM) 2 396559648.0 Ops/sec
(WASM) 4 389555168.0 Ops/sec
(WASM) 5 376074944.0 Ops/sec
(WASM) 6 375691552.0 Ops/sec
(WASM) 7 391858368.0 Ops/sec
(WASM) 8 395023552.0 Ops/sec
(WASM) 9 377513120.0 Ops/sec
(WASM) 3 369884384.0 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_TypedArray 3.6 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