Comments (2)
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.
Now I need to repeat this on a T3.5 (just need to find one!)
from audioeffectdynamics.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audioeffectdynamics.