Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Consider the differences in the languages and the overhead this occurs -- even if such additional work is done "at the same efficiency" there is just more to do. Period. (This is the price that often comes with abstraction: development time can be [substantially] decreased for [moderate] increases in run-time.)</p> <p>On the other hand, with a trivial function using no "language features" such as a loop computing a factorial ... then the numbers <em>can become very competitive</em> in certain cases. This can be seen in <a href="http://benchmarksgame.alioth.debian.org/" rel="nofollow noreferrer">The Computer Language Benchmark Game</a> (here is <a href="http://benchmarksgame.alioth.debian.org/u32/compare.php?lang=java&amp;lang2=gpp" rel="nofollow noreferrer">Java7 vs. C++</a>, for instance).</p> <p>Note that the <em>implementation</em> of a language (including JIT) and the optimizations ("-Ox") applied is also a major factor. (A language arguably "has no speed" in and of itself.)</p> <p>Happy coding.</p> <hr> <p>As Been Voigt pointed out, the JIT/AOT models are optimized for different aspects. (The <del>Sun</del> Oracle Java implementation even has a separate server VM and client VM which each prioritize difference use-cases.) Here are some SO posts discussing JIT vs. AOT:</p> <ul> <li><a href="https://stackoverflow.com/questions/7591169/why-is-it-hard-to-beat-aot-compiler-with-a-jit-compiler-in-terms-of-app-perform">Why is it hard to beat AOT compiler with a JIT compiler (in terms of app. performance)?</a></li> <li><a href="https://stackoverflow.com/questions/538056/jit-compiler-vs-offline-compilers">JIT compiler vs offline compilers</a></li> <li><a href="https://stackoverflow.com/questions/5525082/jit-vs-ngen-what-is-the-differene">JIT vs NGen - what is the difference?</a> [.NET, NGen is AOT]</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload