简体   繁体   中英

is it possible to accurately assess how long it takes one kilobyte to load in a webpage?

我想知道是否有一种简单或实用的方法来确定网站上1 kB加载需要多长时间?

If you are using Firefox, you can get information on how long various files take to download using the Firebug plugin . It has a bunch of network monitoring features.

Chrome has a console similar to Firebug under tools->developer tools.

This is great for a quick reality check when you are developing, but sometimes you need a little more. For instance, you might want to set up a monitoring script to ensure response times aren't creeping up. Selenium is great for this and supports both Java and C# . Another option is to write a quick script using a headless browser like Mechanize ( Ruby , Perl ).

I prefer doing this kind of monitoring from the client end as opposed to on the server side because you get a more realistic perspective of what your end users are experiencing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM