# More than a taken branch per cycle?

DevFeed: [More than a taken branch per cycle?](<https://devfeed.tech/articles/more-than-a-taken-branch-per-cycle-57583.md>)

Original publisher: [Read original article](<https://lemire.me/blog/2026/09/21/more-than-a-taken-branch-per-cycle/>)

Author: Antonio Badia

Published: 2026-09-21T18:36:05Z

Content type: article

Language: en

Sources: [Daniel Lemire](<https://devfeed.tech/sources/daniel-lemire.md>)

Topics: [cpu](<https://devfeed.tech/topics/cpu.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [github](<https://devfeed.tech/tags/github.md>), [go](<https://devfeed.tech/tags/go.md>), [go-compiler](<https://devfeed.tech/tags/go-compiler.md>), [processor](<https://devfeed.tech/tags/processor.md>), [processors](<https://devfeed.tech/tags/processors.md>)

## AI overview

This article tests whether modern processors can execute more than one taken branch per cycle. Using a Go loop with conditional branches, it compares several processors and reports that Apple M4 Max and Granite Rapids handle two nearby taken branches in under two cycles on average under the tested conditions, while AMD Zen 5 outperforms Zen 4.

## Source excerpt

Our processors can execute many instructions per cycle; they are superscalar. But not all instructions are equal. Branches are particularly tricky. A branch occurs often when you use an if-then clause or a loop. We distinguish between a taken branch and a not taken branch. A not-taken branch is often cheap. The processor just keeps ... Continue reading More than a taken branch per cycle?