Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146
Windows
Desktop
4 months ago
Test name Executions per second
For loop from direct data. Length 10 19063.3 Ops/sec
For loop from copied data. Length 10 7275.4 Ops/sec
For loop with flat. Length10 3425.5 Ops/sec
For loop using TypedArray. Length 10 3645.7 Ops/sec
For loop using set. Length 10 4449.2 Ops/sec
For loop using set with seperated array. Length 10 5773.1 Ops/sec
For loop using set with TypedArray. Length 10 5520.9 Ops/sec
For loop direct set. Length 10 35546.2 Ops/sec
For loop from direct data. Length 100 26449.7 Ops/sec
For loop from copied data. Length 100 4686.0 Ops/sec
For loop with flat Length.100 4012.5 Ops/sec
For loop using TypedArray. Length 100 9652.1 Ops/sec
For loop using set. Length 100 9343.9 Ops/sec
For loop using set with seperated array. Length 100 16771.6 Ops/sec
For loop using set with TypedArray. Length 100 35593.1 Ops/sec
Set with flatted array. Length 10 3788.5 Ops/sec
Set with flatted array. Length 100 3793.4 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