Comparison Comparison

Benchmark created on


Description

Compared to any other operation, the variance in time complexity of comparison operations is insignificant.

Test runner

Ready to run.

Testing in
TestOps/sec
Strictly Equal
Math.random() === Math.random();
ready
Greater Than
Math.random() > Math.random();
ready
Less Than
Math.random() < Math.random();
ready
Greater Than Or Equal
Math.random() >= Math.random();
ready
Less Than Or Equal
Math.random() <= Math.random();
ready
Loosely Equal
Math.random() == Math.random();
ready
Strictly Not Equal
Math.random() !== Math.random();
ready
Loosely Not Equal
Math.random() != Math.random();
ready

Revisions

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