Skip to content

Commit

Permalink
Merge pull request #219 from checkr/zz/bump-conditions
Browse files Browse the repository at this point in the history
Bump conditions
  • Loading branch information
zhouzhuojie authored Feb 13, 2019
2 parents 4be2291 + 3bed3b0 commit afa306c
Show file tree
Hide file tree
Showing 12 changed files with 285 additions and 1,183 deletions.
267 changes: 240 additions & 27 deletions Gopkg.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
name = "github.com/yadvendar/negroni-newrelic-go-agent"

[[constraint]]
branch = "master"
name = "github.com/zhouzhuojie/conditions"
version = "0.2.2"

[[constraint]]
branch = "master"
Expand All @@ -157,11 +157,11 @@
name = "github.com/avast/retry-go"
version = "2.2.0"

[[constraint]]
name = "cloud.google.com/go"
version = "0.35.1"


[prune]
go-tests = true
unused-packages = true

[[constraint]]
name = "cloud.google.com/go"
version = "0.35.1"
9 changes: 5 additions & 4 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```
go get -u github.com/tsenart/vegeta
vegeta attack -targets ./postEvaluation.target -body ./postEvaluation.json -output ./postEvaluation.output -workers 1000
vegeta attack -targets ./postEvaluation.target -body ./postEvaluation.json -output ./postEvaluation.output -workers 100 -rate 2000
```

```
Expand All @@ -16,10 +16,11 @@ Status Codes [code:count] 200:56521
Error Set:
```

## Getting the flamegraph from go-torch
## Getting the flamegraph from go tool

```
go-torch -u http://localhost:18000/
curl http://localhost:18000/debug/pprof/profile -o /tmp/flagr_profile
go tool pprof -http=":8081" /tmp/flagr_profile
```

![torch.svg](./torch.svg)
![torch.png](./torch.png)
5 changes: 2 additions & 3 deletions benchmark/postEvaluation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"entityID": "123",
"entityType": "report",
"entityContext": {
"dl_state": "CA"
"state": "CA"
},
"flagID": 2,
"enableDebug": true
"flagID": 1
}
Binary file modified benchmark/postEvaluation.output
Binary file not shown.
2 changes: 1 addition & 1 deletion benchmark/postEvaluation.target
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
POST http://localhost:18000/api/evaluation
POST http://localhost:18000/api/v1/evaluation
Content-Type: application/json
Binary file added benchmark/torch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit afa306c

Please sign in to comment.