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
3 days ago
Test name Executions per second
collect mixed depth 1455835.0 Ops/sec
collect2 mixed depth 2788173.8 Ops/sec
collect nested 1464596.2 Ops/sec
collect2 nested 3433311.0 Ops/sec
collect with flat 1069370.0 Ops/sec
collect2 with flat 1801851.6 Ops/sec
Script Preparation code:
Tests:
  • collect mixed depth

  • collect2 mixed depth

  • collect nested

  • collect2 nested

  • collect with flat

  • collect2 with flat