RFR: 7903367: JMH: Add JMHSample_39_MemoryAccess [v5]
Michael Mirwaldt
duke at openjdk.org
Fri Oct 21 13:37:46 UTC 2022
> I propose this sample because overlooking the memory layout of e.g. ArrayLists can be a pitfall for benchmarks.
> This new sample makes users of JMH aware of this problem. It teaches them how to use JMH right.
> What do you think?
Michael Mirwaldt has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits since the last revision:
- Merge branch 'samples/JMHSample_39_MemoryAccess' of https://github.com/mmirwaldt/jmh into samples/JMHSample_39_MemoryAccess
- Merge branch 'openjdk:master' into samples/JMHSample_39_MemoryAccess
- added shuffled array list
- added time unit to annotations
- corrected author email
- improved by proposals from first review
- Update JMHSample_39_MemoryAccess.java
- Removed duplicate of copyright banner
- added sample JMHSample_39_MemoryAccess
-------------
Changes:
- all: https://git.openjdk.org/jmh/pull/85/files
- new: https://git.openjdk.org/jmh/pull/85/files/8b0a9734..990e0ea6
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jmh&pr=85&range=04
- incr: https://webrevs.openjdk.org/?repo=jmh&pr=85&range=03-04
Stats: 518 lines in 61 files changed: 211 ins; 151 del; 156 mod
Patch: https://git.openjdk.org/jmh/pull/85.diff
Fetch: git fetch https://git.openjdk.org/jmh pull/85/head:pull/85
PR: https://git.openjdk.org/jmh/pull/85
More information about the jmh-dev
mailing list