Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OxideWaveLength/3c71b0ce1d17e1c3bc3d8928dda2cb09 to your computer and use it in GitHub Desktop.
Save OxideWaveLength/3c71b0ce1d17e1c3bc3d8928dda2cb09 to your computer and use it in GitHub Desktop.
Results for the BetterReflection tests, the loops amount is set to 100000000
Now testing Normal Reflections.
-------- Starting Test 1 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 14660ms.
-------- Starting Test 2 --------
Description: This test is going to get the public field of the test object through normal reflections, get its value and store it inside of a local variable.
The test has taken about 14550ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 14393ms.
-------- Starting Test 4 --------
Description: This test is gets the private field of the test object through normal reflections, sets the field to be accessible, gets its value and stores it inside of a local variable.
The test has taken about 15442ms.
-------- Starting Test 5 --------
Description: This test gets the public field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 436ms.
-------- Starting Test 6 --------
Description: This test gets the private field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 308ms.
-------- Starting Test 7 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 13741ms.
-------- Starting Test 8 --------
Description: This test is going to get the public field of the test object through normal reflections, get its value and store it inside of a local variable.
The test has taken about 14975ms.
-------- Starting Test 9 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 13665ms.
-------- Starting Test 10 --------
Description: This test is gets the private field of the test object through normal reflections, sets the field to be accessible, gets its value and stores it inside of a local variable.
The test has taken about 16349ms.
-------- Starting Test 11 --------
Description: This test gets the public field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 445ms.
-------- Starting Test 12 --------
Description: This test gets the private field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 320ms.
Now testing Better Reflections.
-------- Starting Test 1 --------
Description: This test gets the public field of the test object through better reflections.
The test has taken about 8ms.
-------- Starting Test 2 --------
Description: This test is going to get the public field of the test object through better reflections, get its value and store it inside of a local variable.
The test has taken about 692ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through better reflections.
The test has taken about 158ms.
-------- Starting Test 4 --------
Description: This test is gets the private field of the test object through better reflections, sets the field to be accessible, gets its value and stores it inside of a local variable.
The test has taken about 697ms.
Now testing Normal Reflections. (Again)
-------- Starting Test 1 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 14363ms.
-------- Starting Test 2 --------
Description: This test is going to get the public field of the test object through normal reflections, get its value and store it inside of a local variable.
The test has taken about 15243ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 13991ms.
-------- Starting Test 4 --------
Description: This test is gets the private field of the test object through normal reflections, sets the field to be accessible, gets its value and stores it inside of a local variable.
The test has taken about 15598ms.
-------- Starting Test 5 --------
Description: This test gets the public field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 519ms.
-------- Starting Test 6 --------
Description: This test gets the private field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 350ms.
-------- Starting Test 7 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 13968ms.
-------- Starting Test 8 --------
Description: This test is going to get the public field of the test object through normal reflections, get its value and store it inside of a local variable.
The test has taken about 15579ms.
-------- Starting Test 9 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 14317ms.
-------- Starting Test 10 --------
Description: This test is gets the private field of the test object through normal reflections, sets the field to be accessible, gets its value and stores it inside of a local variable.
The test has taken about 15996ms.
-------- Starting Test 11 --------
Description: This test gets the public field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 467ms.
-------- Starting Test 12 --------
Description: This test gets the private field of the test object through normal reflections, caches it, gets its value and stores it inside of a local variable.
The test has taken about 346ms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment