Code Monkey home page Code Monkey logo

Comments (7)

mikesteele81 avatar mikesteele81 commented on June 11, 2024

I'm using Windows 7 64-bit. With this patch I see a similar improvement.

from criterion.

Toxaris avatar Toxaris commented on June 11, 2024

What's the status of this? Is unpatched criterion good for benchmarking on Windows by now?

from criterion.

bos avatar bos commented on June 11, 2024

Thanks, I've fixed this in 53d3203.

The fix is fairly involved because it needs to work on multiple platforms. I particularly commend you to read the comment at the start of the Windows file.

from criterion.

mikesteele81 avatar mikesteele81 commented on June 11, 2024

Thanks for the update. I'll use criterion within Windows more often, and see how this improves time measurements. It looks like the clock library does things similarly.

At first I thought calling QueryPerformanceFrequency once at the start of testing was the wrong way to go about it. I seem to remember a Microsoft example that called it once before every pair of calls to QueryPerformanceCounter, which indicated to me the performance counter's frequency was not stable.

According to a comment on QueryPerformanceFrequency, the behavior is affected by which timing hardware is available to Windows. Perhaps modern computers all have a stable "TimeStampCounter".

from criterion.

dreixel avatar dreixel commented on June 11, 2024

I still see this bug with criterion-0.8.0.1. Is the patch not yet in the latest released version?

from criterion.

bos avatar bos commented on June 11, 2024

There is not a release that has this fix. You'll want to use HEAD for a bit if you need it.

from criterion.

dreixel avatar dreixel commented on June 11, 2024

Ok, thanks.

from criterion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.