I use GNAT on a late 2008 MacBook Pro with a 2.4 GHz Intel Core 2 Duo
for heavy numerical computing. It is not uncommon for my programs to
run several minutes to several hours. Does anyone have a feel for how
much speed increase I would see using GNAT on an Apple Silicon M1
PowerBook Pro? My main curiosity is single-core runs since GNAT does
not parallelize; I am aware that I can run multiple programs
simultaneously on multiple cores.
taking the results from Geekbench:  for your current MacBook and 
for the M1 MacBook from 2021; the results show that single core
performance of the M1 MacBook Pro is about 6.4 times faster.
However, notice that it is running on Aarch64 natively for the M1.
Nonetheless, you can run x86 programs with little performance hit thanks
to Apple Rosseta.
Also, GNAT afaik, allows for parallel computations using tasks. The
multicore performance gain between the two models is about 24x.
There results are however just an average. Maybe your program does not
see such improvements as it may bottleneck earlier or it may see greater gains.
Fernando Oleo Blanco
GNAT compiles to Aarch64 now, right?
|Location:||Huddersfield, West Yorkshire, UK|
|Nodes:||16 (2 / 14)|