Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QPS 性能提高方案 #348

Open
junknet opened this issue Dec 28, 2024 · 1 comment
Open

QPS 性能提高方案 #348

junknet opened this issue Dec 28, 2024 · 1 comment

Comments

@junknet
Copy link

junknet commented Dec 28, 2024

使用 pip install onnxruntime-gpu
开启服务 cnocr serve -p 8501

测试结果

wrk -t4 -c10 -d10s -s upload.lua http://0.0.0.0:8501/ocr 24-12-29 - 1:19:07
Running 10s test @ http://0.0.0.0:8501/ocr
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.30s 457.68ms 1.89s 50.00%
Req/Sec 0.22 0.55 2.00 83.33%
25 requests in 10.01s, 39.45KB read
Socket errors: connect 0, read 0, write 0, timeout 19
Requests/sec: 2.50
Transfer/sec: 3.94KB

显卡资源利用率5%一下,
请问有什么提高qps的方法吗

@freemedom
Copy link

我搜了几个ocr库,对于gpu加速的适配都不太行(都是单个图片处理的,不能gpu批量处理多个图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants