Git Product home page Git Product logo

Comments (2)

MarkzP avatar MarkzP commented on June 2, 2024

Here's a quick test on the T3.2, 96Mhz, Faster:

void setup()
{
  unsigned long start;
  float f;
  float q;

  randomSeed(12345);
  Serial.println("Go!");
  start = micros();

  for (int i = 0; i < 1000000; ++i)
  {
    f = random(10000) / 10000;

    q = log2f(f);
       
    (void)q;
  }

  unsigned long t = micros() - start;
  Serial.print("Done: "); Serial.print(t); Serial.println();
}

Here are the results:

    q = log(f);                 // 7557535
    q = log2f(f);               // 7808295
    q = log2f_approx(f);        // 5178506

    q = exp(f);                 // 9019425
    q = expf(f);                // 6514553
    q = expf_approx(f);         // 5555512

I would say it's a modest improvement at best on the T3.2, but still worth it IMHO

from audioeffectdynamics.

MarkzP avatar MarkzP commented on June 2, 2024

Now I need to repeat this on a T3.5 (just need to find one!)

from audioeffectdynamics.

Related Issues (4)

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.