Test name | Executions per second |
---|---|
search | 99271736.0 Ops/sec |
startsWith | 41051276.0 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();
}
const value = "fromDate";
return value.startsWith("from");
const value = "fromDate";
return value.search(/^(from|to)/);