简单的带宽/延迟测试,以评估用户体验 [英] Simple bandwidth / latency test to estimate a users experience

查看:120
本文介绍了简单的带宽/延迟测试,以评估用户体验的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写基于Web的应用程序.性能显然是一个关键因素.虽然数据库负载和页面呈现时间是我可以控制的,但用户的互联网连接却没有.

I write web based applications. Performance is obviously a key factor. Whilst database load and page rendering time are things I have control of, the users internet connection is not.

我要寻找的是一种指示用户具有哪种连接的方式.网站一角的交通信号灯向用户显示了他们与该网站的什么样的连接,并因此指示了他们应该期望的那种感知性能.例如也许该应用程序似乎运行缓慢,因为公司中的每个人都在午餐时间浏览Facebook.

What I'm looking for is a way to indicate what sort of a connection a user has. Something along the lines of a traffic light in the corner of a website that shows the user what sort of a connection they have to the site and therefore indicating what sort of perceived performance they should expect. e.g. Maybe the app just seems slow because everyone else in your company is browsing facebook on their lunch hour.

我最初的想法是,这可以通过在每次页面加载时运行的某些JavaScript来实现.

My initial thoughts are that this could be achieved by some javascript that runs on each page load.

理想情况下,代码是非常可丢弃的",不需要进行重大代码或基础结构更改.

Ideally the code is very "dropable" and does not require major code or infrastructure changes to implement.

推荐答案

似乎可以使用.您还可以安排AJAX请求的时间;往返需要多长时间?您可能必须自己建立一些基准.

This seems like something you could use. You could also time an AJAX request; how long is the round trip? You'll probably have to establish some benchmarks on your own.

这篇关于简单的带宽/延迟测试,以评估用户体验的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆