Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b8dbdb0

Browse files
jbedardpetebacondarwin
authored andcommitted
perf(benchmark): add ngmodel benchmarks to largetable-bp
Closes #11082
1 parent 67af519 commit b8dbdb0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

benchmarks/largetable-bp/main.html

+17-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<div>interpolation + fnInvocation: <input type="radio" ng-model="benchmarkType" value="interpolationFn"></div>
2121
<div>ngBind + filter: <input type="radio" ng-model="benchmarkType" value="ngBindFilter"></div>
2222
<div>interpolation + filter: <input type="radio" ng-model="benchmarkType" value="interpolationFilter"></div>
23+
<div>ngModel (const name): <input type="radio" ng-model="benchmarkType" value="ngModelConstName"></div>
24+
<div>ngModel (interp name): <input type="radio" ng-model="benchmarkType" value="ngModelInterpName"></div>
2325

2426
<ng-switch on="benchmarkType">
2527
<baseline-binding-table ng-switch-when="baselineBinding">
@@ -84,7 +86,21 @@ <h2>interpolation with filter</h2>
8486
<span ng-repeat="column in row">{{column.i | noop}}:{{column.j | noop}}|</span>
8587
</div>
8688
</div>
89+
<div ng-switch-when="ngModelConstName">
90+
<h2>ngModel (const name)</h2>
91+
<div ng-repeat="row in data">
92+
<input type="text" ng-model="row.i" name="constName" />
93+
<input type="text" ng-model="row.j" />
94+
</div>
95+
</div>
96+
<div ng-switch-when="ngModelInterpName">
97+
<h2>ngModel (interp name)</h2>
98+
<div ng-repeat="(rowIdx, row) in data">
99+
<input type="text" ng-model="row.i" name="input-{{rowIdx}}" />
100+
<input type="text" ng-model="row.j" name="input2-{{rowIdx}}" />
101+
</div>
102+
</div>
87103
</ng-switch>
88104
</div>
89105
</div>
90-
</div>
106+
</div>

0 commit comments

Comments
 (0)