Yukun Wang, Lei Huang, Xiaoyou Liu, Tao Sun, Kai Lei
{"title":"WebSocket框架的性能比较与评估:Netty, Undertow, Vert。x、灰熊和杰蒂","authors":"Yukun Wang, Lei Huang, Xiaoyou Liu, Tao Sun, Kai Lei","doi":"10.1109/HOTICN.2018.8605989","DOIUrl":null,"url":null,"abstract":"The WebSocket protocol emerges to supersede existing bidirectional communication technologies that use HTTP as a transport layer. Currently, there are many network application frameworks that support the WebSocket protocol, but have different behaviors in performance of various aspects. To study and compare the performance of common WebSocket frameworks, say Netty, Undertow, Vert.x, Grizzly and Jetty, in this paper, we use concurrency test, flow test, connection test and resource occupancy test. The experiment results show that Netty and Undertow perform better in highly concurrent environments, while Grizzly is suitable for large flow conditions. The results also show that with persistent connection, Netty far outperforms other frameworks, and that Vert.x and Undertow can handle most requests within relatively shorter time. Besides, Netty and Vert.x occupy less CPU and memory resources in comparison with other frameworks.","PeriodicalId":243749,"journal":{"name":"2018 1st IEEE International Conference on Hot Information-Centric Networking (HotICN)","volume":"42 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":"{\"title\":\"Performance Comparison and Evaluation of WebSocket Frameworks: Netty, Undertow, Vert.x, Grizzly and Jetty\",\"authors\":\"Yukun Wang, Lei Huang, Xiaoyou Liu, Tao Sun, Kai Lei\",\"doi\":\"10.1109/HOTICN.2018.8605989\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The WebSocket protocol emerges to supersede existing bidirectional communication technologies that use HTTP as a transport layer. Currently, there are many network application frameworks that support the WebSocket protocol, but have different behaviors in performance of various aspects. To study and compare the performance of common WebSocket frameworks, say Netty, Undertow, Vert.x, Grizzly and Jetty, in this paper, we use concurrency test, flow test, connection test and resource occupancy test. The experiment results show that Netty and Undertow perform better in highly concurrent environments, while Grizzly is suitable for large flow conditions. The results also show that with persistent connection, Netty far outperforms other frameworks, and that Vert.x and Undertow can handle most requests within relatively shorter time. Besides, Netty and Vert.x occupy less CPU and memory resources in comparison with other frameworks.\",\"PeriodicalId\":243749,\"journal\":{\"name\":\"2018 1st IEEE International Conference on Hot Information-Centric Networking (HotICN)\",\"volume\":\"42 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"6\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2018 1st IEEE International Conference on Hot Information-Centric Networking (HotICN)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/HOTICN.2018.8605989\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 1st IEEE International Conference on Hot Information-Centric Networking (HotICN)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/HOTICN.2018.8605989","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Performance Comparison and Evaluation of WebSocket Frameworks: Netty, Undertow, Vert.x, Grizzly and Jetty
The WebSocket protocol emerges to supersede existing bidirectional communication technologies that use HTTP as a transport layer. Currently, there are many network application frameworks that support the WebSocket protocol, but have different behaviors in performance of various aspects. To study and compare the performance of common WebSocket frameworks, say Netty, Undertow, Vert.x, Grizzly and Jetty, in this paper, we use concurrency test, flow test, connection test and resource occupancy test. The experiment results show that Netty and Undertow perform better in highly concurrent environments, while Grizzly is suitable for large flow conditions. The results also show that with persistent connection, Netty far outperforms other frameworks, and that Vert.x and Undertow can handle most requests within relatively shorter time. Besides, Netty and Vert.x occupy less CPU and memory resources in comparison with other frameworks.