Page 2 of 2

Re: OS X Ventura massive performance improvements (M1)

Posted: Wed Mar 01, 2023 10:51 am
by jodokus31
I tested with the benchmark script from https://factoriobox.1au.us
Basically it calls:

Code: Select all

factorio --mod-directory /dev/null --benchmark map.zip --benchmark-ticks 1000 --benchmark-runs 5 --benchmark-verbose all --benchmark-sanitize
When I call this with this map: flame_Sla 10k - 10x1000spm Belt Module
https://factoriobox.1au.us/map/info/4c5 ... e161705504

I get with MacPro M1 five times like this:
Performed 1000 updates in 6305.037 ms
avg: 6.305 ms, min: 5.455 ms, max: 20.453 ms

-> 1000 * 1000 / 6305 = 158,6 UPS

And with my AMD 5600X:
Performed 1000 updates in 4449.033 ms
avg: 4.449 ms, min: 3.789 ms, max: 27.968 ms

-> 1000 * 1000 / 4449 = 224,76 UPS

The max value is a bit higher on the AMD, but that really can be one hickup or whatever. Would need to check in game, if it's noticeable from time to time
Maybe it's the inital loading frame, where something major happens in one tick.

While impressive, it's not as good as those desktop machines.
Btw: The 5800X3D is like 350 UPS on average on the website

There is also no different, if I use --mod-directory /dev/null or not.
If you don't specify it, factorio uses the default mods folder and whatever mod you could have installed. Maybe you have something there, which increases performance sowehow?

Re: OS X Ventura massive performance improvements (M1)

Posted: Thu Mar 02, 2023 1:33 pm
by eangineer
My initial test results seemed to have been some sort of fluke. I have not been able to recreate these results since the Apple Silicon version of Factorio was released.

This was before the Apple Silicon version of Factorio was released, it is possible that when Ventura released, there may have been some weird state causing weird results of universal binaries on Apple Silicon. I would disregard all of this.

Re: OS X Ventura massive performance improvements (M1)

Posted: Thu Mar 02, 2023 1:57 pm
by StrangePan
Thanks for following up @eangineer. I've also been unable to reproduce these or similar results.

Re: OS X Ventura massive performance improvements (M1)

Posted: Thu Mar 02, 2023 6:57 pm
by eangineer
I am fairly convinced this was unique to a specific build of Ventura on M1 and the non-Apple Silicon build of Factorio. Most likely this was false results observed due to some weird calculation misfire from OS events reporting incorrectly or some other strange voodoo. :cry:

Re: OS X Ventura massive performance improvements (M1)

Posted: Thu Mar 02, 2023 6:58 pm
by eangineer
Although > 160 UPS on an M1 Mac mini (base model) is nothing to sneeze at!

Re: OS X Ventura massive performance improvements (M1)

Posted: Fri Mar 03, 2023 12:18 am
by jodokus31
eangineer wrote:
Thu Mar 02, 2023 6:58 pm
Although > 160 UPS on an M1 Mac mini (base model) is nothing to sneeze at!
Not at all. If you consider, that it is a lot more power efficient.
Although, those AMDs don't use that much compared to Intel, but still a huge difference,.