Comments (4)
It has nothing to do with the calculation speed, but with loop execution speed.
There is a VM hook enabled (MICROPY_VM_HOOK_LOOP
) which handles keyboard interrupt during bytecode execution, but in a very inefficient way.
Without it enabled the times are:
System freq: 398.7 MHz
Add test: 2.834 s
Mul test: 3.183 s
Div test: 3.072 s
Pi test: 4.435 s
System freq: 806.0 MHz
Add test: 1.401 s
Mul test: 1.573 s
Div test: 1.471 s
Pi test: 2.173 s
I'll try to implement this hook in a different, more efficient, way.
Also some other optimization can be done to improve the performance...
from micropython_k210_lobo.
OK. Minor differences do not matter. The fastest device with that test is anyhow the PyBoard, mostly due to the traditional internal RAM. But at 800MHz, the K210 comes close, but at much higher power consumption.
from micropython_k210_lobo.
I've tested a different approach for keyboard interrupt and it now works without impacting the performance.
I'll test it some more, and commit it tommorow.
BTW, the floating point operations are faster than on PyBoard, especially considering the fp operations are double precission...
from micropython_k210_lobo.
I've noticed that. The Pi test which makes heavy use of floats runs much faster. And there are more goodies in having 64 bit ints and double floats.
About the change: do not hurry. I just got another task to accomplish form my daughter. That's topmost priority.
from micropython_k210_lobo.
Related Issues (20)
- GPIO reset HOT 2
- KPU HOT 8
- Using pre-built firmware with Maixduino HOT 2
- Local build firmware HOT 10
- FLASH File system initialization failed! SOLVED. HOT 15
- WiFi "Error setting baudrate" HOT 50
- When triangle is drawn with fill colour, firmware crashes and reboots
- BUILD.sh improvements on MacOS HOT 4
- Can't use SSL with latest firmware HOT 2
- machine.UART not working HOT 3
- using old microSD cards version 1 HOT 1
- cannot flash on maixpy go HOT 2
- TFT Display on Maix Amigo HOT 2
- Unexpected Restarts
- BUILD.sh script failing HOT 15
- I2C device already used / Error initializing I2C hardware HOT 8
- Read data from 16-bit register address (I2C) HOT 2
- WiFi firmware HOT 2
- Camera and LCD not working, OMV modules not part of this port HOT 1
- Cannot flash the WiFi firmware to M1W HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython_k210_lobo.