PaddlePaddle / PaddlePaddle/FastDeploy

simple server服务耗时 与单独测试耗时为什么差别很大。

Open
#1,886 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

simple 服务耗时 与单独测试耗时为什么差别很大。
测试 ocr服务 。如果单独运行这个一张图片耗时差不多0.08s
https://github.com/PaddlePaddle/FastDeploy/blob/develop/examples/vision/ocr/PP-OCR/cpu-gpu/python/infer.py
这样打印的耗时。
image

simple server 服务的话 耗时是0.15s 了 为什么这么大的区别呢?
这里打印的耗时。
image

图片一样,机器一样。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/vision/ocr/PP-OCR/cpu-gpu/python/infer.py and compare its timing boundaries with the simple server path referenced in the issue, using the same image and machine. Done means documenting the source of the approximately 0.08s versus 0.15s difference or identifying a reproducible server performance defect.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.