DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. DevOps and CI/CD
  4. Performance Fundamentals: The Megahertz Myth

Performance Fundamentals: The Megahertz Myth

Clock rate isn't the most important factor in determining CPU performance. Learn about the megahertz myth: its origins, what it is, and what really matters.

Moe Long user avatar by
Moe Long
·
Moe Long user avatar by
Moe Long
CORE ·
Oct. 15, 15 · Opinion
Like (7)
Save
Tweet
Share
4.75K Views

Join the DZone community and get the full member experience.

Join For Free

I recently had a chat with some co-workers about processors, and naturally clock speed came up. We were discussing the Apple II vs. IBM and PowerPC CPU. “Have you heard about the megahertz myth?” I asked. No’s all around. From my experience, this interesting debate seems to fly under the radar. So let’s explore the megahertz myth, and its history.


Quite simply, the megahertz myth addresses the fallacy that higher clock speed translates to better performance. In reality, this picture isn’t quite accurate. When assessing CPU performance, certain contributing factors outweigh clock rate. For instance, instruction sets and pipeline depth are valuable in determining performance. However, before you throw clock speed out the window, as it’s a valuable metric for comparing CPUs from the same family.


The origins of the myth came about with the competing Apple II and IBM computers, both running PowerPC CPUs. PowerPC CPUs exhibited varying performance yields, despite having the same clock speed. The x86 architecture, with longer pipelines, actually aided CPUs to reach higher frequencies. The Apple variant was significantly slower than the IBM iteration.


To the uninformed consumer, clock speed is the ultimate metric when comparing CPUs. Yet, various factors mean that, say, a 2 GHz CPU can outperform a 2.6 GHz processor. Microarchitecture plays a key role, as does pipeline, and even program design. Thus, clock rate isn't nearly as reliable an indicataor of potential performance. Benchmarks instead provide better insight when comparing CPUs. 

Interestingly, GPUs have comprable myths. Notably, there's a frame rate buffer myth. With video memory, 4 GB is not necessarily greater than 2 GB. While double the memory sounds awesome,  there are other aspects such as bandwidth.  A 4 GB GPU eqiupped with GDDR3 memory will perform worse than a 2 GB GPU with GDDR5. 

Thankfully, there are loads of awesome sites like cpubenchmark.net and anandtech.com that offer detailed benchmarks so you don't fall prey to the megahertz myth.

Stay tuned for my next performance fundamentals post, and leave a comment or hit me up on Twitter if there's a topic you'd like me to cover!

Clock (cryptography) A-Frame (virtual reality framework) Memory (storage engine) Pipeline (software) Awesome (window manager) Metric (unit) Factor (programming language) Fallacy Architecture

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Data Engineering Trends for 2023
  • Why the World Is Moving Towards Serverless Computing
  • How Observability Is Redefining Developer Roles
  • Upgrade Guide To Spring Data Elasticsearch 5.0

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: