shabtronic
Member
HI Folks
I've just got a teensy 4.1 - loving it so far!
I plan to build a portable daw/tracker - much in the style of LCDJ, Dirtywave's M8 , Reaper - it's not commercial, I'm not competing with those guys, just inspired by the great work and just a box for me to play with!
I wrote a quick "benchmark" to get a idea of the FPU performance - and it's well exceeded my expectations:
{
elapsedMillis floptime;
static float res = 0;
float target = 1;
float damp = 0.001f;
for (int a = 0; a < 20000000; a++) // simple loop unrolled IIR 6db
{
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
}
gridprintf(0, 5, "Math: \x4%d ms \x2mflops \4%5.2f", (int)floptime, (20 * 24) * (float)(int)floptime / 1000.f ); // 24 fops - 8 mults 12 adds
}
so from that I'm getting 1023mflops!!
is that right - am I actually getting 1,024,000,000 fops/sec - this can't be real can it ? lol
thanks
Shabby
I've just got a teensy 4.1 - loving it so far!
I plan to build a portable daw/tracker - much in the style of LCDJ, Dirtywave's M8 , Reaper - it's not commercial, I'm not competing with those guys, just inspired by the great work and just a box for me to play with!
I wrote a quick "benchmark" to get a idea of the FPU performance - and it's well exceeded my expectations:
{
elapsedMillis floptime;
static float res = 0;
float target = 1;
float damp = 0.001f;
for (int a = 0; a < 20000000; a++) // simple loop unrolled IIR 6db
{
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
res += (target - res) * damp;
}
gridprintf(0, 5, "Math: \x4%d ms \x2mflops \4%5.2f", (int)floptime, (20 * 24) * (float)(int)floptime / 1000.f ); // 24 fops - 8 mults 12 adds
}
so from that I'm getting 1023mflops!!
is that right - am I actually getting 1,024,000,000 fops/sec - this can't be real can it ? lol
thanks
Shabby