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 evaluation benchmarks #185

Merged
merged 1 commit into from
Nov 23, 2019
Merged

Add evaluation benchmarks #185

merged 1 commit into from
Nov 23, 2019

Conversation

markphelps
Copy link
Collaborator

➜ make bench
>> running benchmarks
go test -v -bench=. ./... -run=XXX

goos: darwin
goarch: amd64
pkg: github.com/markphelps/flipt/storage
BenchmarkEvaluate_SingleVariantDistribution/match_string_value-4                    4494            242572 ns/op           24074 B/op        486 allocs/op
BenchmarkEvaluate_SingleVariantDistribution/no_match_string_value-4                 6280            187252 ns/op           19620 B/op        390 allocs/op
BenchmarkEvaluate_SingleVariantDistribution/no_match_just_bool_value-4              6550            202475 ns/op           18034 B/op        381 allocs/op
BenchmarkEvaluate_SingleVariantDistribution/no_match_just_string_value-4            6272            181950 ns/op           17939 B/op        381 allocs/op
BenchmarkEvaluate_RolloutDistribution/match_string_value_-_variant_1-4              5026            232469 ns/op           22742 B/op        478 allocs/op
BenchmarkEvaluate_RolloutDistribution/match_string_value_-_variant_2-4              5065            232568 ns/op           22808 B/op        478 allocs/op
BenchmarkEvaluate_RolloutDistribution/no_match_string_value-4                       6913            171050 ns/op           17217 B/op        365 allocs/op
BenchmarkEvaluate_NoConstraints/match_no_value_-_variant_1-4                        5432            218564 ns/op           21207 B/op        456 allocs/op
BenchmarkEvaluate_NoConstraints/match_no_value_-_variant_2-4                        4710            221971 ns/op           21206 B/op        456 allocs/op
BenchmarkEvaluate_NoConstraints/match_string_value_-_variant_2-4                    5379            224047 ns/op           22427 B/op        468 allocs/op

@markphelps markphelps merged commit 0b111ec into master Nov 23, 2019
@markphelps markphelps deleted the add-benchmarks branch November 23, 2019 21:07
markphelps added a commit that referenced this pull request Nov 23, 2019
* master:
  Add evaluation benchmarks (#185)
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.

1 participant