Commit ba85ba18 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent bf10e1df
Pipeline #9891 passed with stage
in 1 second
......@@ -5,11 +5,10 @@
* pi = 3.14159265358979323846
*/
#define NPTS 1000000
#define NPTS 100000
int i;
float a,b,c,pi,dt,mflops;
unsigned long tstart,tend;
unsigned long i,tstart,tend;
void setup() {
Serial.begin(115200);
......@@ -26,6 +25,12 @@ void loop() {
tend = millis();
dt = (tend-tstart)/1000.0;
mflops = NPTS*5.0/(dt*1e6);
printf("NPTS = %d, pi = %f\n",NPTS,pi);
printf("time = %f, estimated MFlops = %f\n",dt,mflops);
Serial.print("NPTS = ");
Serial.print(NPTS);
Serial.print(" pi = ");
Serial.println(pi);
Serial.print("time = ");
Serial.print(dt);
Serial.print(" estimated MFlops = ");
Serial.println(mflops);
}
......@@ -50,6 +50,7 @@
|0.001|prior|Sun SPARCStation 1|C|prior|
|0.001|prior|DEC VAX 8650|C|prior|
|0.0007|prior|Intel 486|C|prior|
|0.0001|[pi.ino](Arduino/pi.ino)|Arduino, floats|ATtiny1614|December, 2020|
|0.00003|prior|Sun 3/60|C|prior|
|0.00003|prior|Intel 286|C|prior|
|0.000001|prior|Intel 8088|C|prior|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment