-
Notifications
You must be signed in to change notification settings - Fork 448
Benchmark
louyuting edited this page Jun 1, 2020
·
10 revisions
CPU: OS: golang version:
测试单线程/多线程模式下接入 Sentinel 与不接入 Sentinel 吞吐量的对比。我们通过执行一些 CPU 密集型操作(小数组排序)来模拟不同 QPS 下的情况。测试例子参考:
| 数组长度 | Baseline(QPS) | With Sentinel(QPS) | 性能损耗 |
|---|---|---|---|
| 50 | |||
| 100 | |||
| 200 | |||
| 500 | |||
| 1000 | |||
| 2000 | |||
| 10000 |
可以看到在单机 QPS 非常大的时候(20W+),Sentinel 带来的性能损耗会比较大。这种情况业务逻辑本身的耗时非常小,而 Sentinel 一系列的统计、检查操作会消耗一定的时间。常见的场景有缓存读取操作。
-
文档
-
Documents (EN)