Skip to content

Commit

Permalink
add performance testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alalag1 authored Dec 21, 2020
1 parent e6fb6ca commit 1796c70
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,42 @@ HttpServer.create()
.listen(8080);
```

## Performance

### Test cases

- We built a echo server by ESA HttpServer and used a http client to do the requests for RPS testing with different payload(16B, 128B, 512B, 1KB, 4KB, 10KB)
- Also we used netty to build a same echo server which is same with above for RPS testing (use the `HttpServerCodec`, `HttpObjectAggregator` handlers directly).

### Hardware Used

We used the following software for the testing:

- wrk4.1.0

- | | OS | CPU | Mem |
| ------ | ------------------------ | ---- | ---- |
| server | centos:6.9-1.2.5(docker) | 4 | 8 |
| client | centos:7.6-1.3.0(docker) | 16 | 3 |



### JVM Options

```
-server -Xms3072m -Xmx3072m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:+PrintTenuringDistribution -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc-${appName}-%t.log -XX:NumberOfGCLogFiles=20 -XX:GCLogFileSize=480M -XX:+UseGCLogFileRotation -XX:HeapDumpPath=.
```

### Server Options

- we set the value of IO threads to 8.

### RPS

| | 16B | 128B | 512B | 1KB | 4KB | 10KB |
| -------------- | --------- | --------- | --------- | --------- | -------- | -------- |
| Netty Origin | 133272.34 | 132818.53 | 132390.78 | 127366.28 | 85408.7 | 49798.84 |
| ESA HttpServer | 142063.99 | 139608.23 | 139646.04 | 140159.5 | 92767.53 | 53534.21 |



0 comments on commit 1796c70

Please sign in to comment.