Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 Edg/91.0.864.71
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Object random string keys 206.8 Ops/sec
Object random numeric smi keys 209.6 Ops/sec
Object sequential string keys 228.5 Ops/sec
Object sequential numeric smi keys 222.6 Ops/sec
Map random string keys 209.3 Ops/sec
Map random numeric smi keys 218.4 Ops/sec
Map sequential string keys 210.4 Ops/sec
Map sequential numeric smi keys 212.1 Ops/sec
Script Preparation code:
Tests:
  • Object random string keys

  • Object random numeric smi keys

  • Object sequential string keys

  • Object sequential numeric smi keys

  • Map random string keys

  • Map random numeric smi keys

  • Map sequential string keys

  • Map sequential numeric smi keys