I am really not sure what you mean by that. It’s a CPU. It runs CPU stuff
What I mean is that it is not
just a CPU, it is a custom SOC with various media and ML engines attached, designed to run macOS and associated applications as fast as possible via native code using the Apple frameworks.
yes, it has a CPU and runs CPU things, but using an M1 to do regex is like using a sledgehammer to drive nails. Or the blunt end of a screwdriver to drive nails, depending on your perspective. I'm not saying they designed it to NOT run general CPU stuff well.
I'm not saying Ryzen is necessarily faster for regex, what I am saying is that
if regex is your primary workload, you'll probably get better bang for buck elsewhere. Especially an M1
Max (per the OP) as its just an M1-Pro with a bigger GPU that regex will totally not use.
I'm not saying it isn't an extremely capable CPU. I'm saying that someone basing their evaluation of it on regex performance is largely missing the point. Unless that's your primary workload.
It's like benchmarking an i7 with x87 FPU code from the 1990s. Sure, it can do it, and sure it will be faster than a 486 at it. But an i7 is so much more capable than that - it can do other tasks (including math related things, via newer instruction set) so much faster if the appropriate libraries/instructions are used. e.g., AES in hardware, vector manipulation instructions, etc.
Same with the M1, except it has a bunch of hardware for high speed media/AI processing.
What I'm getting at (since my first post, which appears to have been misinterpreted) is that unless your primary workload for your shiny new Mac is regular expressions, the benchmark, irrespective of how fast or slowly the M1 runs it is largely irrelevant. And that will be the case for 99% plus of Mac users.
It doesn't surprise me that the M1 is good at it though as it has good memory bandwidth, large caches, etc. Its just a super bad way of comparing performance between the two systems for almost the entire user base of either CPU, in 2022.