- JMH version: 1.37
- VM version: JDK 22.0.2, OpenJDK 64-Bit Server VM, 22.0.2+9-70
- Blackhole mode: compiler
- Warmup: 3 iterations, 5 s each
- Measurement: 1 iteration, 120 sec each
- Timeout: 10 min per iteration
- Threads: 1 thread, will synchronize iterations
- Benchmark mode: Average time, time/op
Results received after 4 benchmark tests:
- Direct access to the student's name
- Access via java.lang.invoke.LambdaMetafactory
- Access via java.lang.invoke.MethodHandles
- Access via java.lang.reflect.Method
| Benchmark | Mode | Cnt | Score | Error | Units |
|---|---|---|---|---|---|
| DirectAccessBenchmark.directAccess | avgt | 1 | 0.615 | ns/op | |
| LambdaMetafactoryBenchmark.lambdaMetafactory | avgt | 1 | 0.861 | ns/op | |
| MethodHandlesBenchmark.methodHandles | avgt | 1 | 3.414 | ns/op | |
| ReflectionBenchmark.reflection | avgt | 1 | 6.643 | ns/op |