计算数据库过载时的性能

发布于 2024-09-27 01:20:06 字数 124 浏览 0 评论 0原文

我不知道这是否是这个问题的正确位置,但它来了:

我有一个经过测试的 db 函数,可以处理大约 3000 个请求/分钟。问题是这个计算只给了我函数的最佳性能(~18ms/请求)。当请求是两倍、三倍或n倍时,如何计算性能?

I don't know if this is the right place for this question, but here it comes:

I have a db function that I tested and can handle about 3000 requests/minute. The problem is that this calculation just gives me the optimal performance of the function (~18ms/request). How do I calculate the performance when the requests are twice, triple or n-times as that?

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

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

发布评论

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

评论(1

め七分饶幸 2024-10-04 01:20:06

尝试创建多个线程或进程,它们都尽可能快地调用该函数。最好使用与生产环境中使用的相同数量的线程。

try creating multiple threads or processes that all call the function as fast as they can. preferably use the same number of threads that would be used in a production environment.

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