do you get similar results using moded test prog to what i got, ie little to no difference on a 600 Million test?
My trunk is in the shop for a complete rebuild

While running that in the background I did a test with FPC 3.2.2.
I also did a test after that rebuild.
Free Pascal Compiler version 3.2.2 [2023/12/17] for x86_64
first try with running something on background:
LEAP YEAR TESTS...
Loop only: 1.453 s
FPC: 10.812 s, corrected: 9.359 s (100%)
Variant 1: 13.719 s, corrected: 12.266 s (131%)
Variant 2: 13.630 s, corrected: 12.177 s (130%)
second try without background process:
LEAP YEAR TESTS...
Loop only: 1.158 s
FPC: 9.280 s, corrected: 8.122 s (100%)
Variant 1: 11.141 s, corrected: 9.983 s (123%)
Variant 2: 11.358 s, corrected: 10.200 s (126%)
I find that very strange... variant 2 is slower without background noise (and faster with).
Then... trunk... and woopsie. @Thaddy... I got it again.
(see image)
Now to see how I report this and then make an exclusion.
Edit: Ok. Trunk with exclusion from virusscanner:
LEAP YEAR TESTS...
Loop only: 1.250 s
FPC: 3.074 s, corrected: 1.824 s (100%)
Variant 1: 2.820 s, corrected: 1.570 s ( 86%)
Variant 2: 2.812 s, corrected: 1.562 s ( 86%)
FPC 3.2.2 again with exclusion from virusscanner:
LEAP YEAR TESTS...
Loop only: 1.196 s
FPC: 9.819 s, corrected: 8.623 s (100%)
Variant 1: 11.737 s, corrected: 10.541 s (122%)
Variant 2: 12.010 s, corrected: 10.814 s (125%)
Not sure if with default distributed FPC 3.2.2 there is something different with optimization.
(I compiled both without any special options)