forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (55 loc) · 2.17 KB
/
index.html
File metadata and controls
63 lines (55 loc) · 2.17 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
<!doctype html>
<html>
<head>
<!-- Hey, let's be friends! twitter.com/pubnub -->
<title>PubNub Performance Meter</title>
<meta http-equiv=content-type content=text/html;charset=utf-8>
<meta name=viewport content="width=640, user-scalable=no">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<link rel=apple-touch-icon href=icon.png>
<link rel=apple-touch-startup-image href=startup.png>
<link href=performance.css rel=stylesheet>
<link href='http://fonts.googleapis.com/css?family=Exo:100,800'
rel='stylesheet'>
</head>
<body>
<div id=performance>
<div id=performance-meter></div>
<div id=performance-arrow></div>
<div id=performance-meter-bezel></div>
<div id=performance-meter-number>0</div>
<div id=performance-meter-rps>ms</div>
</div>
<div id=performance-sent></div>
<div class=performance-title>Delivery Medians in Milliseconds</div>
<div id=performance-medians></div>
<canvas id=performance-graph width=640 height=50></canvas>
<!-- PUBNUB MEDIAN MPS TEMPLATE -->
<script id=median-template type=template>
<div><table><tr>
<td>{1}ms</td><td>{5}</td>
<td>{10}</td><td>{20}</td><td>{25}</td>
<td>{30}</td><td>{40}</td><td>{45}</td>
</tr><tr class=fastest>
<td class=strong>Fastest</td><td class=strong>5%</td>
<td class=strong>10%</td><td class=strong>20%</td><td class=strong>25%</td>
<td class=strong>30%</td><td class=strong>40%</td><td class=strong>45%</td>
</tr><tr>
<td>{50}ms</td><td>{66}</td><td>{75}</td>
<td>{80}</td><td>{90}</td><td>{95}</td><td>{98}</td><td>{100}</td>
</tr><tr class=slowest>
<td class=strong>50%</td><td class=strong>66%</td><td class=strong>75%</td>
<td class=strong>80%</td><td class=strong>90%</td><td class=strong>95%</td>
<td class=strong>98%</td><td class=strong>Slowest</td>
</tr></table></div>
</script>
<script id=messages-sent-template type=template>
<div> {sent} <span class=strong> Performance Samples Recorded</span></div>
</script>
<div id=pubnub></div>
<script src=../../web/pubnub.min.js></script>
<script src=animate.js></script>
<script src=performance.js></script>
</body>
</html>