Open krausest opened 3 months ago
For the first update since chrome 127 I decided to prepare the machine like for a full run. Results are pretty close and show how much noise is in the measurement. Left incremental run, right last official run:
With indexing enabled and on battery, every else like like in a full run. A bit slower!
Once again, with indexing disabled and on AC: Really hard to tell if that's better than the last one. Nevertheless the full run was slightly better...
Just running create 1k rows for vanillajs, but with 40 iterations for the following cases:
The results aren't as clear as I hoped.
Huh. There was one case missing. Running on AC, all above was on battery
So, running on AC instead of on battery is the key. I really thought the mac was immune to that. Full runs were always on battery, incrementals runs were often on battery.
I wonder if there's any variation caused from some incremental runs executing on efficiency cores. I know I've seen it a fair amount on Linux with my intel cpus when running benchmarks, so I use something like taskset -c 0-7 program [args]
to set affinity to only performance cores.
The closest ability I found for macos is taskpolicy -c utility program [args]
, from what I've read that should favour p-cores, but still has a chance to run on e-cores. From a clean boot with no other programs it'll likely run on p-cores anyway, so I'd expect full runs to be safe.
Or maybe no runs are happening on the e-cores anyway and mac being a holistic platform just has really good defaults for cpu affinity handling out of the box.
Just a note for myself. 3 reboots with 3 runs each for vanillajs create 1k rows (i.e. 9 runs): the mean is shown as the label on the x axis
Pretty close and well below the 37.7 we observed in the last incremental run (despite also rebooting then).
I'm really annoyed by this issue. Yesterday I did a pretty clean incremental run (reboot, wait until background jobs stop consuming CPU), but results for sonnet and vanillajs were slower than in the full run. So I decided to run the updated frameworks again, but with the current setup for full runs (reboot, wait until all those bg jobs stopped using CPU, end all helpers like 1password, bettertouch, betterdisplay, onedrive, stop indexing, disable wifi and bluebooth). I got pretty much the same results as yesterday, all frameworks performed within 0.1 which is the usual noise (which is good), but still different to the last full run (the code for vanillajs and vanillajs-3 didn't change, chrome didn't change, so I lack to find many reasons except OSX updates). In the last full run vanillajs scored 1.05 and vanillajs-3 1.04, sonnet 1.03, so it's only within a 0.3 range, which is in my opinion too big...
Actually, OSX + Apple CPU is not the best environment for performance tuning, it is very unlikely that fiddling with charger or wifi will solve this issue. A Linux + AMD/Intel device would have at least a proper CPU frequency lock...
A increase of sampling time may help, at least it seems that this issue became evident recently so that may be due to reducing/removing the throttling in tests.
There are two kind of runs:
This issue tracks the impact of the measures for the full run. Maybe we can work out what's causing the effect.