Test name | Executions per second |
---|---|
toString | 11848390.0 Ops/sec |
JSON.stringify | 4292740.5 Ops/sec |
function makeTestData() { return { name: "Matheus de Sousa Martins", age: 30, phone: "999999999999" }; }
makeTestData().toString()
JSON.stringify(makeTestData());