-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Add bencher for raw API #2109
Add bencher for raw API #2109
Conversation
|
||
// without conflict | ||
func batchRawPut(value []byte) { | ||
cli, err := tikv.NewRawKVClient([]string{"localhost:2379"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use strings.Split(*pd, ",")
instead. The rest LGTM.
5930e1b
to
1f3f860
Compare
LGTM |
PTAL @siddontang |
Help: "Counter of txns.", | ||
}, []string{"type"}) | ||
|
||
txnRolledbackCounter = prometheus.NewCounterVec( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this metric is not used
pdAddr = flag.String("pd", "localhost:2379", "pd address:localhost:2379") | ||
valueSize = flag.Int("V", 5, "value size in byte") | ||
|
||
txnCounter = prometheus.NewCounterVec( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seem you don't need use MetricVec, using Counter is enough.
Rest LGTM |
Removed all of the unnecessary metrics. It's much more clean now. |
LGTM |
No description provided.