Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
includes check on missing value 713728.6 Ops/sec
includes check on existing value 9077614.0 Ops/sec
hash set an existing value 9539889.0 Ops/sec
hash set a missing value 11058759.0 Ops/sec
hash check for missing value then set 12651517.0 Ops/sec
hash check for existing value 11354345.0 Ops/sec
Script Preparation code:
Tests:
  • includes check on missing value

  • includes check on existing value

  • hash set an existing value

  • hash set a missing value

  • hash check for missing value then set

  • hash check for existing value