Casting-type

Benchmark created by Mahdi on


Test runner

Ready to run.

Testing in
TestOps/sec
string to integer
var x = 's';
var y = 5;
x = parseInt(x, 10);

x + y;
ready
integer
var x = 2;
var y = 5;

x + y
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.