aboutsummaryrefslogtreecommitdiff
path: root/third_party/websockify/docs/latency_results.txt
blob: 454a590e84685ed3be2cc35c1eb8b601665f921a (plain)
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
This data is raw copy from the latency tester set to send a frame with
a little over 2000 KB of data every 10ms.

The number of packets sent and received is just a visual counter and
is just the total when I chose to stop the test (around 3000 or so
packets).

The latency measure are from the point the packet was sent to when it
was received back again in milliseconds. One notable data point
missing from this is how long it actually took for the client to send
3000 packets because sending large packets can put load on the browser
and it may be a lot longer than 10ms before the timer event to
send the next packet fires. So even with low latency numbers, the
actual send rate may be fairly low because sending the WebSockets
frames is impacting the performance of the browser in general.


------------------------------------------------------------

Native WebSockets implementations, 2000 byte payload, 10ms delay

Chrome 8.0.552 - native WebSockets
    Packets sent:                     2998
    Packets Received:                 2998
    Average Latency:                  1.84
    40 Frame Running Average Latency: 1.90
    Minimum Latency:                  1.00
    Maximum Latency:                  10.00

firefox 4.0b9 - WebSockets enabled
    Packets sent:                     3011
    Packets Received:                 3011
    Average Latency:                  6.45
    40 Frame Running Average Latency: 6.08
    Minimum Latency:                  5.00
    Maximum Latency:                  119.00

Opera 11 - WebSockets enabled
    Packets sent:                     3065
    Packets Received:                 3064
    Average Latency:                  9.56
    40 Frame Running Average Latency: 8.15
    Minimum Latency:                  4.00
    Maximum Latency:                  53.00

------------------------------------------------------------

New web-socket-js (20f837425d4), 2000 byte payload, 10ms delay

firefox 4.0b9 - no WebSockets
    Packets sent:                     3088
    Packets Received:                 3087
    Average Latency:                  16.71
    40 Frame Running Average Latency: 16.80
    Minimum Latency:                  7.00
    Maximum Latency:                  75.00

    - First 1000 sent in 13 seconds 
    - Second 1000 sent in 12 seconds
    - Third 1000 sent in 12 seconds

firefox 3.6.10 - no WebSockets
    Packets sent:                     3100
    Packets Received:                 3099
    Average Latency:                  17.32
    40 Frame Running Average Latency: 16.73
    Minimum Latency:                  6.00
    Maximum Latency:                  72.00

Opera 11 - no WebSockets
    Packets sent:                     3007
    Packets Received:                 3007
    Average Latency:                  465.91
    40 Frame Running Average Latency: 147.95
    Minimum Latency:                  12.00
    Maximum Latency:                  9143.00

    - average starts at around 28ms
    - time for each 500 packets: 13s, 16s, 25s, 37s, 50s, 72s
    - also start seeing sent, receive lags around 1200 packets

---------------------------------------------------------------

Old web-socket-js (9e7663771), 2000 byte payload, 10ms delay

firefox 4.0b9 - no WebSockets
    Packets sent:                     3024
    Packets Received:                 3020
    Average Latency:                  80.59
    40 Frame Running Average Latency: 60.15
    Minimum Latency:                  10.00
    Maximm Latency:                   348.00


firefox 3.6.10 - no WebSockets
    Packets sent:                     2777
    Packets Received:                 2775
    Average Latency:                  34.89
    40 Frame Running Average Latency: 24.50
    Minimum Latency:                  10.00
    Maximum Latency:                  208.00


Opera 11 - no Websockets
    Packets sent:                     3012
    Packets Received:                 3011
    Average Latency:                  380.87
    40 Frame Running Average Latency: 341.90
    Minimum Latency:                  28.00
    Maximum Latency:                  2175.00

    - average starts at around 290ms
    - time for each 1000 packets: 23s, 38s, 65s