ws://echo.websocket.org
iterations = 50
dataSize = 512
mean [ms] = 105.20454545454545
deviation = 4.966156120337965
variance = 24.662706611570233
iterations = 50
dataSize = 512
mean [ms] = 105.625
deviation = 10.256349659276117
variance = 105.19270833333333
iterations = 50
dataSize = 4096
mean [ms] = 301.0833333333333
deviation = 35.27540455709426
variance = 1244.3541666666667
wss://echo.websocket.org
iterations = 25
dataSize = 512
mean [ms] = 108.86363636363636
deviation = 8.910134447233027
variance = 79.3904958677686
iterations = 50
dataSize = 4096
mean [ms] = 315.4
deviation = 67.32148882149636
variance = 4532.182857142859
iterations = 50
dataSize = 4096
mean [ms] = 319.7142857142857
deviation = 37.6946918798704
variance = 1420.8897959183673
Test it at Plunker.