如何计算平均请求持续时间?

发布于 2024-10-09 01:51:42 字数 112 浏览 0 评论 0原文

我需要对我的应用程序进行一些规模评估,其中一个关键指标是平均请求持续时间。

有没有一种方法可以运行我的测试(不使用 Rspecs)并且框架可以告诉我请求通过的平均时间,并告诉我最慢的请求是什么?

I need to do some sizing evaluation for my application, and one key metric is the average request duration.

Is there a way I can run my tests (not using Rspecs) And that the framework can tell me the average time it takes for a request to go through, and tell me what are the slowest requests?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦上情书 2024-10-16 01:51:42

有很多工具可以帮助进行基准测试...请参阅 http://guides.rubyonrails.org/performance_testing.html 作为起点。

如果您的应用程序已上线,也许也可以尝试一下 new relic 之类的内容。这是一个非常有用的工具!

There's lots of tools to help with benchmarking... see http://guides.rubyonrails.org/performance_testing.html for a starting point.

If your app is live, maybe give something like new relic a try as well. It's a very useful tool!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文