44 Star 203 Fork 49

努力加贝 / xplay

 / 详情

v1.0.9.v20191226 版本压力测试

已完成
拥有者
创建于  
2019-12-25 21:29

v1.0.9.v20191226 版本压力测试
运行时间 4 小时,CPU使用率32%(总),内存使用率11%,仍在正常运行。

硬件

Raspberry 3B+

系统

Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

运行时间

04:03:02

输入图片说明

测试脚本

#!/bin/bash

/usr/bin/xplay &

sleep 3

/usr/bin/xplayctl -stop -all

sleep 1

while true;do

    /usr/bin/xplayctl -play -libName pic -zIndex 10 -screen_mode landscape -screen_rotate 0 -rect 0,0,1920,1080 -path `pwd`/a1_landscape.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 10 -screen_mode landscape -screen_rotate 180 -rect 0,0,1920,1080 -path `pwd`/a1_landscape.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 10 -screen_mode portrait -screen_rotate 90 -rect 0,0,1080,1920 -path `pwd`/a1_portrait.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 10 -screen_mode portrait -screen_rotate 270 -rect 0,0,1080,1920 -path `pwd`/a1_portrait.jpg
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName video -zIndex 10 -screen_mode landscape -screen_rotate 0 -rect 0,0,1920,1080 -path `pwd`/sample.mp4
    sleep 3
    /usr/bin/xplayctl -play -libName video -zIndex 10 -screen_mode landscape -screen_rotate 180 -rect 0,0,1920,1080 -path `pwd`/yiyezi.mp4
    sleep 3
    /usr/bin/xplayctl -play -libName video -zIndex 10 -screen_mode landscape -screen_rotate 0 -rect 0,0,1920,1080 -path `pwd`/sample.mp4
    sleep 3
    /usr/bin/xplayctl -play -libName video -zIndex 10 -screen_mode landscape -screen_rotate 180 -rect 0,0,1920,1080 -path `pwd`/yiyezi.mp4
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName pic -zIndex 9 -screen_mode landscape -screen_rotate 0 -rect 100,100,800,600 -path `pwd`/a2.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 9 -screen_mode landscape -screen_rotate 180 -rect 100,100,800,600 -path `pwd`/a2.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 9 -screen_mode portrait -screen_rotate 90 -rect 100,100,800,600 -path `pwd`/a2.jpg
    sleep 3
    /usr/bin/xplayctl -play -libName pic -zIndex 9 -screen_mode portrait -screen_rotate 270 -rect 100,100,800,600 -path `pwd`/a2.jpg
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName text -zIndex 8 -screen_mode landscape -screen_rotate 0 -rect "0,0,1920,50" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -align center -style bold
    sleep 3
    /usr/bin/xplayctl -play -libName text -zIndex 8 -screen_mode landscape -screen_rotate 180 -rect "0,0,1920,50" -font_size 20 -color "rgba(0,255,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -align center -style italic 
    sleep 3
    /usr/bin/xplayctl -play -libName text -zIndex 8 -screen_mode portrait -screen_rotate 90 -rect "0,0,1080,50" -font_size 20 -color "rgba(0,0,255,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -align center -style underline
    sleep 3
    /usr/bin/xplayctl -play -libName text -zIndex 8 -screen_mode portrait -screen_rotate 270 -rect "0,0,1080,50" -font_size 20 -color "rgba(255,255,255,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -align center -style strikethrough
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode landscape -screen_rotate 0 -rect "0,0,-1,50" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -style bold -orientation horizontal -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode landscape -screen_rotate 180 -rect "0,0,-1,50" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -style bold -orientation horizontal -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode portrait -screen_rotate 90 -rect "0,0,-1,50" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -style bold -orientation horizontal -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode portrait -screen_rotate 270 -rect "0,0,-1,50" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统设计的多媒体播放器" -style bold -orientation horizontal -speed 2
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode landscape -screen_rotate 0 -rect "710,0,500,-1" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统 设计的多媒体播放器" -style bold -orientation vertical -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode landscape -screen_rotate 180 -rect "710,0,500,-1" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统 设计的多媒体播放器" -style bold -orientation vertical -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode portrait -screen_rotate 90 -rect "290,0,500,-1" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统 设计的多媒体播放器" -style bold -orientation vertical -speed 2
    sleep 3
    /usr/bin/xplayctl -play -libName scroll -zIndex 8 -screen_mode portrait -screen_rotate 270 -rect "290,0,500,-1" -font_size 20 -color "rgba(255,0,0,100%)" -bgcolor "rgba(0,0,0,30%)" -content "专为树莓派(Raspberry Pi)与Windows系统 设计的多媒体播放器" -style bold -orientation vertical -speed 2
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName datetime -zIndex 7 -screen_mode landscape -screen_rotate 0 -font_size 30 -color "rgba(255,255,255,100%)" -bgcolor "rgba(0,0,0,20%)" -align center -style bold -rect "0,0,500,50"
    sleep 3
    /usr/bin/xplayctl -play -libName datetime -zIndex 7 -screen_mode landscape -screen_rotate 180 -font_size 30 -color "rgba(255,255,255,100%)" -bgcolor "rgba(0,0,0,20%)" -align center -style bold -rect "0,0,500,50"
    sleep 3
    /usr/bin/xplayctl -play -libName datetime -zIndex 7 -screen_mode portrait -screen_rotate 90 -font_size 30 -color "rgba(255,255,255,100%)" -bgcolor "rgba(0,0,0,20%)" -align center -style bold -rect "0,0,500,50"
    sleep 3
    /usr/bin/xplayctl -play -libName datetime -zIndex 7 -screen_mode portrait -screen_rotate 270 -font_size 30 -color "rgba(255,255,255,100%)" -bgcolor "rgba(0,0,0,20%)" -align center -style bold -rect "0,0,500,50"
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName toast -zIndex 6 -screen_mode landscape -screen_rotate 0 -content "通知" -toast_type notice -duration 3
    sleep 3
    /usr/bin/xplayctl -play -libName toast -zIndex 6 -screen_mode landscape -screen_rotate 180 -content "成功" -toast_type success -duration 3
    sleep 3
    /usr/bin/xplayctl -play -libName toast -zIndex 6 -screen_mode portrait -screen_rotate 90 -content "警告" -toast_type warning -duration 3
    sleep 3
    /usr/bin/xplayctl -play -libName toast -zIndex 6 -screen_mode portrait -screen_rotate 270 -content "错误" -toast_type error -duration 3
    
    sleep 3
    
    /usr/bin/xplayctl -play -libName gif -zIndex 5 -screen_mode landscape -screen_rotate 0 -rect 0,0,495,374 -path `pwd`/balloon.gif
    sleep 3
    /usr/bin/xplayctl -play -libName gif -zIndex 5 -screen_mode landscape -screen_rotate 180 -rect 0,0,495,374 -path `pwd`/balloon.gif
    sleep 3
    /usr/bin/xplayctl -play -libName gif -zIndex 5 -screen_mode portrait -screen_rotate 90 -rect 0,0,495,374 -path `pwd`/balloon.gif
    sleep 3
    /usr/bin/xplayctl -play -libName gif -zIndex 5 -screen_mode portrait -screen_rotate 270 -rect 0,0,495,374 -path `pwd`/balloon.gif
    
    sleep 3
done

评论 (1)

努力加贝 创建了任务
努力加贝 置顶等级设置为
努力加贝 修改了描述
展开全部操作日志

运行时间 6 小时,CPU使用率25.2%(总),内存使用率10.9%,仍在正常运行。
输入图片说明

努力加贝 修改了标题
努力加贝 置顶等级 修改为不置顶
努力加贝 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
982422 nljb 1578937515
C++
1
https://gitee.com/nljb/xplay.git
git@gitee.com:nljb/xplay.git
nljb
xplay
xplay

搜索帮助