sunspider javascript测试集


http://www.webkit.org/perf/sunspider/sunspider.html
SunSpider JavaScript Benchmark

This is SunSpider, a JavaScript benchmark. This benchmark tests the core JavaScript language only, not the DOM or other browser APIs. It is designed to compare different versions of the same browser, and different browsers to each other. Unlike many widely available JavaScript benchmarks, this test is:

Real World
This test mostly avoids microbenchmarks, and tries to focus on the kinds of actual problems developers solve with JavaScript today, and the problems they may want to tackle in the future as the language gets faster. This includes tests to generate a tagcloud from JSON input, a 3D raytracer, cryptography tests, code decompression, and many more examples. There are a few microbenchmarkish things, but they mostly represent real performance problems that developers have encountered.
Balanced
This test is balanced between different areas of the language and different types of code. It's not all math, all string processing, or all timing simple loops. In addition to having tests in many categories, the individual tests were balanced to take similar amounts of time on currently shipping versions of popular browsers.
Statistically Sound
One of the challenges of benchmarking is knowing how much noise you have in your measurements. This benchmark runs each test multiple times and determines an error range (technically, a 95% confidence interval). In addition, in comparison mode it tells you if you have enough data to determine if the difference is statistically significant.

Current Version
Start SunSpider 0.9.1 now!
(When you run the benchmark, be patient - it loops through all of the test cases five times and can take a minute or longer to complete.)

Previous Versions

SunSpider 0.9

 

 

http://www.guao.hk/tag/sunspider

Google 说 Apple 和 Mozilla 搞的浏览器跑分都不靠谱,还是用我搞的吧

2011年5月5日
  7     

 

Chrome对比其它浏览器最大的优势就是速度。但在谷奥两周年聚会上负责Chrome的Googler胡坤讲了一个段子,说让他老婆使用多个浏览器,最后问哪个快,他老婆憋了半天说“一样快”……这让Chrome情何以堪?

孰快孰慢绝对是有个比较的,当然不能让人来判断,而应该有科学的测量依据。但是当前有各种各样的测试标准,到底谁测量的结果最准确呢?

首先说Apple在2007年开发的SunSpider测试,Google说这个测试已经不适合于2011年使用了,因为很多测试项目在2011年的网页里都不用了。即便是那些依然相关的测试项目,它们的测量单位还停留在毫秒级,精度太差了,因为你没法在10英尺的距离里分辨出到底是QQ快还是F1赛车快。于是Google对SunSpider做了改进,将测试精度提高了50倍,这样就可以反应出Chrome的真实水平了──它比别人快30%。

然后又说Mozilla开发的Kraken测试,Google称其做的还算不错,但是bug太多,甚至导致结果出错。于是Google又在Mozilla公布的源代码基础上对Kraken做了改进──结果又是Chrome成绩大幅领先了。

不论如何,大家只要都盯着速度来改进产品,对消费者来说就是一个好事。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值