January 11, 2013

Java 7 vs. C++ Speed

1  comments

I just found this interesting benchmark results: http://benchmarksgame.alioth.debian.org/u64q/java.php The benchmark compares the same algorithm implemented in different programming languages. Interesting on this result is that the Java 7 implementation of some algorithms, like mandelbrot, is as fast as the C++ implementation. In the worst case Java needs only the double amount of time. Of course there is a price to pay. Java uses in some cases a lot more memory. But in times where memory is available almost for nothing, there is not much space left for business software* in C++. The faster development speed that comes from garbage collection and higher level apis will easily pay for some more memory. This is no new knowledge. Allmost all new started business software projects, I hear about, are java or sap based. I was just surprised how fast java is in the benchmark. * business software: In this case I mean "business software" as a software running on a server, multiple users, performing some business functions in any case, often a custom development for company needs. (With this definition e.g. Microsoft Office is not business software. Something like Jira would be a buisness software with my definition.)

Tags

C++, Java, speed


You may also like

Blog url changed to https

I just changed the url of this blog to https://jensjaeger.com. TLS encryption is now the default for all request to this page. It might be possible that some image links on some articles are hard coded http. If you find such an error it would be nice if you leave me comment so i can

Read More

Format date and time in java with prettytime

Prettytime is a nice java library to format a java Date()s in a nice humanized ago format, like: moments ago 2 minutes ago 13 hours ago 7 months ago 2 years ago Prettytime is localized in over 30 languages. It’s super simple to use Add the dependency to your maven pom: org.ocpsoft.prettytime prettytime 3.2.7.Final or

Read More