K210 basic benchmark test

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
shaoziyang
Posts: 228
Joined: Sun Apr 17, 2016 1:55 pm

K210 basic benchmark test

Post by shaoziyang » Wed Dec 05, 2018 3:16 am

I have did a basic computational performance test for K210. Because K210 firmware has no time module now, I have to using my watch to recording time.

Integer addition

Code: Select all

def int_add_test(n=1000000, a = 1234, b = 5678):
    sum = 0
    for i in range(n):
        sum = a + b
It is about 3s when n=1,000,000, and about 29s when n=10,000,000.

Integer multiplication

Code: Select all

def int_mul_test(n=1000000, a = 1234, b = 5678):
    sum = 0
    for i in range(n):
        sum = a + b
It is about 3s when n=1,000,000, and about 33s when n=10,000,000.

But I have meet gc problem when I did float division calculation test, so I give up test.
23.png
23.png (72.41 KiB) Viewed 222 times
Finally, K210 is a little faster than STM32F4, but slower than STM32F7 and ESP32.

victagayun
Posts: 7
Joined: Fri Oct 26, 2018 1:38 am

Re: K210 basic benchmark test

Post by victagayun » Wed Dec 05, 2018 4:22 am

shaoziyang wrote:
Wed Dec 05, 2018 3:16 am
Finally, K210 is a little faster than STM32F4, but slower than STM32F7 and ESP32.
So do you recommend ESP32 over K210? I plan to buy on Indiegogo.

shaoziyang
Posts: 228
Joined: Sun Apr 17, 2016 1:55 pm

Re: K210 basic benchmark test

Post by shaoziyang » Wed Dec 05, 2018 6:12 am

Micropython in ESP32 and K210 are still in development, there are lack some import feature and documents both. I hope porting work will be finish soon.

shaoziyang
Posts: 228
Joined: Sun Apr 17, 2016 1:55 pm

Re: K210 basic benchmark test

Post by shaoziyang » Wed Dec 05, 2018 6:13 am

K210 is still worth wait.

OutoftheBOTS_
Posts: 449
Joined: Mon Nov 20, 2017 10:18 am

Re: K210 basic benchmark test

Post by OutoftheBOTS_ » Wed Dec 05, 2018 8:40 am

I don't think that your tests r very valid tests.

If you see the promo video https://www.youtube.com/watch?v=9q8YzZYH3o4&t=80s you will see at starting at 1:15 u will see it running a NN for face detection. It is capturing the image from the camera then processing the image through the NN then sending the output to the screen, it is achieving this at 60 fps on a 320x240 image in 16 bit colour. The openMV guys on their latest STM32H7 running a NN for face detect on a 160x120 8bit grey scale image is only getting about 5 fps

If you want a much more developed Micropython then choose a more developed platform. The K210 MP port is basically a bare shell put together for the kick starter and needs much more development before it will be comparable to other ports

xiaohui
Posts: 2
Joined: Sat Nov 17, 2018 9:05 am

Re: K210 basic benchmark test

Post by xiaohui » Wed Dec 05, 2018 9:27 am

If you use MaixPy of standalone version ,the frequency of CPU is 160MHz. But we conduct your experiment with another version MaixPy , It is about 1.5s when n=1,000,000 , and it is still not optimized.

zepan
Posts: 9
Joined: Sat Nov 17, 2018 9:01 am

Re: K210 basic benchmark test

Post by zepan » Wed Dec 05, 2018 1:32 pm

Hi, the default Maixpy firmware is run on 160MHz to get lowpower consume.
K210 stand freq is 400MHz, and can be up to 600MHz without increase voltage, and able to 800MHz when increase core voltage to 1.1V.
We test your test in 390MHz, it is about 1.3~1.4s
Here is the video:
https://youtu.be/r5fVphvKvR4

we will add system freq adjust soon.
If you are interested in maixpy development, you can send email to support@sipeed.com, and we can send MAIX board to you for FREE~

victagayun
Posts: 7
Joined: Fri Oct 26, 2018 1:38 am

Re: K210 basic benchmark test

Post by victagayun » Wed Dec 05, 2018 2:52 pm

zepan wrote:
Wed Dec 05, 2018 1:32 pm
If you are interested in maixpy development, you can send email to support@sipeed.com, and we can send MAIX board to you for FREE~
Hey I want one free too!!

kevinkk525
Posts: 215
Joined: Sat Feb 03, 2018 7:02 pm

Re: K210 basic benchmark test

Post by kevinkk525 » Wed Dec 05, 2018 3:03 pm

victagayun wrote:
Wed Dec 05, 2018 2:52 pm
zepan wrote:
Wed Dec 05, 2018 1:32 pm
If you are interested in maixpy development, you can send email to support@sipeed.com, and we can send MAIX board to you for FREE~
Hey I want one free too!!
Everyone wants it :D The question is if you are going to develop micropython for this board to deserve it ;)

shaoziyang
Posts: 228
Joined: Sun Apr 17, 2016 1:55 pm

Re: K210 basic benchmark test

Post by shaoziyang » Wed Dec 05, 2018 3:30 pm

zepan wrote:
Wed Dec 05, 2018 1:32 pm
Hi, the default Maixpy firmware is run on 160MHz to get lowpower consume.
K210 stand freq is 400MHz, and can be up to 600MHz without increase voltage, and able to 800MHz when increase core voltage to 1.1V.
We test your test in 390MHz, it is about 1.3~1.4s
Here is the video:
https://youtu.be/r5fVphvKvR4

we will add system freq adjust soon.
If you are interested in maixpy development, you can send email to support@sipeed.com, and we can send MAIX board to you for FREE~
It sounds very exciting. I am waiting for the new firmware.

Post Reply