native vs. managed

Benchmark created by Rick Waldron on


Preparation HTML

<script src="http://dl.dropbox.com/u/3531958/popcorn.js"></script>


  <video id='video' style="width:300px;" 
    controls 
    poster="http://media.w3.org/2010/05/sintel/poster.png"> 

    <source id='mp4'
      src="http://media.w3.org/2010/05/sintel/trailer.mp4"
      type='video/mp4; codecs="avc1, mp4a"'> 

    <source id='ogv'
      src="http://media.w3.org/2010/05/sintel/trailer.ogv"
      type='video/ogg; codecs="theora, vorbis"'> 

    <p>Your user agent does not support the HTML5 Video element.</p> 

  </video>  


<script>
var $pop = {
 A: Popcorn("#video").video,
 B: Popcorn("#video")
};
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
native handler
$pop.A.addEventListener("play", function() {}, false);
ready
managed handler
$pop.B.listen("play", function() {});
ready

Revisions

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

  • Revision 1: published by Rick Waldron on