Repository navigation
Expand file tree
/
Copy pathcomparison.tt2
More file actions
582 lines (568 loc) · 22.9 KB
/
Copy pathcomparison.tt2
File metadata and controls
582 lines (568 loc) · 22.9 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
[%- PROCESS header.tt2 -%]
<h1>Google Compute Engine Comparison [% instance_a.name %] vs. [% instance_b.name %]</h1>
<blockquote class="blockquote">
<p>
Google Compute Engine machine type comparison
<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)
versus
<a href="/[% instance_b.name %].html" title="Show machine type [% instance_b.name %] in all regions">[% instance_b.name %]</a>
([% instance_b.vCpus %] vCPU, [% instance_b.memoryGB %] GB memory).
</p>
</blockquote>
<p class="d-grid gap-2 d-lg-block">
<a class="btn btn-primary" href="/[% instance_a.name %].html" role="button" title="Show machine type [% instance_a.name %] in all regions">Show [% instance_a.name %]</a>
<a class="btn btn-primary" href="/[% instance_b.name %].html" role="button" title="Show machine type [% instance_b.name %] in all regions">Show [% instance_b.name %]</a>
<a class="btn btn-warning" href="/comparison/[% instance_a.name %]/vs.html" role="button">Compare [% instance_a.name %]</a>
<a class="btn btn-warning" href="/comparison/[% instance_b.name %]/vs.html" role="button">Compare [% instance_b.name %]</a>
</p>
<div class="row">
<div class="col-xxl-6">
<h2>Google Cloud VMs</h2>
<p>Technical facts about the Google Compute Engine machine types [% instance_a.name %] and [% instance_b.name %].</p>
<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
</thead>
<tbody>
<tr>
<th>Series</th>
<td class="table-active">[% instance_a.series %]</td>
[% tableCompareText(instance_a.series || '', instance_b.series || '') %]
<td>[% instance_b.series %]</td>
</tr>
<tr>
<th>Family</th>
<td class="table-active">[% instance_a.family %]</td>
[% tableCompareText(instance_a.family || '', instance_b.family || '') %]
<td>[% instance_b.family %]</td>
</tr>
<tr>
<th>Regions</th>
<td class="table-active">[% instance_a.regionCount %]</td>
[% tableCompareNumber(instance_a.regionCount || 0, instance_b.regionCount || 0) %]
<td>[% instance_b.regionCount %]</td>
</tr>
<tr>
<th>vCPU</th>
<td class="table-active">[% instance_a.vCpus %][% badgeSharedCpu(instance_a) %]</td>
[% tableCompareNumber(instance_a.vCpus || 0, instance_b.vCpus || 0) %]
<td>[% instance_b.vCpus %][% badgeSharedCpu(instance_b) %]</td>
</tr>
<tr>
<th>Memory</th>
<td class="table-active">[% instance_a.memoryGB %] GB</td>
[% tableCompareNumber(instance_a.memoryGB || 0, instance_b.memoryGB || 0) %]
<td>[% instance_b.memoryGB %] GB</td>
</tr>
<tr>
<th>CPU Platform</th>
<td class="table-active">[% listCpuPlatform(instance_a) %]</td>
[% tableCompareNumber(instance_a.cpuPlatformCount || 0, instance_b.cpuPlatformCount || 0) %]
<td>[% listCpuPlatform(instance_b) %]</td>
</tr>
<tr>
<th>CPU Base Frequency</th>
<td class="table-active">[% instance_a.cpuBaseClock %] GHz</td>
[% tableCompareNumber(instance_a.cpuBaseClock || 0, instance_b.cpuBaseClock || 0) %]
<td>[% instance_b.cpuBaseClock %] GHz</td>
</tr>
<tr>
<th>CPU Turbo Frequency</th>
<td class="table-active">[% instance_a.cpuTurboClock %] GHz</td>
[% tableCompareNumber(instance_a.cpuTurboClock || 0, instance_b.cpuTurboClock || 0) %]
<td>[% instance_b.cpuTurboClock %] GHz</td>
</tr>
<tr>
<th>CPU Max. Turbo Frequency</th>
<td class="table-active">[% instance_a.cpuSingleMaxTurboClock %] GHz</td>
[% tableCompareNumber(instance_a.cpuSingleMaxTurboClock || 0, instance_b.cpuSingleMaxTurboClock || 0) %]
<td>[% instance_b.cpuSingleMaxTurboClock %] GHz</td>
</tr>
<tr>
<th>Accelerator (GPUs)</th>
<td class="table-active">[% instance_a.acceleratorCount %]</td>
[% tableCompareNumber(instance_a.acceleratorCount || 0, instance_b.acceleratorCount || 0) %]
<td>[% instance_b.acceleratorCount %]</td>
</tr>
<tr>
<th>Accelerator Type</th>
<td class="table-active">[% instance_a.acceleratorType %]</td>
[% tableCompareText(instance_a.acceleratorType || '', instance_b.acceleratorType || '') %]
<td>[% instance_b.acceleratorType %]</td>
</tr>
<tr>
<th>EEMBC CoreMark Benchmark (<a href="https://www.eembc.org/coremark">?</a>)</th>
<td class="table-active">[% IF instance_a.coremarkScore %][% instance_a.coremarkScore %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
[% tableCompareNumber(instance_a.coremarkScore || 0, instance_b.coremarkScore || 0) %]
<td>[% IF instance_b.coremarkScore %][% instance_b.coremarkScore %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
</tr>
<tr>
<th>EEMBC CoreMark Standard Deviation</th>
<td class="table-active">[% IF instance_a.standardDeviation %][% instance_a.standardDeviation %] %[% ELSE %]<span class="text-muted">-</span>[% END %]</td>
[% tableCompareNumber(instance_a.standardDeviation || 0, instance_b.standardDeviation || 0) %]
<td>[% IF instance_b.standardDeviation %][% instance_b.standardDeviation %] %[% ELSE %]<span class="text-muted">-</span>[% END %]</td>
</tr>
<tr>
<th>EEMBC CoreMark Sample Count</th>
<td class="table-active">[% IF instance_a.sampleCount %][% instance_a.sampleCount %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
[% tableCompareNumber(instance_a.sampleCount || 0, instance_b.sampleCount || 0) %]
<td>[% IF instance_b.sampleCount %][% instance_b.sampleCount %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
</tr>
<tr>
<th>SAP Standard Benchmark (<a href="https://www.sap.com/about/benchmark.html">?</a>)</th>
<td class="table-active">[% IF instance_a.saps %][% instance_a.saps %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
[% tableCompareNumber(instance_a.saps || 0, instance_b.saps || 0) %]
<td>[% IF instance_b.saps %][% instance_b.saps %][% ELSE %]<span class="text-muted">-</span>[% END %]</td>
</tr>
<tr>
<th>Network Bandwidth</th>
<td class="table-active">[% instance_a.bandwidth %] Gbps</td>
[% tableCompareNumber(instance_a.bandwidth || 0, instance_b.bandwidth || 0) %]
<td>[% instance_b.bandwidth %] Gbps</td>
</tr>
<tr>
<th>Network Tier 1</th>
<td class="table-active">[% IF instance_a.tier1 %][% instance_a.tier1 %] Gbps[% ELSE %]<span class="text-muted">-</span>[% END %]</td>
[% tableCompareNumber(instance_a.tier1 || 0, instance_b.tier1 || 0) %]
<td>[% IF instance_b.tier1 %][% instance_b.tier1 %] Gbps[% ELSE %]<span class="text-muted">-</span>[% END %]</td>
</tr>
<tr>
<th title="Disk usage is charged separately from machine type pricing!">Max. Disk Size</th>
<td class="table-active">[% instance_a.diskSizeTiB %] TB</td>
[% tableCompareNumber(instance_a.diskSizeTiB || 0, instance_b.diskSizeTiB || 0) %]
<td>[% instance_b.diskSizeTiB %] TB</td>
</tr>
<tr>
<th title="Disk usage is charged separately from machine type pricing!">Max. Number of Disks</th>
<td class="table-active">[% instance_a.disks %]</td>
[% tableCompareNumber(instance_a.disks || 0, instance_b.disks || 0) %]
<td>[% instance_b.disks %]</td>
</tr>
<tr>
<th>Local SSD</th>
<td class="table-active">[% booleanLocalSsd(instance_a) %]</td>
[% tableCompareBoolean(instance_a.localSsd || 0, instance_b.localSsd || 0) %]
<td>[% booleanLocalSsd(instance_b) %]</td>
</tr>
<tr>
<th>SAP Application</th>
<td class="table-active">[% booleanSap(instance_a) %]</td>
[% tableCompareBoolean(instance_a.sap || 0, instance_b.sap || 0) %]
<td>[% booleanSap(instance_b) %]</td>
</tr>
<tr>
<th>SAP HANA</th>
<td class="table-active">[% booleanHana(instance_a) %]</td>
[% tableCompareBoolean(instance_a.hana || 0, instance_b.hana || 0) %]
<td>[% booleanHana(instance_b) %]</td>
</tr>
<tr>
<th>Spot Provisioning Mode (Spot VM)</th>
<td class="table-active">[% booleanSpot(instance_a) %]</td>
[% tableCompareBoolean(instance_a.spot || 0, instance_b.spot || 0) %]
<td>[% booleanSpot(instance_b) %]</td>
</tr>
<tr>
<th>Sustained Use Discount (SUD)</th>
<td class="table-active">[% booleanSud(instance_a) %]</td>
[% tableCompareBoolean(instance_a.sud || 0, instance_b.sud || 0) %]
<td>[% booleanSud(instance_b) %]</td>
</tr>
</tbody>
<tr>
<th scope="col"></th>
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
<tfoot>
</tfoot>
</table>
</div> <!-- // table-responsive -->
</div> <!-- // col -->
<div class="col-xxl-6">
<h2>Costs (Pricing)</h2>
<p>Average prices across all regions for Google Compute Engine machine types [% instance_a.name %] and [% instance_b.name %].</p>
<h3>Price per Hour</h3>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
</thead>
<tbody>
<tr>
<th>Standard price per hour</th>
<td class="currency table-active">[% instance_a.avgHour %]</td>
[% tableCompareCosts(instance_a.avgHour || 0, instance_b.avgHour || 0) %]
<td class="currency">[% instance_b.avgHour %]</td>
</tr>
<tr>
<th>Spot provisioning model (Spot VM)</th>
<td class="currency table-active">[% instance_a.avgHourSpot %]</td>
[% tableCompareCosts(instance_a.avgHourSpot, instance_b.avgHourSpot) %]
<td class="currency">[% instance_b.avgHourSpot %]</td>
</tr>
</tbody>
</table>
</div>
<h3>Price per Month</h3>
<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
</thead>
<tbody>
<tr>
<th>Price per month</th>
<td class="table-active">
<span class="currency">[% instance_a.avgMonth %]</span>
[% badgeSud(instance_a) %]
</td>
[% tableCompareCosts(instance_a.avgMonth || 0, instance_b.avgMonth || 0) %]
<td>
<span class="currency">[% instance_b.avgMonth %]</span>
[% badgeSud(instance_b) %]
</td>
</tr>
<tr>
<th>Spot provisioning model (Spot VM)</th>
<td class="currency table-active">[% instance_a.avgMonthSpot %]</td>
[% tableCompareCosts(instance_a.avgMonthSpot, instance_b.avgMonthSpot) %]
<td class="currency">[% instance_b.avgMonthSpot %]</td>
</tr>
<tr>
<th>1 year commitment (CUD)</th>
<td class="currency table-active">[% instance_a.avgMonth1yCud %]</td>
[% tableCompareCosts(instance_a.avgMonth1yCud || 0, instance_b.avgMonth1yCud || 0) %]
<td class="currency">[% instance_b.avgMonth1yCud %]</td>
</tr>
<tr>
<th>3 year commitment (CUD)</th>
<td class="currency table-active">[% instance_a.avgMonth3yCud %]</td>
[% tableCompareCosts(instance_a.avgMonth3yCud || 0, instance_b.avgMonth3yCud || 0) %]
<td class="currency">[% instance_b.avgMonth3yCud %]</td>
</tr>
</tbody>
</table>
</div> <!-- // table-responsive -->
<h3>Operating System Licenses Costs</h3>
<p>Monthly costs for paid <i>premium</i> operating system licenses for Google Compute Engine machine types [% instance_a.name %] and [% instance_b.name %].</p>
<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
</thead>
<tbody>
<tr>
<th>Microsoft Windows Server</th>
<td class="currency table-active">[% instance_a.monthWindows %]</td>
[% tableCompareCosts(instance_a.monthWindows, instance_b.monthWindows) %]
<td class="currency">[% instance_b.monthWindows %]</td>
</tr>
<tr>
<th>SUSE Linux Enterprise Server</th>
<td class="currency table-active">[% instance_a.monthSles %]</td>
[% tableCompareCosts(instance_a.monthSles || 0, instance_b.monthSles || 0) %]
<td class="currency">[% instance_b.monthSles %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux</th>
<td class="currency table-active">[% instance_a.monthRhel %]</td>
[% tableCompareCosts(instance_a.monthRhel || 0, instance_b.monthRhel || 0) %]
<td class="currency">[% instance_b.monthRhel %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux w. 1 year CUD</th>
<td class="currency table-active">[% instance_a.monthRhel1yCud %]</td>
[% tableCompareCosts(instance_a.monthRhel1yCud || 0, instance_b.monthRhel1yCud || 0) %]
<td class="currency">[% instance_b.monthRhel1yCud %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux w. 3 year CUD</th>
<td class="currency table-active">[% instance_a.monthRhel3yCud %]</td>
[% tableCompareCosts(instance_a.monthRhel3yCud || 0, instance_b.monthRhel3yCud || 0) %]
<td class="currency">[% instance_b.monthRhel3yCud %]</td>
</tr>
<tr>
<th>SUSE Linux Enterprise Server for SAP</th>
<td class="currency table-active">[% instance_a.monthSlesSap %]</td>
[% tableCompareCosts(instance_a.monthSlesSap || 0, instance_b.monthSlesSap || 0) %]
<td class="currency">[% instance_b.monthSlesSap %]</td>
</tr>
<tr>
<th>SUSE Linux Enterprise Server for SAP w. 1 year CUD</th>
<td class="currency table-active">[% instance_a.monthSlesSap1yCud %]</td>
[% tableCompareCosts(instance_a.monthSlesSap1yCud || 0, instance_b.monthSlesSap1yCud || 0) %]
<td class="currency">[% instance_b.monthSlesSap1yCud %]</td>
</tr>
<tr>
<th>SUSE Linux Enterprise Server for SAP w. 3 year CUD</th>
<td class="currency table-active">[% instance_a.monthSlesSap3yCud %]</td>
[% tableCompareCosts(instance_a.monthSlesSap3yCud || 0, instance_b.monthSlesSap3yCud || 0) %]
<td class="currency">[% instance_b.monthSlesSap3yCud %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux for SAP</th>
<td class="currency table-active">[% instance_a.monthRhelSap %]</td>
[% tableCompareCosts(instance_a.monthRhelSap || 0, instance_b.monthRhelSap || 0) %]
<td class="currency">[% instance_b.monthRhelSap %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux for SAP w. 1 year CUD</th>
<td class="currency table-active">[% instance_a.monthRhelSap1yCud %]</td>
[% tableCompareCosts(instance_a.monthRhelSap1yCud || 0, instance_b.monthRhelSap1yCud || 0) %]
<td class="currency">[% instance_b.monthRhelSap1yCud %]</td>
</tr>
<tr>
<th>Red Hat Enterprise Linux for SAP w. 3 year CUD</th>
<td class="currency table-active">[% instance_a.monthRhelSap3yCud %]</td>
[% tableCompareCosts(instance_a.monthRhelSap3yCud || 0, instance_b.monthRhelSap3yCud || 0) %]
<td class="currency">[% instance_b.monthRhelSap3yCud %]</td>
</tr>
</tbody>
</table>
</div> <!-- // table-responsive -->
</div> <!-- // col -->
</div> <!-- // row -->
<h2>Regions</h2>
<p>Costs for Google Compute Engine machine types [% instance_a.name %] and [% instance_b.name %] in Google Cloud regions in which the VMs are available.</p>
<div class="table-responsive">
<table
class="table table-sm table-hover table-bordered"
data-classes="table table-sm table-hover table-bordered"
data-toggle="table"
data-sort-name="name"
data-sort-order="asc"
data-sticky-header="true"
>
<thead>
<tr>
<th scope="col" colspan="2">Region</th>
<th scope="col" colspan="3">Hour</th>
<th scope="col" colspan="3">Spot</th>
<th scope="col" colspan="3">Month</th>
<th scope="col" colspan="3">1 year CUD</th>
<th scope="col" colspan="3">3 year CUD</th>
</tr>
<tr>
<th scope="col" data-field="name" data-sortable="true">Name</th>
<th scope="col">Location</th>
<!-- Hour -->
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
<!-- Spot -->
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
<!-- Month -->
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
<!-- 1Y CUD -->
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
<!-- 3Y CUD -->
<th scope="col" class="table-active">[% instance_a.name %]</th>
<th scope="col"></th>
<th scope="col">[% instance_b.name %]</th>
</tr>
</thead>
<tbody>
[% FOREACH region IN regions %]
<tr>
<td><a href="/[% region.name %].html" title="Show all machine types in region [% region.name %]">[% region.name %]</a></td>
<td>[% region.regionLocation %]</td>
<!-- Hour -->
[%-
costs_a = 0;
costs_b = 0;
FOREACH region_a IN regions_a;
IF region_a.region == region.name;
costs_a = region_a.hour;
END;
END;
FOREACH region_b IN regions_b;
IF region_b.region == region.name;
costs_b = region_b.hour;
END;
END;
-%]
[% IF costs_a %]
<td class="currency table-active" title="Costs per hour [% instance_a.name %] in [% region.name %]: [% costs_a %] USD"><a href="/[% region.name %]/[% instance_a.name %].html">[% costs_a %]</a></td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
[% IF costs_a && costs_b %]
[% tableCompareCosts(costs_a || 0, costs_b || 0) %]
[% ELSE %]
<td class="table-warning"><span class="text-muted">-</span></td>
[% END %]
[% IF costs_b %]
<td class="currency" title="Costs per hour [% instance_b.name %] in [% region.name %]: [% costs_b %] USD"><a href="/[% region.name %]/[% instance_b.name %].html">[% costs_b %]</a></td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
<!-- Spot -->
[%-
costs_a = 0;
costs_b = 0;
FOREACH region_a IN regions_a;
IF region_a.region == region.name;
costs_a = region_a.hourSpot;
END;
END;
FOREACH region_b IN regions_b;
IF region_b.region == region.name;
costs_b = region_b.hourSpot;
END;
END;
-%]
[% IF costs_a %]
<td class="currency table-active" title="Costs per hour [% instance_a.name %] in [% region.name %] with spot provisioning model (Spot VM): [% costs_a %] USD"><a href="/[% region.name %]/[% instance_a.name %].html">[% costs_a %]</a></td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
[% IF costs_a && costs_b %]
[% tableCompareCosts(costs_a || 0, costs_b || 0) %]
[% ELSE %]
<td class="table-warning"><span class="text-muted">-</span></td>
[% END %]
[% IF costs_b %]
<td class="currency" title="Costs per hour [% instance_b.name %] in [% region.name %] with spot provisioning model (Spot VM): [% costs_b %] USD"><a href="/[% region.name %]/[% instance_b.name %].html">[% costs_b %]</a></td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
<!-- Month -->
[%-
costs_a = 0;
costs_b = 0;
FOREACH region_a IN regions_a;
IF region_a.region == region.name;
costs_a = region_a.month;
END;
END;
FOREACH region_b IN regions_b;
IF region_b.region == region.name;
costs_b = region_b.month;
END;
END;
-%]
[% IF costs_a %]
<td class="text-nowrap table-active" title="Costs per month [% instance_a.name %] in [% region.name %]: [% costs_a %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_a.name %].html">[% costs_a %]</a></span>
[% badgeSud(instance_a) %]
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
[% IF costs_a && costs_b %]
[% tableCompareCosts(costs_a || 0, costs_b || 0) %]
[% ELSE %]
<td class="table-warning"><span class="text-muted">-</span></td>
[% END %]
[% IF costs_b %]
<td class="text-nowrap" title="Costs per month [% instance_b.name %] in [% region.name %]: [% costs_b %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_b.name %].html">[% costs_b %]</a></span>
[% badgeSud(instance_b) %]
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
<!-- 1Y CUD -->
[%-
costs_a = 0;
costs_b = 0;
FOREACH region_a IN regions_a;
IF region_a.region == region.name;
costs_a = region_a.month1yCud;
END;
END;
FOREACH region_b IN regions_b;
IF region_b.region == region.name;
costs_b = region_b.month1yCud;
END;
END;
-%]
[% IF costs_a %]
<td class="table-active" title="Costs per month [% instance_a.name %] in [% region.name %] with 1Y CUD: [% costs_a %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_a.name %].html">[% costs_a %]</a></span>
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
[% IF costs_a && costs_b %]
[% tableCompareCosts(costs_a || 0, costs_b || 0) %]
[% ELSE %]
<td class="table-warning"><span class="text-muted">-</span></td>
[% END %]
[% IF costs_b %]
<td title="Costs per month [% instance_b.name %] in [% region.name %] with 1Y CUD: [% costs_b %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_b.name %].html">[% costs_b %]</a></span>
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
<!-- 3Y CUD -->
[%-
costs_a = 0;
costs_b = 0;
FOREACH region_a IN regions_a;
IF region_a.region == region.name;
costs_a = region_a.month3yCud;
END;
END;
FOREACH region_b IN regions_b;
IF region_b.region == region.name;
costs_b = region_b.month3yCud;
END;
END;
-%]
[% IF costs_a %]
<td class="table-active" title="Costs per month [% instance_a.name %] in [% region.name %] with 3Y CUD: [% costs_a %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_a.name %].html">[% costs_a %]</a></span>
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
[% IF costs_a && costs_b %]
[% tableCompareCosts(costs_a || 0, costs_b || 0) %]
[% ELSE %]
<td class="table-warning"><span class="text-muted">-</span></td>
[% END %]
[% IF costs_b %]
<td title="Costs per month [% instance_b.name %] in [% region.name %] with 3Y CUD: [% costs_b %] USD">
<span class="currency"><a href="/[% region.name %]/[% instance_b.name %].html">[% costs_b %]</a></span>
</td>
[% ELSE %]
<td class="table-warning" title="Machine type [% instance_a.name %] is not available in the region [% region.name %]"><span class="text-muted">N.A.</span></td>
[% END %]
</tr>
[% END %]
</tbody>
</table>
</div> <!-- // table-responsive -->
[% PROCESS footer.tt2 %]