问题描述
我正在运行jmeter脚本.对于一个用户,加载时间为2秒,对于100个用户而言,加载时间为14秒.加速时间为1秒.加载时间之间的差异太大.我该如何解决这个吗?
I am running jmeter script.For one user getting load time as 2 sec and for 100 users getting load time as 14 sec.Ramp up period is 1 sec..The difference between load time is too much.How I can solve this?
推荐答案
假设您在谈论网站速度和并发请求,根据您的应用程序可以执行许多操作.
Assuming you're talking about website speeds and concurrent requests, there are many things you can do depending on your application.
要考虑的一些事情是:
- 部分全页缓存
- 数据库优化
- 更好,更快的硬件
- 等
以我作为开发人员的经验,块或页面缓存通常是最重要的,并且假设您没有在其他方面犯任何关键性的错误,则可以(取决于您的应用程序)总体上实现99%的巨大改进.
In my experience as a developer, block or page caching is usually the big one and can (depending on your app) have a huge 99% improvement overall, assuming you didn't make any cricital mistakes in other areas.
这篇关于1个用户和100个用户的加载时间之间的差异太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!