Skip to content

Instantly share code, notes, and snippets.

@kristianhald
Last active April 12, 2016 14:04
Show Gist options
  • Save kristianhald/534ed0540e8030060f1c49da04100e4a to your computer and use it in GitHub Desktop.
Save kristianhald/534ed0540e8030060f1c49da04100e4a to your computer and use it in GitHub Desktop.
Performance with the latest changeset being:
https://github.com/kristianhald/Polly/commit/294c8423e9bee2c5595767c667e7029493ea500d
Iterations per test: 100000
================
Empty delegates only
----------------
Total ticks : 0000010633
Per 100 iterations ticks : 0000000010
Per iteration ticks : 0000000000
================
Original CircuitBreaker wrapping empty delegates only
----------------
Total ticks : 0000078149
Per 100 iterations ticks : 0000000078
Per iteration ticks : 0000000000
================
Additional from Original CircuitBreaker wrapping empty
----------------
Total ticks : 0000067516
Per 100 iterations ticks : 0000000067
Per iteration ticks : 0000000000
================
10 good 10 bad, no CircuitBreaker
----------------
Total ticks : 0002381131
Per 100 iterations ticks : 0000002381
Per iteration ticks : 0000000023
================
Original CircuitBreaker wrapping 10 good, 10 bad
----------------
Total ticks : 0005694432
Per 100 iterations ticks : 0000005694
Per iteration ticks : 0000000056
================
Additional from breaker managing exceptions, and breaking every 10 exceptions
----------------
Total ticks : 0003313301
Per 100 iterations ticks : 0000003313
Per iteration ticks : 0000000033
================
TimesliceCircuitBreaker wrapping 10 good, 10 bad
----------------
Total ticks : 0005161323
Per 100 iterations ticks : 0000005161
Per iteration ticks : 0000000051
================
Additional from TimesliceCircuitBreaker managing exceptions, and breaking every 10 exceptions
----------------
Total ticks : 0002780192
Per 100 iterations ticks : 0000002780
Per iteration ticks : 0000000027
Circuit breaks during original breaker test: 5000
Circuit breaks during new breaker test : 5000
Comparability (1 is good): 1
@kristianhald
Copy link
Author

This is the performance for the advanced circuit breaker, where it always uses 10 windows for the entire duration.
The performance program was taken from: https://gist.github.com/reisenberger/92dc8d73b4df127b296ed8daee3ed93d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment