new Audio() vs. document.createElement('audio') (v7)

Revision 7 of this benchmark created on


Description

Testing the performance between new Audio(), jQuery way, and document.createElement('audio').

Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
new Audio
var a = new Audio();
ready
createElement
var b = document.createElement('audio');
ready
jQuery
jQuery('<audio>')
ready

Revisions

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