Skip to content

Instantly share code, notes, and snippets.

Created October 8, 2015 22:12
Show Gist options
  • Save anonymous/4843d046026bde7c325d to your computer and use it in GitHub Desktop.
Save anonymous/4843d046026bde7c325d to your computer and use it in GitHub Desktop.
Class comparison test | Results 2
STARTING TEST [1]
Identity check with '==': 153,111,907ns, equalities: 800,262. Time per comparison is 153.112ns. 80% of the list was equal.
Class#equals() check: 149,300,302ns, equalities: 800,262. Time per comparison is 149.300ns. 80% of the list was equal.
Class#getName()#equals() check: 161,399,207ns, equalities: 800,262. Time per comparison is 161.399ns. 80% of the list was equal.
Instance of check (both ways): 154,892,646ns, equalities: 1,000,000. Time per comparison is 154.893ns. 100% of the list was equal.
Assignable from check (both ways): 155,614,262ns, equalities: 1,000,000. Time per comparison is 155.614ns. 100% of the list was equal.
TEST FINISHED IN 4785ms
STARTING TEST [2]
Identity check with '==': 131,855,901ns, equalities: 799,860. Time per comparison is 131.856ns. 79% of the list was equal.
Class#equals() check: 133,487,366ns, equalities: 799,860. Time per comparison is 133.487ns. 79% of the list was equal.
Class#getName()#equals() check: 155,096,533ns, equalities: 799,860. Time per comparison is 155.097ns. 79% of the list was equal.
Instance of check (both ways): 146,746,610ns, equalities: 1,000,000. Time per comparison is 146.747ns. 100% of the list was equal.
Assignable from check (both ways): 148,986,461ns, equalities: 1,000,000. Time per comparison is 148.986ns. 100% of the list was equal.
TEST FINISHED IN 3982ms
STARTING TEST [3]
Identity check with '==': 134,627,315ns, equalities: 800,134. Time per comparison is 134.627ns. 80% of the list was equal.
Class#equals() check: 134,667,364ns, equalities: 800,134. Time per comparison is 134.667ns. 80% of the list was equal.
Class#getName()#equals() check: 153,719,564ns, equalities: 800,134. Time per comparison is 153.720ns. 80% of the list was equal.
Instance of check (both ways): 149,898,857ns, equalities: 1,000,000. Time per comparison is 149.899ns. 100% of the list was equal.
Assignable from check (both ways): 150,456,635ns, equalities: 1,000,000. Time per comparison is 150.457ns. 100% of the list was equal.
TEST FINISHED IN 3111ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment