Test name | Executions per second |
---|---|
notnot | 2660880.8 Ops/sec |
parseInt | 1033624.2 Ops/sec |
Number | 1063064.8 Ops/sec |
var strA = "420343343242";
var strB = "420343343243";
var res = ~~strA > ~~strB;
var res = parseInt(strA) > parseInt(strB);
var res = Number(strA) > Number(strB);