Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.57 Safari/537.36
Chrome 69
Mac OS X 10.13.6
Desktop
6 years ago
Test name Executions per second
Loop over characters, check if in input Set 33194.7 Ops/sec
Flip object keys 24983.0 Ops/sec
Compare two sets (generate letterSet) 29336.3 Ops/sec
Compare two sets (static letterSet) 39467.3 Ops/sec
Tests:
  • Loop over characters, check if in input Set

  • Flip object keys

  • Compare two sets (generate letterSet)

  • Compare two sets (static letterSet)


;