Test name | Executions per second |
---|---|
toString() | 3579717.5 Ops/sec |
toFixed(4) | 3220414.2 Ops/sec |
<!--your preparation HTML code goes here-->
/*your preparation JavaScript code goes here
To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/
async function globalMeasureThatScriptPrepareFunction() {
// This function is optional, feel free to remove it.
// await someThing();
}
let buf ='';
/*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/
buf = Math.random().toString();
buf = Math.random().toFixed(4);