On 26/06/2021 2:50 pm, David Crayford wrote:
On 26/06/2021 2:38 pm, David Crayford wrote:
I think the C++ compiler/library is a large part of it. On other
platforms vector<bool> was apparently a big performance improvement,
on z/OS removing it was a big improvement. So if there is something
smart happening there on other platforms, there might be something
not so smart on z/OS. xlclang++ might recover that performance.
I think the C++ code is sub-optimal. The PrimesC code is 5x faster
than Java so if I were to compile that code with the C++ compiler
would it qualify as C++?
That's an exaggeration. C is just over 3x faster.
C
mckoss-c830;14285;5.0;1;algorithm=wheel,faithful=yes,bits=1
Java
MansenC;4257;5.000000;1;algorithm=base,faithful=yes
NodeJS (lolz! So much for IBMs V8 JIT engine)
fvbakelnodejs;887;5.004;1;algorithm=base,faithful=yes,bits=1
golang
bundgaard;3749;5.000486;1;algorithm=base,faithful=yes
C++
davepl;3460;5.001122;1;algorithm=base,faithful=yes,bits=1
Python3
ssovest; 3519;5.0006608963012695;1;algorithm=base,faithful=yes,bits=8
Wow! The Python code has step table optimizations so skips a lot of
unnecessary calculations
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN