Tests:
  • function

    x
     
    function myFunc() {
        return {"foo":"FOO"};
    }
    console.log(myFunc())
  • object

     
    const myObject = {"foo":"FOO"}
    console.log(myObject);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    function
    object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Chrome 67 on Windows 7
View result in a separate tab
Test name Executions per second
function 34693.8 Ops/sec
object 35416.9 Ops/sec