Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Chrome 92
Windows
Desktop
3 years ago
Test name Executions per second
Object random string keys 234.6 Ops/sec
Object random numeric smi keys 217.0 Ops/sec
Object sequential string keys 236.3 Ops/sec
Object sequential numeric smi keys 241.5 Ops/sec
Map random string keys 230.9 Ops/sec
Map random numeric smi keys 220.7 Ops/sec
Map sequential string keys 232.8 Ops/sec
Map sequential numeric smi keys 247.3 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