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

Commit 2c8b464

Browse files
Zizzamiajeffbcross
authored andcommitted
perf(benchmark): add ngBindOnce benchmarks to largetable-bp
1 parent a192c41 commit 2c8b464

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

benchmarks/largetable-bp/main.html

+21-10
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
Large table rendered with AngularJS
99
</p>
1010

11-
<div>none: <input type=radio ng-model="benchmarkType" value="none"></div>
12-
<div>baseline binding: <input type=radio ng-model="benchmarkType" value="baselineBinding"></div>
13-
<div>baseline interpolation: <input type=radio ng-model="benchmarkType" value="baselineInterpolation"></div>
14-
<div>ngBind: <input type=radio ng-model="benchmarkType" value="ngBind"></div>
15-
<div>interpolation: <input type=radio ng-model="benchmarkType" value="interpolation"></div>
16-
<div>ngBind + fnInvocation: <input type=radio ng-model="benchmarkType" value="ngBindFn"></div>
17-
<div>interpolation + fnInvocation: <input type=radio ng-model="benchmarkType" value="interpolationFn"></div>
18-
<div>ngBind + filter: <input type=radio ng-model="benchmarkType" value="ngBindFilter"></div>
19-
<div>interpolation + filter: <input type=radio ng-model="benchmarkType" value="interpolationFilter"></div>
11+
<div>none: <input type="radio" ng-model="benchmarkType" value="none"></div>
12+
<div>baseline binding: <input type="radio" ng-model="benchmarkType" value="baselineBinding"></div>
13+
<div>baseline interpolation: <input type="radio" ng-model="benchmarkType" value="baselineInterpolation"></div>
14+
<div>ngBind: <input type="radio" ng-model="benchmarkType" value="ngBind"></div>
15+
<div>ngBindOnce: <input type="radio" ng-model="benchmarkType" value="ngBindOnce"></div>
16+
<div>interpolation: <input type="radio" ng-model="benchmarkType" value="interpolation"></div>
17+
<div>ngBind + fnInvocation: <input type="radio" ng-model="benchmarkType" value="ngBindFn"></div>
18+
<div>interpolation + fnInvocation: <input type="radio" ng-model="benchmarkType" value="interpolationFn"></div>
19+
<div>ngBind + filter: <input type="radio" ng-model="benchmarkType" value="ngBindFilter"></div>
20+
<div>interpolation + filter: <input type="radio" ng-model="benchmarkType" value="interpolationFilter"></div>
2021

2122
<ng-switch on="benchmarkType">
2223
<baseline-binding-table ng-switch-when="baselineBinding">
@@ -26,7 +27,17 @@
2627
<div ng-switch-when="ngBind">
2728
<h2>baseline binding</h2>
2829
<div ng-repeat="row in data">
29-
<span ng-repeat="column in row"><span ng-bind="column.i"></span>:<span ng-bind="column.j"></span>|</span>
30+
<span ng-repeat="column in row">
31+
<span ng-bind="column.i"></span>:<span ng-bind="column.j"></span>|
32+
</span>
33+
</div>
34+
</div>
35+
<div ng-switch-when="ngBindOnce">
36+
<h2>baseline binding once</h2>
37+
<div ng-repeat="row in data">
38+
<span ng-repeat="column in ::row">
39+
<span ng-bind="::column.i"></span>:<span ng-bind="::column.j"></span>|
40+
</span>
3041
</div>
3142
</div>
3243
<div ng-switch-when="interpolation">

0 commit comments

Comments
 (0)