Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
testing
(version: 0)
ing
Comparing performance of:
1 vs 2
Created:
8 years ago
by:
Guest
Jump to the latest result
Tests:
1
var o = "HSLU123777"; var a=0,n=-55,e=-48; var x=n+o.charCodeAt(0); var z=n+o.charCodeAt(1); var w=n+o.charCodeAt(2); var v=n+o.charCodeAt(3); a+=x+((x<<7)-(x<<5)+(x<<2)>>10)>>0; a+=z+((z<<7)-(z<<5)+(z<<2)>>10)>>0<<1; a+=w+((w<<7)-(w<<5)+(w<<2)>>10)>>0<<2; a+=v+((v<<7)-(v<<5)+(v<<2)>>10)>>0<<3; a+=e+o.charCodeAt(4)<<4; a+=e+o.charCodeAt(5)<<5; a+=e+o.charCodeAt(6)<<6; a+=e+o.charCodeAt(7)<<7; a+=e+o.charCodeAt(8)<<8; a+=e+o.charCodeAt(9)<<9; var d=a%11%10; return d;
2
var o = "HSLU123777"; var a=0,n=-55,e=-48384; var x=n+o.charCodeAt(0); var z=n+o.charCodeAt(1); var w=n+o.charCodeAt(2); var v=n+o.charCodeAt(3); a+=x+((x<<7)-(x<<5)+(x<<2)>>10)>>0; a+=z+((z<<7)-(z<<5)+(z<<2)>>10)>>0<<1; a+=w+((w<<7)-(w<<5)+(w<<2)>>10)>>0<<2; a+=v+((v<<7)-(v<<5)+(v<<2)>>10)>>0<<3; a+=o.charCodeAt(4)<<4; a+=o.charCodeAt(5)<<5; a+=o.charCodeAt(6)<<6; a+=o.charCodeAt(7)<<7; a+=o.charCodeAt(8)<<8; a+=o.charCodeAt(9)<<9; var d=(a-e)%11%10; return d;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
1
2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
parseInt vs Math.trunc
js boolean conversion
Number vs + vs parseFloat vs parseInt
parseInt vs Math.trunc 2
Regexp vs split cookie
Comments
Confirm delete:
Do you really want to delete benchmark?