-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhourly.php
177 lines (148 loc) · 6.03 KB
/
hourly.php
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
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('max_execution_time', 300);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Benchmarks" property="og:title">
<meta content="Benchmarks and comparison of cloud game streaming providers" property="og:description">
<meta content="https://bench.benji.link" property="og:url">
<meta content="/assets/controller.png" property="og:image">
<meta content="#5a43b5" data-react-helmet="true" name="theme-color">
<title>Benchmarks of Game Streaming Providers (Hourly)</title>
<meta name="description" content="Benchmarks of various Game Streaming Providers using Shadow of the Tomb Raider.">
<meta name="keywords" content="game streaming, cloud streaming, benchmarks, cloud pc, hourly">
<meta name="author" content="Benji">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" type="text/css" href="assets/bulma-prefers-dark.css" />
<link rel="stylesheet" type="text/css" href="assets/custom.css" />
<script async src="https://arc.io/widget.min.js#a24jhCmw"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-50TJ289NGW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-50TJ289NGW');
</script>
<script>
$(document).ready(function () {
$('#myTable').DataTable({
order: [[4, 'desc']],
paging: false,
info: false,
searching: false
});
});
</script>
</head>
<body>
<?php
include('conn.php');
$sql = "SELECT * FROM hourly";
$result = $conn->query($sql);
?>
<section class="section">
<div class="container">
<h1 class="title">
Benchmarks of Game Streaming Providers (Hourly)
</h1>
<br>
<!-- back button -->
<a href="/" class="button is-primary">Back</a>
<a href="monthly.php" class="button is-primary">Monthly</a>
<br>
<br>
<p class="subtitle">
Click the headers to sort the table.
<br>
All Benchmarks were in run Shadow of the Tomb Raider without DLSS and at 1080p at Ultra Settings.
</p>
<table id="myTable" class="table">
<thead>
<tr>
<th onclick="sortTable(0)">Name</th>
<th onclick="sortTable(1)">Locations</th>
<th onclick="sortTable(2)">Price</th>
<th onclick="sortTable(3)"><abbr title="How much?/Is it Persitant?">Storage</th>
<th onclick="sortTable(4)"><abbr title="Non-RTX FPS MAX settings 1080p">FPS</th>
<th onclick="sortTable(5)"><abbr title="RTX FPS MAX settings 1080p">RTX FPS</th>
<th onclick="sortTable(6)">Library</th>
<th onclick="sortTable(7)">RAM</th>
<th onclick="sortTable(8)"><abbr title="vCores">CPU</th>
<th onclick="sortTable(9)">GPU</th>
<th><abbr title="Non-RTX Benchmark Screenshot">Screenshot</th>
<th><abbr title="RTX Benchmark Screenshot">Screenshot RTX</th>
<th><abbr title="Just some more random info">Extra Info</th>
</tr>
</thead>
<tbody>
<?php
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
if($row["fps"] < 30) {
$fps = "<span id='" . $row["fps"] . "' class='tag is-danger'>" . $row["fps"] . "</span>";
} else if($row["fps"] < 60) {
$fps = "<span id='" . $row["fps"] . "' class='tag is-warning'>" . $row["fps"] . "</span>";
} else {
$fps = "<span id='" . $row["fps"] . "' class='tag is-success'>" . $row["fps"] . "</span>";
}
if($row["rtx-fps"] < 30) {
$rtx_fps = "<span id='" . $row["rtx-fps"] . "' class='tag is-danger'>" . $row["rtx-fps"] . "</span>";
} else if($row["rtx-fps"] < 60) {
$rtx_fps = "<span id='" . $row["rtx-fps"] . "' class='tag is-warning'>" . $row["rtx-fps"] . "</span>";
} else {
$rtx_fps = "<span id='" . $row["rtx-fps"] . "' class='tag is-success'>" . $row["rtx-fps"] . "</span>";
}
echo "
<tr>
<td><a href='overview.php?type=hourly&id=" . $row["id"]. "'>" . $row["name"]. "</td>
<td>" . $row["locations"]. "</td>
<td>" . $row["price"]. "$/hr</td>
<td>" . $row["storage"]. "</td>
<td>" . $fps. "</td>
<td>" . $rtx_fps. "</td>
<td>" . $row["library"]. "</td>
<td>" . $row["ram"]. "</td>
<td>" . $row["vcores"]. "</td>
<td>" . $row["gpu"]. "</td>
<td><a href='" . $row["ss-non"]. "' target='_blank'>Screenshot</a></td>
<td><a href='" . $row["ss-rtx"]. "' target='_blank'>Screenshot</a></td>
<td>" . $row["info"]. "</td>
</tr>
";
}
} else {
echo "0 results";
}
?>
</tbody>
</table>
</p>
</div>
</section>
<section class="section">
<div class="container">
<i class="fa fa-italic">*more storage can be added at setup</i> <br>
<i class="fa fa-italic">**BYOG = Bring your own Games</i> <br>
<i class="fa fa-italic">***GFN = Geforce Now</i>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<p>
<strong>Benchmarks</strong> by <a href="https://benji.link">Benji</a>.<br>
If you have any problems or suggestions, please contact me on discord: Benji#1652 <br>
Email: [email protected]
</p>
</div>
</footer>
</body>
</html>