In that scenario (which is, incidentally, pretty niche), the 8GB M1 took eight minutes longer to complete the task than the 16GB model.
In all three tests, the 8GB version lagged behind its 16GB big brother, but it was only the 8K export to 4K in which it was comprehensively crushed. His experiments focused on Xcode, video exporting and Lightroom.