是否可以在浏览器中使用javascript对用户的系统进行基准测试 [英] Is it possible to benchmark a user's system with javascript in the browser

查看:111
本文介绍了是否可以在浏览器中使用javascript对用户的系统进行基准测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Html5开始增加,我们看到更多的实验,如视频或画布元素。



在使用画布进行实验时,例如用颗粒做烟花,1000颗粒子可能在现代机器上工作良好,但在3年机器上可能会很慢。 / p>

还是有一个用户系统的基准测试动态改变画布实验(或任何东西),以便优化它给特定的用户。



EDIT:这可能是最佳解决方案: http://benchmarkjs.com/

解决方案

测量渲染几帧所需的时间,并相应地调整细节级别。



不要不想做的事情是,让你的用户坐在五分钟的基准,他们可以做任何事情与你的东西。


As Html5 starts gaining ground, we are seeing more experiments with things like the video or canvas element.

When making an experiment with the canvas for example making a firework with particles, 1000 particles may work well on a modern machine but may go very slowly on a 3yr machine.

Is there anyway to benchmark a users system to dynamically change a canvas experiment (or anything) so as to optimise it to said specific user.

EDIT: This might possibly be the best solution: http://benchmarkjs.com/

解决方案

Measure the time it takes to render a few frames of whatever you're doing and adjust the level of detail accordingly. If you don't mind the details changing on the fly, you could use continuous measuring.

What you don't want to do is make your user sit through a five-minute benchmark before they can do anything with your thing.

这篇关于是否可以在浏览器中使用javascript对用户的系统进行基准测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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