32- or 64-bit: Speed
Below are the execution times (or speeds) of various benchmark code from this site run on Raspbian (32 bit), and Ubuntu 20.04LTS (both 32 and 64 bit).
|ditto, single core||2440MFLOPS||4200MFLOPS||2400MFLOPS|
The Linpack results use the version of OpenBLAS supplied by the OS.
gas.py uses the three-atom simulation (change
if (False): to
if (True):, circa line 170).
The python benchmarks which use very long integers (mersenne_fast and seriesA_hp) run significantly faster on the 64 bit OS than on the 32 bit ones. This is expected, as python breaks the very long integers down into half as many "digits" on the 64 bit machines, making additions about twice as fast, and multiplications about three to four times as fast. For mersenne_fast the speed-up is within the expected range. For seriesA_hp it is not, which means there must be some other effect.
Most of the benchmarks which do not use integers longer than 32 bits do not show very much speed difference between the 32 and 64 bit OSes. In several cases the random fluctuations in timings may be more significant. The exception is the Linpack benchmark.
My conclusion, therefore, is that should Raspbian move to being 64-bit, most applications will see a minor speed change, no more than one normally expected between different revisions and different revisions of compiler. But a few will see significant improvements.