Browse files

perf(benchmark): add ngmodel benchmarks to largetable-bp

Closes #11082
  • Loading branch information...
jbedard authored and petebacondarwin committed Feb 14, 2015
1 parent 67af519 commit b8dbdb0c5e2cd176c6d94d60f781cfc02e646592
Showing with 17 additions and 1 deletion.
  1. +17 −1 benchmarks/largetable-bp/main.html
@@ -20,6 +20,8 @@
<div>interpolation + fnInvocation: <input type="radio" ng-model="benchmarkType" value="interpolationFn"></div>
<div>ngBind + filter: <input type="radio" ng-model="benchmarkType" value="ngBindFilter"></div>
<div>interpolation + filter: <input type="radio" ng-model="benchmarkType" value="interpolationFilter"></div>
<div>ngModel (const name): <input type="radio" ng-model="benchmarkType" value="ngModelConstName"></div>
<div>ngModel (interp name): <input type="radio" ng-model="benchmarkType" value="ngModelInterpName"></div>
<ng-switch on="benchmarkType">
<baseline-binding-table ng-switch-when="baselineBinding">
@@ -84,7 +86,21 @@ <h2>interpolation with filter</h2>
<span ng-repeat="column in row">{{column.i | noop}}:{{column.j | noop}}|</span>
<div ng-switch-when="ngModelConstName">
<h2>ngModel (const name)</h2>
<div ng-repeat="row in data">
<input type="text" ng-model="row.i" name="constName" />
<input type="text" ng-model="row.j" />
<div ng-switch-when="ngModelInterpName">
<h2>ngModel (interp name)</h2>
<div ng-repeat="(rowIdx, row) in data">
<input type="text" ng-model="row.i" name="input-{{rowIdx}}" />
<input type="text" ng-model="row.j" name="input2-{{rowIdx}}" />

0 comments on commit b8dbdb0

Please sign in to comment.