# http-server-benchmark **Repository Path**: dwing/http-server-benchmark ## Basic Information - **Project Name**: http-server-benchmark - **Description**: 几个高性能Java HTTP服务框架的性能测试 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-06-17 - **Last Updated**: 2023-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Java HTTP Server Benchmark ## Build - call build_copyjar.bat or build_copyjar.sh - call build_ant.bat or build_ant.sh ## Run Server - java -cp benchmark.jar -Dthread=2 BenchJane - java -cp benchmark.jar -Dthread=2 BenchSmart - java -cp benchmark.jar -Dthread=2 BenchFire - java -cp benchmark.jar -Dio.netty.eventLoopThreads=2 BenchNetty - java -cp benchmark.jar -Dthread=2 -Dsun.net.httpserver.nodelay=true BenchJdk ## Run Benchmark (Linux Only) - tool/wrk -c1 -t1 -d1s http://127.0.0.1:10000/plaintext - tool/wrk -c10 -t10 -d10s http://127.0.0.1:10000/plaintext - tool\bombardier.exe -c1 -d1s http://127.0.0.1:10000/plaintext - tool\bombardier.exe -c10 -d10s http://127.0.0.1:10000/plaintext ## Reference - https://github.com/dwing4g/jane - https://mvnrepository.com/artifact/io.netty/netty-codec-http - https://mvnrepository.com/artifact/io.netty/netty-transport-native-epoll - https://mvnrepository.com/artifact/org.smartboot.http/smart-http-server - https://mvnrepository.com/artifact/com.firenio/firenio-all