Zam vs. Vue.js - set css

Benchmark created by Brandon Barber on


Preparation HTML

<h1 id="a1">
  Hello World!
</h1>
<h1 :style="fsize" id="a2">
  Hello World!
</h1>
<script src="https://cdn.jsdelivr.net/gh/roecrew/zam@0.4.5/zam.min.js"></script>
<script src="https://unpkg.com/vue"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Zam
var zam = new Zam();
zam.css({'font-size':'40px'}, '#a1');
ready
Vue.js
new Vue({
  el: '#a2',
  data: {
    fsize: 'font-size: 40px'
  }
})
ready

Revisions

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

  • Revision 1: published by Brandon Barber on