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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
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 on Chrome OS 14541.0.0
View result in a separate tab
Test name Executions per second
Async wait for init (WASM) 481196.5 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas 14.2 Ops/sec
(WebGL) Tensor_from_Canvas_TypedArray 3.4 Ops/sec
(WebGL) Tensor_from_Canvas_ImageData 10.6 Ops/sec
(WebGL) Tensor_from_Canvas 13.6 Ops/sec
Async wait for init (WebGL) 1006454.5 Ops/sec
(CPU) 1 411615872.0 Ops/sec
(CPU) Tensor_from_OffscreenCanvas_TypedArray 9.9 Ops/sec
(CPU) Tensor_from_OffscreenCanvas_ImageData 9.9 Ops/sec
(CPU) Tensor_from_OffscreenCanvas 9.6 Ops/sec
(CPU) Tensor_from_Canvas_TypedArray 9.8 Ops/sec
(CPU) Tensor_from_Canvas_ImageData 9.3 Ops/sec
(CPU) Tensor_from_Canvas 9.2 Ops/sec
Async wait for init (CPU) 987574.8 Ops/sec
(WASM) 2 410434912.0 Ops/sec
(WASM) Tensor_from_OffscreenCanvas_TypedArray 7.8 Ops/sec
(WASM) Tensor_from_OffscreenCanvas_ImageData 7.7 Ops/sec
(WASM) Tensor_from_OffscreenCanvas 7.6 Ops/sec
(WASM) Tensor_from_Canvas_TypedArray 7.6 Ops/sec
(WASM) Tensor_from_Canvas_ImageData 7.8 Ops/sec
(WASM) Tensor_from_Canvas 7.9 Ops/sec
(WASM) 1 413528512.0 Ops/sec
(General) OffscreenCanvas_from_OffscreenCanvas_ImageData 15.2 Ops/sec
(General) OffscreenCanvas_from_OffscreenCanvas 587.0 Ops/sec
(General) OffscreenCanvas_from_Canvas_ImageData 6.9 Ops/sec
(General) OffscreenCanvas_from_Canvas 621.2 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_ImageData 10.3 Ops/sec
(WebGL) Tensor_from_OffscreenCanvas_TypedArray 3.5 Ops/sec