Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump conditions #219

Merged
merged 1 commit into from
Feb 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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