by Sebastian Norr
Is it faster to check:
A = B, or
A != B, or
(A -B) = 0
#1: A != B (Usually wins).
#2: A = B (Sometimes wins).
#3: (A-B)=0 (Almost never wins).
The result will vary depending on the phone and what is doing at the time.
The testAmount variable (1M tries) is chosen to be resulting in about 2 seconds per test (on my phone), to average out processor work differences.
And the tests re-runs 5 times, for the same reason & to spot outlier results.
Feel free to expand on the tests.
Reviews and ratings can be submitted in the app.