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 Edg/90.0.818.66
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
includes check on missing value 775814.8 Ops/sec
includes check on existing value 7120866.5 Ops/sec
hash set an existing value 7930927.5 Ops/sec
hash set a missing value 9079996.0 Ops/sec
hash check for missing value then set 10089365.0 Ops/sec
hash check for existing value 8676646.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