Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3438350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:10:36+00:00 2026-05-18T08:10:36+00:00

When determining accurately how fast an algorithm runs in my programs, I’ve always used

  • 0

When determining accurately how fast an algorithm runs in my programs, I’ve always used QueryPerformanceCounter() in conjunction with QueryPerformanceFrequency(), however what happens when I’m using a core i5/7 architecture?

Is it possible that turbo boost would suddenly kick in half way through my algorithm and suddenly my performance timer is no longer accurate because the frequency of my clock is no longer a constant or is this really not an issue? If it is an issue, what would be a better way to accurately time an algorithm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:10:37+00:00Added an answer on May 18, 2026 at 8:10 am

    To put it simply, Yes, anything can happen. Modern CPU’s just plain make estimating real world performance to damn hard to do. This is not limited to just the latest Intel x86-64 cpus, it applies equally to 8bit PIC microcontrollers, and everything inbetween.

    The only reasonable thing to do about it is to just test more. You will need to perform many repeated tests to get an accurate idea about real run-time performance on real hardware for real workloads.

    On the other hand, if one algorithm outperforms another on the same hardware (“on My machine”) then it will usually give similar comparative results on other setups, though it may vary by a constant factor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like a program for determining the TCP congestion control algorithm used in
What's the best (halting) algorithm for determining if a linked list has a cycle
I'm looking for the cleverest algorithm for determining the number of fortnightly occurring events
I'm interested in determining if named groups were used in the pattern passed to
I have problems determining valid Java package names using Python. Here's the code: packageName
I am displaying and determining the selected language in my website by using URLs
Is there a clever/efficient algorithm for determining the hypotenuse of an angle (i.e. sqrt(a²
Another question asked about determining odd/evenness in C, and the idiomatic (x & 1)
I am having difficulty determining if the body of a text email message is
We are currently determining if we would move CVS and VSS projects to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.