-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 Fix: Memory leak removal in the idempotency middleware (#3263)
* 🩹 Fix: Add key removal in MemoryLock * Fixed concurrent deletion. * Fix: idempotency middleware's MemoryLock * Add MemoryLock benchmarks. * Updated benchmarks: Add returning error handling * Renamed benchmark: RepeatedKeys --------- Co-authored-by: Juan Calderon-Perez <[email protected]>
- Loading branch information
Showing
2 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
775e0a7
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.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.50
.Benchmark_Ctx_AcceptsEncodings
268.1
ns/op 0 B/op 0 allocs/op170.5
ns/op 0 B/op 0 allocs/op1.57
Benchmark_Ctx_AcceptsEncodings - ns/op
268.1
ns/op170.5
ns/op1.57
Benchmark_Ctx_AcceptsLanguages
384.5
ns/op 0 B/op 0 allocs/op249.2
ns/op 0 B/op 0 allocs/op1.54
Benchmark_Ctx_AcceptsLanguages - ns/op
384.5
ns/op249.2
ns/op1.54
Benchmark_Utils_GetOffer/1_parameter
231.1
ns/op 0 B/op 0 allocs/op131.7
ns/op 0 B/op 0 allocs/op1.75
Benchmark_Utils_GetOffer/1_parameter - ns/op
231.1
ns/op131.7
ns/op1.75
Benchmark_Middleware_BasicAuth - B/op
80
B/op48
B/op1.67
Benchmark_Middleware_BasicAuth - allocs/op
5
allocs/op3
allocs/op1.67
Benchmark_Middleware_BasicAuth_Upper - B/op
80
B/op48
B/op1.67
Benchmark_Middleware_BasicAuth_Upper - allocs/op
5
allocs/op3
allocs/op1.67
Benchmark_CORS_NewHandler - B/op
16
B/op0
B/op+∞
Benchmark_CORS_NewHandler - allocs/op
1
allocs/op0
allocs/op+∞
Benchmark_CORS_NewHandlerSingleOrigin - B/op
16
B/op0
B/op+∞
Benchmark_CORS_NewHandlerSingleOrigin - allocs/op
1
allocs/op0
allocs/op+∞
Benchmark_CORS_NewHandlerPreflight - B/op
104
B/op0
B/op+∞
Benchmark_CORS_NewHandlerPreflight - allocs/op
5
allocs/op0
allocs/op+∞
Benchmark_CORS_NewHandlerPreflightSingleOrigin - B/op
104
B/op0
B/op+∞
Benchmark_CORS_NewHandlerPreflightSingleOrigin - allocs/op
5
allocs/op0
allocs/op+∞
Benchmark_CORS_NewHandlerPreflightWildcard - B/op
104
B/op0
B/op+∞
Benchmark_CORS_NewHandlerPreflightWildcard - allocs/op
5
allocs/op0
allocs/op+∞
Benchmark_Middleware_CSRF_GenerateToken - B/op
519
B/op332
B/op1.56
Benchmark_Middleware_CSRF_GenerateToken - allocs/op
10
allocs/op6
allocs/op1.67
This comment was automatically generated by workflow using github-action-benchmark.