Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Chrome 141
Windows
Desktop
8 months ago
Test name Executions per second
For loop from direct data. Length 10 27396.0 Ops/sec
For loop from copied data. Length 10 29024.3 Ops/sec
For loop with flat. Length10 7181.6 Ops/sec
For loop using TypedArray. Length 10 12411.8 Ops/sec
For loop using set. Length 10 20114.9 Ops/sec
For loop using set with seperated array. Length 10 22430.6 Ops/sec
For loop using set with TypedArray. Length 10 11623.4 Ops/sec
For loop direct set. Length 10 29444.7 Ops/sec
For loop from direct data. Length 100 27149.4 Ops/sec
For loop from copied data. Length 100 24687.3 Ops/sec
For loop with flat Length.100 7055.8 Ops/sec
For loop using TypedArray. Length 100 27686.0 Ops/sec
For loop using set. Length 100 30724.3 Ops/sec
For loop using set with seperated array. Length 100 35144.6 Ops/sec
For loop using set with TypedArray. Length 100 39847.6 Ops/sec
Set with flatted array. Length 10 6620.5 Ops/sec
Set with flatted array. Length 100 6548.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • For loop from direct data. Length 10

  • For loop from copied data. Length 10

  • For loop with flat. Length10

  • For loop using TypedArray. Length 10

  • For loop using set. Length 10

  • For loop using set with seperated array. Length 10

  • For loop using set with TypedArray. Length 10

  • For loop direct set. Length 10

  • For loop from direct data. Length 100

  • For loop from copied data. Length 100

  • For loop with flat Length.100

  • For loop using TypedArray. Length 100

  • For loop using set. Length 100

  • For loop using set with seperated array. Length 100

  • For loop using set with TypedArray. Length 100

  • Set with flatted array. Length 10

  • Set with flatted array. Length 100