Commit 11188ad
authored
removed micropython-specific code
The update to this PR removes `micropython`-specific code. Tested on an adafruit feather board with the following results:
```
Computing the RMS value of 100 numbers
traditional : 5.472ms [result=3535.843611]
ulab, with ndarray, some implementation in python : 0.500ms [result=3535.853624]
ulab only, with list : 0.655ms [result=3535.854340]
ulab only, with ndarray : 0.139ms [result=3535.854340]
```
The result of the second run might be misleading (seems to be faster than the third), because it does not contain the costs of the list-to-ndarray conversion (since that happens earlier, outside of time measurement).1 parent 9f00af2 commit 11188ad
1 file changed
Lines changed: 15 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 6 | | |
16 | 7 | | |
17 | 8 | | |
18 | | - | |
19 | 9 | | |
20 | 10 | | |
21 | 11 | | |
| |||
25 | 15 | | |
26 | 16 | | |
27 | 17 | | |
28 | | - | |
29 | 18 | | |
| 19 | + | |
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
33 | 23 | | |
34 | 24 | | |
35 | | - | |
36 | | - | |
37 | 25 | | |
38 | 26 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 27 | + | |
44 | 28 | | |
45 | 29 | | |
46 | 30 | | |
47 | 31 | | |
48 | 32 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
56 | 40 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments