Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
eval 10538149.0 Ops/sec
eval function 27033642.0 Ops/sec
function 29447850.0 Ops/sec
eval anonymous functions 28577678.0 Ops/sec
Script Preparation code:
Tests:
  • eval

  • eval function

  • function

  • eval anonymous functions