Over a million developers have joined DZone.

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

Sensu is an open source monitoring event pipeline. Try it today.

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.

Sensu: workflow automation for monitoring. Learn more—download the whitepaper.


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}