Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OxideWaveLength/2de71824b31b7261d570af127fb1eee3 to your computer and use it in GitHub Desktop.
Save OxideWaveLength/2de71824b31b7261d570af127fb1eee3 to your computer and use it in GitHub Desktop.
Results for the BetterReflection tests, the loops amount is set to 10000000
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 1401ms.
-------- 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 1424ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 1438ms.
-------- 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 1566ms.
-------- 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 49ms.
-------- 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 43ms.
-------- Starting Test 7 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 1366ms.
-------- 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 1461ms.
-------- Starting Test 9 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 1417ms.
-------- 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 1525ms.
-------- 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 45ms.
-------- 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 37ms.
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 79ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through better reflections.
The test has taken about 22ms.
-------- 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 84ms.
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 1454ms.
-------- 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 1453ms.
-------- Starting Test 3 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 1375ms.
-------- 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 1514ms.
-------- 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 48ms.
-------- 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 32ms.
-------- Starting Test 7 --------
Description: This test gets the public field of the test object through normal reflections.
The test has taken about 1401ms.
-------- 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 1464ms.
-------- Starting Test 9 --------
Description: This test gets the private field of the test object through normal reflections.
The test has taken about 1456ms.
-------- 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 1525ms.
-------- 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 48ms.
-------- 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 36ms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment