cd /news/machine-learning/benchmarking-nested-do-loops-matmul-… · home topics machine-learning article
[ARTICLE · art-113542] src=fortran-lang.discourse.group ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Benchmarking nested do loops, MATMUL and Blas DGEMM

Apple's Accelerate framework outperforms GitHub Copilot-generated BLAS Level 3 dtrsm routines on Apple M1 and M2 chips, with performance jumps at matrix sizes that are multiples of 8 attributed to the AMX matrix coprocessor, according to a benchmark by corsix. The M1 and M2 feature a matrix coprocessor, while newer chips like M4 may use the Arm SME extension.

read1 min views1 publishedAug 27, 2026

The M1 and M2 also have a matrix coprocessor (a special matrix acceleration unit): GitHub - corsix/amx: Apple AMX Instruction Set · GitHub. In newer chips (M4 and later?) they upgraded this to the Arm SME extension.

In the past I did some benchmarking of the BLAS Level 3 dtrsm routine; in the plot below label

dtrsm

is for Apple Accelerate and the rest are variants written by GitHub Copilot, some with explicit vectorization using NEON intrinsics:Accelerate is the fastest. Notice the the big jumps when the matrix size is a multiple of 8? I believe that’s the AMX extension.

── more in #machine-learning 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/benchmarking-nested-…] indexed:0 read:1min 2026-08-27 ·