Variable Swapping

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array swap operator
var a = 100;
var b = 200;

[a, b] = [b, a];
ready
Temp Variable
var a = 100;
var b = 200;

var temp = a;
a = b;
b = temp;
ready

Revisions

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