NumWorks firmwares performance test : 1.2.0 vs 1.3.0
Channel:
Subscribers:
497
Published on ● Video Link: https://www.youtube.com/watch?v=8ioojKf0Ix0
Mandelbrot fractal using complex numbers in Python. Comparaison between :
- firmware 1.2.0, released on 5 Dec 2017
- firmware 1.3.0, released on 1st Feb 2018
Performances commits from 5 Dec to 1.3.0 include :
- instruction and date cache : https://github.com/numworks/epsilon/commit/845337a0423c25795ed3351f47e69713a8765769
- flash instructions fetching : https://github.com/numworks/epsilon/pull/260
Python code (firmwares 1.2.0+) :
from kandinsky import set_pixel
def mandelbrot(W,H,N) :
w=2.7/(W-1)
h=1.87/(H-1)
n=255.0/N
for x in range(W):
for y in range(H):
z=complex(0,0)
c=complex(w*x-2.1,.935-h*y)
for j in range(N):
z=z*z+c
if abs(z){greater than}2:
break
set_pixel(x,y,255*65792*j+256)