就是測試

Benchmark created by 測試名稱 on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
 

  };

  Benchmark.prototype.teardown = function() {
    2
  };
</script>

Setup

<article>
    <p>A test</p>
    <p><iframe></iframe></p>
    <p>This is text</p>
    </article>
     
    <script>
      Benchmark.prototype.setup = function() {
        var article = document.querySelector('article');

Test runner

Ready to run.

Testing in
TestOps/sec
test1
var hasFrame = $(article).find('iframe').length > 0 ? true : false;
ready
test2
var hasFrame = $('iframe', article).length > 0 ? true : false;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by 測試名稱 on