如何测试我的 GAE 网站的性能

发布于 2024-10-08 23:42:39 字数 152 浏览 4 评论 0原文

我正在构建一个 GAE 站点,它使用 AJAX/JSON 来完成几乎所有任务,包括构建 UI 元素、所有交互和客户端-服务器请求。有什么好方法来测试它的高负载,以便我可以统计出 1000 个普通用户在一段时间内会占用多少资源。我想我可以为此目的创建一些Python函数。你有什么建议?谢谢。

I am building a GAE site that uses AJAX/JSON for almost all its tasks including building the UI elements, all interactions and client-server requests. What is a good way to test it for highloads so that I could have some statistics about how much resources 1000 average users per some period of time would take. I think I can create some Python functions for this purpose. What can you advise? Thanks.

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

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

发布评论

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

评论(4

抠脚大汉 2024-10-15 23:42:39

第一步是为您的应用连接并配置 Appstats——它本身不会帮助您进行负载测试部分,但会为您提供大量有关您的应用在何处花费时间的有用数据。

Python 版 Appstat

The first step is to get Appstats hooked up and configured for your app -- it won't help you with the load-testing part itself, but gives you a ton of useful data about where your app is spending its time.

Appstats for Python

小镇女孩 2024-10-15 23:42:39

编写一些可以自动化测试的Python测试是衡量性能的好方法。如果您想衡量整个客户体验,请考虑尝试 Google Chrome 中的“审核”工具。 Chrome 开发者工具提供了多种用于衡量性能的资源。要访问这些工具,请单击右上角的扳手,然后单击“工具”,然后单击“开发人员工具”。

Writing some python tests that can automate tests is a good way to measure performance. If you want to measure the entire client experience consider trying the "Audit" tool in Google chrome. The chrome developer tools provide several resources for measuring performance. To access the tools click the wrench in the top right corner then click tools, then developer tools.

网白 2024-10-15 23:42:39

您可以从 EC2 获取免费的 Linux 微实例,然后运行带有大量请求的 ab(apache 基准测试)。您可以更改请求数、并发请求数,甚至可以从不同的数据中心启动多个 EC2 实例。

You can get a free linux micro instance from EC2 and then run ab (apache benchmark) with lots of requests. You can change number of requests, concurrent requests and you can even launch multiple EC2 instances from different data centers.

绝對不後悔。 2024-10-15 23:42:39

如果您有预算,专业的负载测试工具将为您节省大量时间并产生更准确的结果。其中一些工具比其他工具更好地处理 AJAX 应用程序。我自然会推荐我们的产品(Web 性能负载测试器),我们的一位工程师将帮助您让它在您的网站上运行。当然,您应该评估其他产品,看看哪种产品最适合您的网站。 Load Impact 和 Browser Mob 是在线服务,在许多情况下比更传统的工具(我们的工具除外!)更好地处理 AJAX,但它们也有缺点。

If you have the budget for it, a professional load testing tool will save you a lot of time and produce more accurate results. Some of those tools handle AJAX apps better than others. I will naturally recommend our product (Web Performance Load Tester) and one of our engineers will help you get it working with your site. You should, of course, evaluate other products to see what works best for your site. Load Impact and Browser Mob are online services that in many cases handle AJAX better than the more traditional tools (except ours!), but they also have downsides.

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