就是測試

Benchmark created by 測試名稱 on


Description

<article> <p>A test</p> <p><iframe></iframe></p> <p>This is text</p> </article>

Preparation HTML

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

Setup

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