【问题标题】:jsperf alternative that works on IE?适用于 IE 的 jsperf 替代方案?
【发布时间】:2011-08-11 18:54:19
【问题描述】:

我一直在尝试使用jsperf.com 来测试来自 jquery 和 ext js 的一些代码。它在 Firefox 和 chrome 中运行良好,但其中很多在 Internet Explorer 中无法运行。有谁知道 jsperf 的任何替代品可以很好地与 IE 配合使用吗?

在 chrome、firefox 和 IE 中试试这个example。它在 chrome 和 firefox 中运行良好,但是一旦我在 IE 中尝试它,它就会给我一个错误。更让我困惑的是,我可以自己在 IE 中打开它,但不能通过 jsperf。

【问题讨论】:

    标签: javascript jquery extjs benchmarking jsperf


    【解决方案1】:

    我是jsPerf的创建者。

    jsPerf 可以在各种浏览器和设备中运行。如果你的测试用例由于某种原因不能在 IE 中运行,这并不意味着 jsPerf 坏了——你的测试用例可能有问题。

    您的测试用例抛出“jQuery is undefined”错误。我猜是因为这个:

    <script src="https://raw.github.com/chubicle/Javascript-Framework-Benchmarking/master/jquery.easyui.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://raw.github.com/chubicle/Javascript-Framework-Benchmarking/master/easyui.css" />
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    

    您可能应该在jquery.min.js 之后添加jquery.easyui.min.js ,而不是相反。

    更新:我已经为您编辑了测试用例,现在可以正常工作了。

    【讨论】:

    • @Raynos 嗯,我在 IE9 中似乎一切正常。您能否在此处提交错误,包括损坏页面的链接? github.com/mathiasbynens/jsperf.com/issues/new
    • 哦,您是创建者,在这种情况下,您的网站已损坏。我无法让它在 3 台不同机器上的 Chrome、IE10 或 FF 中运行。很确定不是我
    • @SpYk3HH 请参阅之前的评论。提交工单,更详细地解释问题。
    • 嘿,jsperf 怎么了?
    猜你喜欢
    • 2017-09-23
    • 2011-01-30
    • 2011-06-29
    • 2013-08-26
    • 1970-01-01
    • 2018-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多