[Scilab-users] Pong contest

Claus Futtrup cfuttrup at gmail.com
Sun Jun 7 12:01:56 CEST 2020


Hi Rafael

...SCALAR RESULT:  Mflops= 2.737 ;  Pi ~ 3.141592
...ARRAY RESULT:  Mflops= 1.284 ;  Pi ~ 3.141592

The machine is a two-year old Lenovo T480, Core i7 8th Gen. Built-in 
Intel Graphics (no external card)

/Claus

On 07-06-2020 09:54, Rafael Guerra wrote:
>
> Hello Stéphane et al.,
>
> Would it make sense in this “Pong contest”, in addition to the OS 
> used, to also provide some sort of benchmarking of machine CPU?
>
> Fyi, find below simple test by Gershenfeld (1999), it computes 
> Pi=4*atan(1) by two methods:
>
>     Scalar test:  Pi(N)~Sum{i=1:N; 0.5/((i-0.75)*(i-0.25))}
>
>     Array test:   Pi(N)= Pi(N-1) + 0.5/((N-0.75)*(N-0.25))
>
> /// Based on benchmarking test in Gershenfeld Mathematical modeling 
> book (1999)/
>
> /// There are 5 floating point operations per step, total 5 Mflop with 
> N=1e6/
>
> N=1e6;
>
> tic();
>
> ps=0;
>
> fori=1:N
>
> ps=ps + 0.5/((i-0.75)*(i-0.25));
>
> end
>
> dt=toc();
>
> printf('...SCALAR RESULT:  Mflops= %4.3f ;  Pi ~ %7.6f \n',5.0/dt,ps);
>
> tic();
>
> pv(1)=0.5/((1-0.75)*(1-0.25));
>
> fori=2:N
>
> pv(i)= pv(i-1) + 0.5/((i-0.75)*(i-0.25));
>
> end
>
> dt=toc();
>
> printf('...ARRAY RESULT:  Mflops= %4.3f ;  Pi ~ %7.6f \n',5.0/dt,pv(N));
>
> PS:
>
> ...SCALAR RESULT:  Mflops= 3.489
>
> ...ARRAY RESULT:  Mflops= 1.367
>
> Regards,
>
> Rafael
>
> On 05-06-2020 14:48, Stéphane Mottelet wrote:
>
>     Hello all,
>
>     As you may have noticed, there is now a little game in the
>     Gaphics/Animation section of the demonstrations. As the speed and
>     responsiveness seems to be similar under all platforms, it would
>     be funny to launch a little contest. In the next Scilab version it
>     would be interesting to implement a high score online record, but
>     until then, you can answer this message with the same kind of
>     screenshot I joined, showing you score and just taken after the
>     game end with and with the last dialog on the figure.
>
>     Cheers,
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200607/27a2dd92/attachment.htm>


More information about the users mailing list