Run details:
Mozilla/5.0 (Android 10.0; Mobile; rv:89.0) Gecko/89.0 Firefox/89.0
Firefox Mobile 89
Android 10.0
Mobile
3 years ago
Test name Executions per second
Array 242.6 Ops/sec
Queue with 2 Stacks 196.7 Ops/sec
Ring Buffer 165.4 Ops/sec
Ring Buffer (Int32Array) 259.1 Ops/sec
(FYI) Rust + wasm 472.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array

  • Queue with 2 Stacks

  • Ring Buffer

  • Ring Buffer (Int32Array)

  • (FYI) Rust + wasm