Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
splice-1 3758490.8 Ops/sec
splice-2 3618269.8 Ops/sec
splice-3 3762439.5 Ops/sec
toSpliced-1 3089284.2 Ops/sec
toSpliced-2 194754.6 Ops/sec
toSpliced-3 448.6 Ops/sec
splice-3 add items 1251.2 Ops/sec
splice-3 remove 1758.3 Ops/sec
toSpliced-3 add 460.7 Ops/sec
toSpliced-3 remove 453.0 Ops/sec
Script Preparation code:
Tests:
  • splice-1

  • splice-2

  • splice-3

  • toSpliced-1

  • toSpliced-2

  • toSpliced-3

  • splice-3 add items

  • splice-3 remove

  • toSpliced-3 add

  • toSpliced-3 remove