Browse Source

bench component order

Evan You 10 years ago
parent
commit
ea18ba55a8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      benchmarks/reorder-list/index.html

+ 2 - 0
benchmarks/reorder-list/index.html

@@ -49,6 +49,7 @@ for (var i = 0; i < total; i++) {
 }
 
 var s = window.performance.now()
+console.profile('render')
 var vm = new Vue({
   el: '#el',
   template: '#t',
@@ -85,6 +86,7 @@ var vm = new Vue({
 })
 setTimeout(function () {
   vm.time = window.performance.now() - s
+  console.profileEnd('render')
 }, 0)
 
 function monitor (action, fn) {