Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Linux
Desktop
14 days ago
Test name Executions per second
collect mixed depth 1963849.9 Ops/sec
collect2 mixed depth 3648655.8 Ops/sec
collect nested 1986477.5 Ops/sec
collect2 nested 4568040.0 Ops/sec
collect with flat 1424586.1 Ops/sec
collect2 with flat 2374507.0 Ops/sec
Script Preparation code:
Tests:
  • collect mixed depth

  • collect2 mixed depth

  • collect nested

  • collect2 nested

  • collect with flat

  • collect2 with flat