https://github.com/idelvall/performance
Some Java performance numbers
https://github.com/idelvall/performance
Last synced: 2 months ago
JSON representation
Some Java performance numbers
- Host: GitHub
- URL: https://github.com/idelvall/performance
- Owner: idelvall
- Created: 2018-03-05T09:11:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T16:05:22.000Z (over 8 years ago)
- Last Synced: 2025-01-13T01:37:17.677Z (over 1 year ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# performance
Some Java performance numbers for myself, with the idea of having a sense on what the relative cost of certain operations is.
JIT has been disabled for these tests in order to avoid any code optimization.
- [performance](#performance)
* [Cost of getting stack trace (ns)](#cost-of-getting-stack-trace-ns)
## Cost of getting stack trace (ns)
[source code](src/test/java/org/brutusin/StackTraceTest.java)
| Procedure | Stack length of 1 | Stack length of 10 | Stack length of 50 | Stack length of 100 | Stack length of 200 | Stack length of 400 | Stack length of 800 |
| - | - | - | - | - | - | - | - |
| Throwable | 3552 | 10819 | 44499 | 92509 | 184329 | 338808 | 713571 |
| Filled | 2528 | 9229 | 45497 | 81678 | 161970 | 340909 | 682630 |
| Thread | 3803 | 10156 | 46239 | 87887 | 160443 | 358918 | 672376 |