Coder Social home page Coder Social logo

Comments (3)

DigitalInBlue avatar DigitalInBlue commented on July 18, 2024

What you have reported is true, however this is not a bug. Setup is called between each group of iterations. That is, it is called once per SAMPLE, not per ITERATION. This must be done in order to not measure set up costs. As per the example noted, if you wanted to have the vector in unsorted state for each measurement, then you should move the setup code into the experiment and the experiment's baseline so that it is measured uniformly across all experiments and will cancel itself out in the measurements.

from celero.

peterazmanov avatar peterazmanov commented on July 18, 2024

Ok, aforementioned behavior is there by design. In that case ExperimentSortingRandomInts is misleading to say the least. What are we measuring in it? I'm talking about experiment code excerpts from which are on the main page of the project.

from celero.

DigitalInBlue avatar DigitalInBlue commented on July 18, 2024

You are correct. The example needs to be updated. I clearly overlooked that when I developed the example and documentation.

from celero.

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.