Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Stats
| Reputation: | 89 |
| Pageviews: | 21.1K |
| Articles: | 1 |
| Comments: | 2 |
Comments
Dec 28, 2019 · Dursun Koç
The benchmark suffers from a couple of pitfalls:
* there is no JVM warmup, leading to a mixture of optimised and unoptimised code in the timings. The code with exceptions as control flow may (though unlikely) be faster once the JIT compiler has kicked in, the benchmark does not allow to conclude.
* the return values of the methods aren't used and a constant input is fed. Especially with the pure no exception function, the VM may make assumptions and optimise the loop out for example.
A benchmark written with JMH would have prevented these issues. ;)
Jun 01, 2018 · Pierre-Yves Bigourdan
Thanks for sharing your thoughts! Project Panama and the ongoing work with JEP 191 will probably change quite a lot of things when integrating with native code, but their release is probably still quite far off. It will definitely be interesting to see how integration with modern versions of C++ evolves.