Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Comparing Performance of Functional C++ 11, Java 8, JavaScript and Wolfram

DZone's Guide to

Comparing Performance of Functional C++ 11, Java 8, JavaScript and Wolfram

· Performance Zone
Free Resource

Learn how real real-time monitoring is critical for DevOps. Because you can't build what you can't see.

Bloggers over at UnRisk  Insight have been dissecting a math problem about goat, wolves, and lions to compare different programming languages. In a recent post, the problem was run with functional languages.

Some of the conclusions drawn from the testing include:

  • Performance-wise, C++ trounces all the other programming languages in the test. The C++ program processes around 5 million forests per second on a single core, whereas the Wolfram Language program tops out at around 250 thousand forests.

  • There is a huge performance gap between the group of statically typed languages (C++, FORTRAN, Java) and the group of dynamically typed languages (JavaScript, Wolfram Language). The optimizations that the compiler can derive from having type information available at compile time still gives statically typed languages an edge over dynamically typed languages.

  • The performance of the Wolfram Language and JavaScript are roughly on par.

Be sure to take a look at the original post  for the full test.

Get real-time alerts and visualizations across your cloud infrastructure for real real-time cloud monitoring. Try it FREE now

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}