[HN Gopher] Counting cycles and instructions on the Apple M1 pro... ___________________________________________________________________ Counting cycles and instructions on the Apple M1 processor Author : chmaynard Score : 53 points Date : 2021-03-24 21:25 UTC (1 hours ago) (HTM) web link (lemire.me) (TXT) w3m dump (lemire.me) | liaukovv wrote: | Would be nice to see similar test run on intel and amd processors | genmud wrote: | I was skeptical about the m1 processors, specifically around | performance on something like a desktop where you expect snappy | performance. | | I have definitely changed my thoughts and if apple can solve | getting more ram in their systems (it's pretty shameful that in | 2021 you max out at 16gb on a MacBook Pro), I feel like they are | going to knock it out of the park with their new architecture. | mnadkvlb wrote: | Could anyone explain the instructions/float metric ? Just tried | running the same code on an M1 Air from blog, and i get quite | different number of instructions/float, whereas the | instructions/cycle are pretty close: | | # parsing random numbers model: generate random numbers uniformly | in the interval [0.000000,1.000000] | | volume: 10000 floats | | volume = 0.0762939 MB | | strtod 376.04 instructions/float (+/- 0.0 %) | 75.53 cycles/float (+/- 0.0 %) 4.98 | instructions/cycle 88.95 branches/float (+/- | 0.0 %) 0.6005 mis. branches/float | | fastfloat 162.01 instructions/float (+/- 0.0 %) | 22.01 cycles/float (+/- 0.0 %) 7.36 | instructions/cycle 38.00 branches/float (+/- | 0.0 %) 0.0001 mis. branches/float | liaukovv wrote: | I assume thats how many instructions it takes to parse one | float? | mnadkvlb wrote: | thanks a lot, yea it makes sense. Edit: it seems weird when i | think that on the blog it takes 490 instructions whereas in | my case it takes 360. That is roughly 26% less instructions | required than on blog. Instructions per cycle are more or | less same on both results, telling me that my M1 Air is | somehow using less instructions to run the same code (or is | faster) | tubbyjr wrote: | I have not bought an Apple product... evar | | But I said I would get the first production-ready ARM Laptop | chip... It had to be an Apple, here I am writing this on an M1 | Laptop now (to my credit I am trying to minimize as much of the | home phoning via various means, albeit I understand I'm using | complete spyware). | | ARM/RISC is the future. | Angostura wrote: | > I understand I'm using complete spyware | | What makes you say that? There is relatively little phoning | home in MacOS ___________________________________________________________________ (page generated 2021-03-24 23:00 UTC)