elleestcrimi-masonry

JavaScript performance comparison

Test case created by elleestcrimi

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="//raw.github.com/elleestcrimi/vertical-masonary/master/js/jquery.masonary.js">
</script>

<style>
.masonary-holder .masonary-item {
background: blue;
}
.masonary-holder-2 .masonary-item {
background: red;
}
.masonary-holder-2, .masonary-holder {
margin-bottom: 20px;
border-bottom: 2px solid black
}
.masonary-item {
    display: inline-block;
    width: 198px;
    height: 200px;
    border: 1px solid #000;
}

.masonary-item:nth-child(3n) {
    height: 100px
}

.masonary-item:nth-child(even) {
    height: 300px;
}
</style>
<div class="masonary-holder-2" style="width: 600px;">
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
</div>
<div class="masonary-holder" style="width: 600px;">
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
    <div class="masonary-item"></div>
</div>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Vertical Masonary
$('.masonary-holder').vertical_masonary();
pending…
false
false
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment