Page 1 of 2

K210 basic benchmark test

Posted: Wed Dec 05, 2018 3:16 am
by shaoziyang
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 887 times
Finally, K210 is a little faster than STM32F4, but slower than STM32F7 and ESP32.

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 4:22 am
by victagayun
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.

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 6:12 am
by shaoziyang
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.

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 6:13 am
by shaoziyang
K210 is still worth wait.

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 8:40 am
by OutoftheBOTS_
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

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 9:27 am
by xiaohui
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.

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 1:32 pm
by zepan
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~

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 2:52 pm
by victagayun
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!!

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 3:03 pm
by kevinkk525
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 ;)

Re: K210 basic benchmark test

Posted: Wed Dec 05, 2018 3:30 pm
by shaoziyang
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.