much more efficient in what? mops the floor by what? which year's i7?
Don't get me wrong, I 100% believe what happened, but if you mean "my macbook is faster than my i7 thinkpad" you should use those exact words, but not bring RAM into this discussion. If you want to make a point about RAM, you need to be clear about what workflow you were measuring, the methodology you were using, and what the exact result is. Otherwise your words have no meaning.
Bandwidth for copying things into memory is also vastly faster than what you get on Intel/AMD, for example on the Max chips you get 800GB/s which is the rough equivalent of 16 channels of DDR5-6400, something simply not available in consumer hardware. You can get 8 channels with AMD Epyc, but the motherboard for that alone will cost more than a Mac mini.
800GB/s is a theoretical maximum but you wouldn't be able to use all of it from the CPU or even the GPU.
https://www.anandtech.com/show/17024/apple-m1-max-performanc...
How is that different from plain shared libraries?
Having more RAM doesn't increase memory bandwidth and having more memory bandwidth doesn't necessarily mean better performance. You aren't even able to make use of all of the bandwidth your M1 is capable of in the real world [1].
Apple Silicon has good perf/watt but the gap probably isn't as big as you're thinking.
[1] https://www.anandtech.com/show/17024/apple-m1-max-performanc...