Kitura / Kitura-WebSocket

WebSocket support for Kitura
Apache License 2.0
68 stars 29 forks source link

Performance investigation of websocket-nio with Swift 5 on macOS #78

Closed pushkarnk closed 5 years ago

pushkarnk commented 5 years ago

The autobahn sample app simply doesn't build with SwiftPM in Swift 5. Resolution just takes forever.

pushkarnk commented 5 years ago

These are averages from 10 autobahn runs:

Test# 4.2/macOS 5.0/macOS Gain with 5.0
9.1.1 3.5 3.6 -2.7778
9.1.2 10.9 10.8 0.92593
9.1.3 33.7 33.3 1.2012
9.1.4 131.5 127.9 2.8147
9.1.5 258.9 256 1.13281
9.1.6 518.5 527.9 -1.7806
9.2.1 2.4 2.4 0
9.2.2 8.1 7.5 8
9.2.3 30.2 26.6 13.5338
9.2.4 110.9 97.2 14.0947
9.2.5 198.6 198.8 -0.1006
9.2.6 440.6 417.3 5.58351
9.3.1 946.3 928.9 1.87318
9.3.2 295.9 313.6 -5.6441
9.3.3 147.4 147.7 -0.2031
9.3.4 111.6 108.2 3.14233
9.3.5 93.7 94.4 -0.7415
9.3.6 80.6 90.2 -10.643
9.3.7 86.6 96.1 -9.8855
9.3.8 91.6 99.6 -8.0321
9.3.9 84.3 92.5 -8.8649
9.4.1 923.9 901.9 2.43929
9.4.2 291.6 260.1 12.1107
9.4.3 96 96.7 -0.7239
9.4.4 79.8 52.3 52.5813
9.4.5 50.7 42.6 19.0141
9.4.6 42.4 39.9 6.26566
9.4.7 50.6 42.7 18.5012
9.4.8 52.2 51.9 0.57803
9.4.9 43.7 43.1 1.39211
9.5.1 1759.3 1607.4 9.45004
9.5.2 959.7 834.8 14.9617
9.5.3 484.8 448.5 8.09365
9.5.4 273.2 231.7 17.9111
9.5.5 138.8 130.8 6.11621
9.5.6 82 79.6 3.01508
9.6.1 2148 1680.4 27.8267
9.6.2 1262.7 869 45.3049
9.6.3 619.8 427.8 44.8808
9.6.4 309.1 220.3 40.3087
9.6.5 177.3 126.3 40.38
9.6.6 108 74.5 44.9664
9.7.1 312 225 38.6667
9.7.2 331.2 242.2 36.7465
9.7.3 362.5 244.6 48.2011
9.7.4 358.9 278.7 28.7765
9.7.5 470.1 345.2 36.1819
9.7.6 822.1 619.4 32.7252
9.8.1 304 218.2 39.3217
9.8.2 288 224 28.5714
9.8.3 353.6 226.2 56.3218
9.8.4 328.5 251 30.8765
9.8.5 397.5 327.4 21.4111
9.8.6 600.7 549.7 9.27779
pushkarnk commented 5 years ago

Clearly, the gains with Swift 5.0 seem surpass some marginal losses. I propose we close this issue.