MyMonsterCat / RapidOcr-Java

🔥🔥🔥Java代码实现调用RapidOCR(基于PaddleOCR),适配Mac、Win、Linux,支持最新PP-OCRv4
Apache License 2.0
197 stars 28 forks source link

springboot并发问题 #33

Open blandDrift opened 3 months ago

blandDrift commented 3 months ago

单个执行的时候才花费5410毫秒

(线程名 发起时间 响应时间 耗时(毫秒)) pool-1-thread-1 2024-03-18 18:00:45 2024-03-18 18:00:50 5410

10个请求同时发起的时候共花费10757毫秒,感觉同时调用detect方法需要等到全部识别完成后才返回结果,不知道我说的对不对?

(线程名 发起时间 响应时间 耗时(毫秒)) pool-1-thread-7 2024-03-18 17:36:55 2024-03-18 17:37:05 9600 pool-1-thread-5 2024-03-18 17:36:55 2024-03-18 17:37:05 9694 pool-1-thread-2 2024-03-18 17:36:55 2024-03-18 17:37:05 9694 pool-1-thread-4 2024-03-18 17:36:55 2024-03-18 17:37:05 10012 pool-1-thread-9 2024-03-18 17:36:55 2024-03-18 17:37:05 10263 pool-1-thread-1 2024-03-18 17:36:55 2024-03-18 17:37:05 10302 pool-1-thread-8 2024-03-18 17:36:55 2024-03-18 17:37:06 10490 pool-1-thread-6 2024-03-18 17:36:55 2024-03-18 17:37:06 10604 pool-1-thread-3 2024-03-18 17:36:55 2024-03-18 17:37:06 10676 pool-1-thread-10 2024-03-18 17:36:55 2024-03-18 17:37:06 10745