Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:87.0) Gecko/20100101 Firefox/87.0
Firefox 87
Mac OS X 10.14
Desktop
3 years ago
Test name Executions per second
Switch function inside 37428708.0 Ops/sec
Switch with text 41175392.0 Ops/sec
Object with function 64802452.0 Ops/sec
Object with text 63541336.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Switch function inside

  • Switch with text

  • Object with function

  • Object with text