Skip to content

The program measuring the time accessing the specific field with several ways.

Notifications You must be signed in to change notification settings

blazingSummerSun/Benchmark-Tests

Repository files navigation

Benchmark settings

  • 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

Benchmark Results

Results received after 4 benchmark tests:

  1. Direct access to the student's name
  2. Access via java.lang.invoke.LambdaMetafactory
  3. Access via java.lang.invoke.MethodHandles
  4. 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

About

The program measuring the time accessing the specific field with several ways.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages