[Info-vax] ADA and VMS (was Safer programming languages)
Arne Vajhøj
arne at vajhoej.dk
Tue Nov 16 15:15:06 EST 2021
On 11/16/2021 7:15 AM, Bill Gunshannon wrote:
> I am interested in whether or not ADD A TO B GIVING C is faster, slower
> or the same between Ada and C.( and other languages as well!)
For some random synthetic micro-benchmark:
Language Compiler/Runtime Integer performance Floating point
performance String performance Total performance
C GCC 11.1 -O3 64 bit 1670 239 23.31 210.32
C MSVC++ VS19 /O2 64 bit 1055 239 13.76 151.39
C LLVM 12.0 -O3 64 bit 557 239 19.54 137.53
Java SUN 17.0 Server 64 bit 548 209 13.50 115.63
Java SUN 11.0 Server 64 bit 473 209 13.19 109.25
C# .NET 5.0 64 bit 668 209 8.22 104.70
Java SUN 1.8.0 Server 64 bit 473 209 9.25 97.06
C# .NET 4.0 /o+ 64 bit 556 185 8.01 93.75
Java SUN 11.0 Graal 64 bit 417 185 10.67 93.72
C# .NET 4.0 64 bit 555 185 7.91 93.30
Ada Gnat 2017 -gnatp -O3 64 bit 554 238 5.74 91.13
Ada Gnat 2017 -O3 64 bit 505 238 5.73 88.31
C MSVC++ VS19 64 bit 371 134 12.70 85.79
C GCC 11.1 64 bit 278 139 16.31 85.74
Ada Gnat 2017 -gnatp 64 bit 276 138 5.44 59.17
Python PyPy 7.3 (Python 3.7) 64 bit 401 207 2.31 57.66
Pascal FPC 3.2 -O4 64 bit 417 186 2.41 57.18
Ada Gnat 2017 64 bit 256 138 5.10 56.48
C LLVM 12.0 64 bit 103 134 12.35 55.45
Pascal FPC 3.2 64 bit 278 145 2.40 45.91
PHP PHP 7.4 GCC 64 bit 22 34 0.67 7.91
PHP PHP 7.4 MSVC++ 64 bit 9 13 1.39 5.37
Python CPython 3.6 GCC 64 bit 6 8 0.76 3.30
Python CPython 3.6 MSVC++ 64 bit 5 5 0.44 2.22
Note that this micro-benchmark is not likely to match any real-world
workload.
More results and source code available at:
https://www.vajhoej.dk/arne/articles/perf.html
Arne
More information about the Info-vax
mailing list