-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvs.tt2
More file actions
122 lines (119 loc) · 4.11 KB
/
Copy pathvs.tt2
File metadata and controls
122 lines (119 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[%- PROCESS header.tt2 -%]
<h1>Compare Google Compute Engine Machine Type [% instance_a.name %]</h1>
<blockquote class="blockquote">
<p>
Compare Google Compute Engine machine type
<a href="/[% instance_a.name %].html" title="Show machine type [% instance_a.name %] in all regions">[% instance_a.name %]</a>
([% instance_a.vCpus %] vCPU, [% instance_a.memoryGB %] GB memory)
with other GCE machine types.
</p>
</blockquote>
<div class="table-responsive">
<table
class="table table-hover table-bordered"
data-toggle="table"
data-sort-name="vcpu"
data-sort-order="asc"
data-sticky-header="true"
>
<thead>
<tr>
<th scope="col" data-sortable="true">Name</th>
<th scope="col"></th>
<th scope="col" data-field="vcpu" data-sortable="true">vCPU</th>
<th scope="col"></th>
<th scope="col" data-sortable="true">Memory</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col">Avg. costs per hour</th>
<th scope="col"></th>
<th scope="col">Avg. costs per Spot VM hour</th>
<th scope="col"></th>
<th scope="col">Avg. costs per month</th>
</tr>
</thead>
<tbody>
[% FOREACH instance IN instances %]
[% IF instance_a.name == instance.name %]
<tr class="table-info">
<td>[% instance.name %]</td>
<!-- vCPU -->
<td></td>
<td class="text-nowrap">[% instance.vCpus %][% badgeSharedCpu(instance) %]</td>
<!-- Memory -->
<td></td>
<td class="memory" title="Random-access memory: [% instance.memoryGB %] GB">[% instance.memoryGB %]</td>
<td>
[% badgeCpuManufactur(instance) %]
[% badgeGpu(instance) %]
[% badgeSap(instance) %]
[% badgeHana(instance) %]
[% badgeSpot(instance) %]
[% badgeLocalSsd(instance) %]
</td>
<!-- Hour -->
<td></td>
<td title="[% instance.name %] avg. costs per hour: [% instance.avgHour %] USD">
<span class="currency">[% instance.avgHour %]</span>
</td>
<!-- // Hour -->
<!-- Spot VM -->
<td></td>
<td title="[% instance.name %] avg. costs per Spot VM hour: [% instance.avgHourSpot %] USD">
<span class="currency">[% instance.avgHourSpot %]</span>
</td>
<!-- // Spot VM -->
<!-- Month -->
<td></td>
<td title="[% instance.name %] avg. costs per month: [% instance.avgMonth %] USD[% IF instance.sud %] with sustained use discounts (SUD) applied[% END %]">
<span class="currency">[% instance.avgMonth %]</span>
[% badgeSud(instance) %]
</td>
<!-- // Month -->
</tr>
[% ELSE %]
<tr>
<td>
<a href="/comparison/[% instance_a.name %]/vs/[% instance.name %].html" title="Compare Google Compute Engine machine type [% instance_a.name %] vs. [% instance.name %]">
[% instance.name %]
</a>
</td>
<!-- vCPU -->
[% tableCompareNumber(instance_a.vCpus || 0, instance.vCpus || 0) %]
<td>[% instance.vCpus %][% badgeSharedCpu(instance) %]</td>
<!-- Memory -->
[% tableCompareNumber(instance_a.memoryGB || 0, instance.memoryGB || 0) %]
<td class="memory" title="Random-access memory: [% instance.memoryGB %] GB">[% instance.memoryGB %]</td>
<td>
[% badgeCpuManufactur(instance) %]
[% badgeGpu(instance) %]
[% badgeSap(instance) %]
[% badgeHana(instance) %]
[% badgeSpot(instance) %]
[% badgeLocalSsd(instance) %]
</td>
<!-- Hour -->
[% tableCompareCosts(instance_a.avgHour || 0, instance.avgHour || 0) %]
<td title="[% instance.name %] avg. costs per hour: [% instance.avgHour %] USD">
<span class="currency">[% instance.avgHour %]</span>
</td>
<!-- // Hour -->
<!-- Spot VM -->
[% tableCompareCosts(instance_a.avgHourSpot || 0, instance.avgHourSpot || 0) %]
<td title="[% instance.name %] avg. costs per Spot VM hour: [% instance.avgHourSpot %] USD">
<span class="currency">[% instance.avgHourSpot %]</span>
</td>
<!-- // Spot VM -->
<!-- Month -->
[% tableCompareCosts(instance_a.avgMonth || 0, instance.avgMonth || 0) %]
<td class="text-nowrap" title="[% instance.name %] avg. costs per month: [% instance.avgMonth %] USD[% IF instance.sud %] with sustained use discounts (SUD) applied[% END %]">
<span class="currency">[% instance.avgMonth %]</span>
[% badgeSud(instance) %]
</td>
<!-- // Month -->
</tr>
[% END; END; %]
</tbody>
</table>
</div> <!-- // table-responsive -->
[% PROCESS footer.tt2 %]