Closed nunogois closed 1 year ago
We tested this together and I love it! Would be good to add the how to run this in the README.md as well.
Added a new mention to the benchmark in the README, let me know what you think. Addressed in https://github.com/Unleash/unleash-client-go/pull/138/commits/b9dc62449ffb3413ba9468646a112064e58c2a0c
After discussing with @gardleopard we were interested in a naïve and simple benchmark for feature toggle evaluation in a language like Go.
This can be ran with a command like:
go test -run=^$ -bench=BenchmarkFeatureToggleEvaluation -benchtime=10s
Here's an example of how the output could look like:
The
-8
inBenchmarkFeatureToggleEvaluation-8
stands for 8 cores (all the cores in my M1 CPU). Clarification: This version of the code is actually only using 1 core, no parallelism.I couldn't find a way of initializing our Unleash client without a listener, so I added a simple
NoOpListener
.