java-2-times-faster-than-c icon indicating copy to clipboard operation
java-2-times-faster-than-c copied to clipboard

An inquiry into nondogmatic software development. An experiment showing double performance of the code running on JVM comparing to equivalent native C code.

Results 5 java-2-times-faster-than-c issues
Sort by recently updated
recently updated
newest added

This pull request is to show how moving to a more traditional [xorshift RNG](https://en.wikipedia.org/wiki/Xorshift) can result in massive speedups as well as more consistent results across languages as it doesn't...

I think the problem lies in the fact that the C code is using `malloc()` (a lot). Which is not exactly as "performant" as the `new ...` in Java. For...

"It seems that the code executing on VM can be actually much faster than the native one thanks to technologies like HotSpot" Execute VM inside a VM, then repeat arbitrary...

This sort of benchmarking is always super fascinating. But, putting the numbers into a chart would really tell the story.

JavaScript example given is: ``` $ time node src/main/javascript/java_faster_than_javascript.js node count: 13537 checksum: 470936697371 real 1m6,196s user 1m13,707s sys 0m2,256s $ time node src/main/javascript/java_faster_than_node.js node count: 13537 checksum: 470936697371 real...