Casting-type (v7)

Revision 7 of this benchmark created 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
string (castable to number) and number
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.