-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
510b0a1
commit a7c61ae
Showing
16 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
# ad-server | ||
advertising server | ||
|
||
# the third lib | ||
- github.com/ibbd-dev/go-async-log | ||
- github.com/satori/go.uuid | ||
- github.com/spf13/viper | ||
# benchmark | ||
## Hardware | ||
CPU: 12 cores<br> | ||
Memory: 64G | ||
## Results: | ||
Used Connections: 1000<br> | ||
Used Threads: 12<br> | ||
Total number of calls: 1000000<br> | ||
|
||
===========================TIMINGS===========================<br> | ||
Total time passed: 46.59s<br> | ||
Avg time per request: 44.09ms<br> | ||
Requests per second: 21464.89<br> | ||
Median time per request: 42.80ms<br> | ||
99th percentile time: 63.66ms<br> | ||
Slowest time for request: 3002.00ms<br> | ||
|
||
=============================DATA=============================<br> | ||
Total response body sizes: 1202000594<br> | ||
Avg response body per request: 1202.00ms<br> | ||
Transfer rate per second: 25800812.03 Byte/s (25.80 MByte/s)<br> | ||
==========================RESPONSES==========================<br> | ||
20X Responses: 999998 (100.00%)<br> | ||
30X Responses: 0 (0.00%)<br> | ||
40X Responses: 0 (0.00%)<br> | ||
50X Responses: 0 (0.00%)<br> | ||
Errors: 2 (0.00%)<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ import ( | |
"bufio" | ||
"strconv" | ||
"sort" | ||
"utils" | ||
"github.com/wenweihu86/ad-server/utils" | ||
"time" | ||
) | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
export GOPATH=${GOPATH}:`pwd` | ||
echo $GOPATH | ||
glide install | ||
go build -o ad_server src/main/main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package: github.com/wenweihu86/ad-server | ||
import: | ||
- package: github.com/ibbd-dev/go-async-log | ||
- package: github.com/satori/go.uuid | ||
- package: github.com/spf13/viper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.