Test name | Executions per second |
---|---|
ng | 343.8 Ops/sec |
nat | 370.2 Ops/sec |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<div id='container'></div>
window.container = $('#container').get(0);
var fragment = document.createElement('div');
fragment.innerHTML = '<div ng-click="click()"></div>';
angular.bootstrap(fragment);
container.appendChild(fragment);
var fragment = document.createElement('div');
fragment.innerHTML = '<div onclick="click()"></div>';
angular.bootstrap(fragment);
container.appendChild(fragment);