您尚未登录。

楼主 #1 2020-09-24 14:07:15

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

test_fps.sh 文件内容:

#!/bin/sh

n=0
t1=`date +%s`
count=1000

while [ true ]; do
	let n++
	if [ $(($n % 10)) -eq 0 ]; then
		echo -e ".\c"
	fi
	
	if [ $n -gt $count ]; then
		break;
	fi

	cat /dev/zero > /dev/fb0 2>&1

done;


t2=`date +%s`

fps=$(($count/($t2 - $t1)))

echo -e "\ntest result: $fps fps"

widora tiny200s 800x480 测试结果:

# sh test.sh
....................................................................................................
test result: 37 fps

离线

楼主 #2 2020-09-24 14:08:21

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

测试方法, 记住开始和结束的时间戳,然后测试1000次写0到fb0,

用 1000除以时间差, 得到粗略的帧率。

离线

#3 2020-09-24 15:25:52

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,134
积分: 1086.5

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

这么慢?我记得裸机跑过,有50多fps

离线

楼主 #4 2020-09-24 15:28:13

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

达克罗德 说:

这么慢?我记得裸机跑过,有50多fps

这个脚本肯定不怎么准,粗略测试,用来练习一下脚本技术。

离线

#5 2020-09-24 17:51:21

三木同子
会员
注册时间: 2020-06-09
已发帖子: 42
积分: 32

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

达克罗德 说:

这么慢?我记得裸机跑过,有50多fps

RGB模式 可以到60Hz吗?

-------------
-------------
Steward says:
-------------
we use oscilloscope to double check and hw can ouput 60hz
in kernel, I just accumulate and print it
and the result is 40hz
even though boost priority for innterrupt
the result is same as without boos priority
we also check with some engineers who developed f1c500s
they havent checked this when produce this ic
I mean no any verification with interrupt speed
so, I dont know whats the root cause
maybe, kernel or IC
if you know this, please tell me
thanks

离线

#6 2020-09-24 17:59:06

vip888888
会员
注册时间: 2020-07-16
已发帖子: 141
积分: 138

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

这样测试肯定测得不准吧,毕竟本身你运行的这个脚本就不是一直占用CPU的。

离线

楼主 #7 2021-01-13 09:28:51

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

#!/bin/sh

n=0
t1=`date +%s`
count=1000

while [ true ]; do
        let n++
        if [ $(($n % 10)) -eq 0 ]; then
                echo -e ".\c"
        fi

        if [ $n -gt $count ]; then
                break;
        fi

        djpeg -outfile /dev/null /usr/images/hehua.jpg

done;


t2=`date +%s`

fps=$(($count/($t2 - $t1)))

echo -e "\ntest result: $fps fps"

V3s neno指令加速的1280x720 jpeg文件解码粗略测试15fps:

# ./test.sh
....................................................................................................
test result: 15 fps

连续测试同一个文件jpeg解码,解码完成的结果直接扔/dev/null


如果把全志的编解码器搞起来, 至少应该 50fps吧?

离线

楼主 #8 2021-01-13 10:18:43

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 拼拼凑凑写了一个简单脚本,粗略测试嵌入式Linux的帧率fps, widora tiny200s 800x480 37fps左右

貌似发现了更精确的测试方法, 直接解码成 yuv420

libjpeg自带的tjbench:

# tjbench /usr/images/hehua.jpg  -yuv -subsamp 420

Testing YUV planar encoding/decoding

>>>>>  JPEG 4:2:0 --> BGR (Top-down)  <<<<<

Image size: 1280 x 720
Decomp to YUV --> Frame rate:         34.059825 fps
                  Throughput:         31.389535 Megapixels/sec
YUV Decode    --> Frame rate:         71.475664 fps
                  Throughput:         65.871972 Megapixels/sec

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn