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

Add bencher for raw API #2109

Merged
merged 4 commits into from
Nov 29, 2016
Merged

Add bencher for raw API #2109

merged 4 commits into from
Nov 29, 2016

Conversation

ngaut
Copy link
Member

@ngaut ngaut commented Nov 28, 2016

No description provided.


// without conflict
func batchRawPut(value []byte) {
cli, err := tikv.NewRawKVClient([]string{"localhost:2379"})
Copy link
Contributor

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.

@disksing
Copy link
Contributor

LGTM

@ngaut
Copy link
Member Author

ngaut commented Nov 28, 2016

PTAL @siddontang

Help: "Counter of txns.",
}, []string{"type"})

txnRolledbackCounter = prometheus.NewCounterVec(
Copy link
Member

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(
Copy link
Member

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.

@siddontang
Copy link
Member

Rest LGTM

@ngaut
Copy link
Member Author

ngaut commented Nov 28, 2016

Removed all of the unnecessary metrics. It's much more clean now.
PTAL

@siddontang
Copy link
Member

LGTM

@ngaut ngaut merged commit 24fb8c9 into master Nov 29, 2016
@ngaut ngaut deleted the ngaut/bench-raw branch November 29, 2016 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants