2

出于研究原因,我构建了“相同”的 HTML5 应用程序和 Flash 应用程序。我需要一种有效的方法(希望是软件)来测试和比较系统性能。

4

2 回答 2

4

The easiest way of doing this would be trace() in case of Actionscript and console.log() in case of HTML5/JS.

You can use new Date().time for AS3 and new Date().getTime() for JS.

So you can print start time and end time and compare them, or you can 'ask' your application to do the math (taskTime = endTime - startTime). The drawback of using trace in Flash is that it requires debug version of the player which is a little bit slower than the normal version.

于 2012-06-03T10:40:35.670 回答
2

Flash 的统计信息https://github.com/mrdoob/Hi-ReS-Stats JS 的统计信息https://github.com/mrdoob/stats.js/

不要打扰,Flash 随时更快。

于 2012-06-06T07:02:26.577 回答