Skip to content

Commit

Permalink
update GOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
wenweihu86 committed Oct 26, 2017
1 parent 510b0a1 commit a7c61ae
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 10 deletions.
28 changes: 27 additions & 1 deletion README.md
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>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package adhandler
import (
"net/http"
"strconv"
"adserver"
"github.com/wenweihu86/ad-server/adserver"
"encoding/base64"
"fmt"
"net/url"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package adhandler
import (
"net/http"
"strconv"
"adserver"
"github.com/wenweihu86/ad-server/adserver"
"encoding/base64"
"fmt"
"net/url"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package adhandler
import (
"net/http"
"strconv"
"adserver"
"github.com/wenweihu86/ad-server/adserver"
"encoding/base64"
"fmt"
"net/url"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"
"math/rand"
"adserver"
"github.com/wenweihu86/ad-server/adserver"
"strings"
"fmt"
"bytes"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"bufio"
"strconv"
"sort"
"utils"
"github.com/wenweihu86/ad-server/utils"
"time"
)

Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions build.sh
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
5 changes: 5 additions & 0 deletions glide.yaml
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
4 changes: 2 additions & 2 deletions src/main/main.go → main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"net/http"
"adserver"
"adhandler"
"github.com/wenweihu86/ad-server/adserver"
"github.com/wenweihu86/ad-server/adhandler"
"strconv"
"os"
)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a7c61ae

Please sign in to comment.