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