[Benchmark] 1.8.5版本 benchmark性能损耗严重 | performance not well in Sentinel 1.8.5 compared with 1.7.x
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
测试场景:在4C8G机器下跑com.alibaba.csp.sentinel.benchmark.SentinelEntryBenchmark的testSingleThreadDirectly、testSingleThreadSingleEntry
对比1.8.5和1.7.0,发现1.8.5性能损耗较严重
组长度 | 1.8.5 Baseline (QPS) | 1.8.5 With Sentinel (QPS) | 1.8.5 性能损耗 | 1.7.0 Baseline (QPS) | 1.7.0 With Sentinel (QPS) | 1.7.0 性能损耗 | 官方 Baseline (QPS) | 官方 With Sentinel (QPS) | 官方 性能损耗
-- | -- | -- | -- | -- | -- | -- | -- | -- | --
length=25 | 524112.631 | 277096.821 | 47.13% | 551245.089 | 364269.65 | 33.92% | 604589.916 | 401687.765 | 33.56%
length=50 | 205371.625 | 151465.386 | 26.25% | 213939.277 | 179810.663 | 15.95% | 221307.617 | 192407.832 | 13.06%
length=100 | 89676.053 | 78605.025 | 12.35% | 92361.784 | 85894.033 | 7.00% | 97673.228 | 91535.146 | 6.28%
length=200 | 40003.392 | 37519.764 | 6.20% | 41446.589 | 39917.156 | 3.69% | 43742.96 | 42711.129 | 2.36%
length=500 | 13942.424 | 13677.998 | 1.90% | 14563.868 | 14378.434 | 1.27% | 15332.924 | 15171.024 | 1.06%
length=1000 | 6392.317 | 6282.31 | 1.72% | 6624.78 | 6588.871 | 0.54% | 7012.848 | 6984.036 | 0.41%
Contributor guide
Research direction
Start with com.alibaba.csp.sentinel.benchmark.SentinelEntryBenchmark and run testSingleThreadDirectly and testSingleThreadSingleEntry under the reported 4C8G setup. Compare Sentinel 1.8.5 with 1.7.0 and determine which behavior causes the regression. Done means the performance loss is explained and an agreed improvement is verified against the benchmark.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100