测量 Web 请求和响应的大小

发布于 2024-07-22 02:25:04 字数 213 浏览 4 评论 0 原文

我正在寻找一种方法来测量我在浏览器中发出的网络请求和响应的大小。 我需要一种方法来衡量常规请求以及 ajax 请求。 我正在尝试通过减少请求和响应大小来提高 Ajax 性能,并且我需要某种方法在客户端进行基准测试并衡量我的进度。

这是 ASP.net 应用程序 (3.5) 的一部分,但我肯定更喜欢一些基于客户端的工具(Firefox 插件、可执行应用程序等),而不是基于代码的方法。

I am looking for a way to measure the size of web requests and responses that I make in my browser. I would need a way to measure regular requests, as well as ajax requests. I am trying to improve Ajax performance by decreasing request and response size, and I need some way to benchmark this on the client end as well as measure my progress as I go.

This is part of an ASP.net application (3.5), but I would definitely prefer some client-based tool (Firefox plugin, executable application, etc) rather than a code-based approach.

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

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

发布评论

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

评论(8

差↓一点笑了 2024-07-29 02:25:04

您可以在 IE 和 HttpWatch Firefox 上的“nofollow noreferrer">FireBug 检查请求响应标头。 这些应该足以满足您的要求。

You can use HttpWatch on IE and FireBug on firefox to check the request response header. These should be enough for what you have asked for.

烟火散人牵绊 2024-07-29 02:25:04

我通常使用 Fiddler 来调查发出的请求、响应时间和大小。

I usually use Fiddler to investigate what requests that are made, response times and sizes.

So尛奶瓶 2024-07-29 02:25:04

雅虎! Firebug 的 YSlow 插件(在 FireFox 中)是满足您需求的最佳工具之一。

编辑:您需要先在 Firefox 中安装 FireBug 才能安装Y慢。

Yahoo! YSlow add-on for Firebug (in FireFox) is one of the best tool for what you want to do.

EDIT: You'll need FireBug installed in Firefox first to install YSlow.

静水深流 2024-07-29 02:25:04

对于 Internet Explorer,您可以从以下位置下载 IE Developer 工具栏:
http://www .microsoft.com/DownLoads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en

此外,您还可以从以下位置下载 Fiddler:
http://www.fiddler2.com/fiddler2/

分析您的请求/响应。

Firefox 有许多插件:
- 萤火虫
- Y慢

For internet explorer you can download IE Developer toolbar from:
"http://www.microsoft.com/DownLoads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en"

Additionally you can download Fiddler from:
"http://www.fiddler2.com/fiddler2/"

To profile your request/response.

For Firefox there are numerous plugins:
- Firebug
- YSlow

¢蛋碎的人ぎ生 2024-07-29 02:25:04

除了其他人的优秀推荐之外,还有针对 Visual Studio 和 Ajax 的特定工具集,即 VS Ajax 分析扩展 - 但这仅适用于 IIS7

In addition to everyone else's excellent recommendations there's a specific toolset for Visual Studio and Ajax, the VS Ajax Profiling Extensions - however this will only work on IIS7

匿名。 2024-07-29 02:25:04

对于 Firefox,有一个名为 LORI 的附加组件(Life-请求信息)。

它告诉您页面大小、向服务器发出的请求数量(对于 css、javascript 等)、第一个字节的时间以及完成请求的时间。

For firefox there is a add-on available called LORI (Life-Of-Request-Information).

It tells you the pagesize, how many request it makes to server(for css, javascript etc.) time to first byte and time to completion of the request.

亢潮 2024-07-29 02:25:04

看起来像 Firefox Firebug 插件 > 网络监控可能可以完成这项工作。

It looks like the Firefox Firebug plugin > Network Monitoring might do the job.

旧时光的容颜 2024-07-29 02:25:04

Charles 是一个优秀的 Web 调试代理,它将向您显示 Web 浏览器发出的每个 HTTP 请求的大小。 它还提供了一种非常简单的方法来检查请求的有效负载,包括 XML。

http://www.charlesproxy.com/

Charles is an excellent web debugging proxy that will show you the size of every HTTP request made by your web browser. It also offers a very easy way to examine the payload of your requests, including XML.

http://www.charlesproxy.com/

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