<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello, Ethan!<div><br></div><div>I have adapted your project to use JMH for benchmarking.</div><div>You may find it here: <a href="https://github.com/pedrolamarao/raytracer" target="_blank">https://github.com/pedrolamarao/raytracer</a></div><div><div><br>These are the changes I made in this fork:</div><div>1) introduced Gradle with its default source structure;</div><div>2) adapted Main into a JMH benchmark.</div><div><br></div></div><div>This fork uses Gradle to apply JMH from Maven Central.</div><div>Gradle must be run with a release JDK version [11,25].</div><div>It will attempt to locate a JDK with version string "26-jep401ea2+1-1" for compilation and execution.</div><div>You may supply the path for this JDK in the gradle.properties file.</div><div><br></div><div>JMH is configured in "single shot" mode to run 1 warmup iteration and 1 measured iteration.</div><div>To run the benchmark: ./gradlew run --console=PLAIN</div><div><br></div><div>The C++ code could benefit from similar treatment.</div><div><br></div><div>Atte.</div><div>Pedro.</div></div></div>
</div>