Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xeynyty committed Jan 14, 2023
1 parent 78bc9a7 commit 7ff7421
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
# HTTP(s) bench

## Application
### **Go-bench** is a simple cross-platform HTTP(s) server benchmark application written in Go using the [fasthttp](https://github.com/valyala/fasthttp?ysclid=lcwgg8cpz3782494501) library.

./bench -url localhost:8080 -rps 100
## Application use

- URL set endpoint
- RPS set count of requests in one second (max is 65535)

# How to compile application?

Clone repo
./file_name -url localhost:8080 -rps 100

git clone https://github.com/xeynyty/go-bench

Compile (GO >= 1.19 recommended)

go build -o bench main.go
- URL set endpoint
- RPS set count of requests in one second (max is 65535)
1 change: 0 additions & 1 deletion pkg/bench/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func (b *Bench) request() {
default:
sendTime := time.Now()
b.reqCount += 1
//_, err := http.Get(b.url)
_, _, err := fasthttp.Get(nil, b.url)
if err != nil {
b.errCount += 1
Expand Down

0 comments on commit 7ff7421

Please sign in to comment.