CodingHanYa / workspace

workspace是基于C++11的轻量级异步执行框架,支持:通用任务异步并发执行、优先级任务调度、自适应动态线程池、高效静态线程池、异常处理机制等。
Apache License 2.0
1.03k stars 152 forks source link

执行更精确的性能测试 #29

Closed firma2021 closed 1 year ago

firma2021 commented 1 year ago

OS: Manjaro Linux x86_64 CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.200GHz

relative ms/op op/s err% ins/op cyc/op IPC bra/op miss% total 每次打包10个空任务,提交给workbranch 执行
100.0% 1.21 829.37 1.6% 717,292.42 653,770.48 1.097 134,984.88 1.5% 7.07 线程总数: 1, 任务总数: 10000
103.3% 1.17 856.43 0.6% 715,850.70 644,577.40 1.111 134,515.46 1.5% 7.04 线程总数: 2, 任务总数: 10000
83.1% 1.45 689.43 1.1% 721,422.23 728,875.24 0.990 135,713.77 1.8% 8.61 线程总数: 3, 任务总数: 10000
78.1% 1.54 647.33 0.3% 723,358.75 783,548.33 0.923 136,260.49 1.9% 9.28 线程总数: 4, 任务总数: 10000
72.5% 1.66 601.62 0.5% 725,246.09 822,042.51 0.882 136,761.67 2.1% 10.02 线程总数: 5, 任务总数: 10000
69.2% 1.74 573.97 0.6% 726,939.55 890,339.22 0.816 137,267.50 2.2% 10.61 线程总数: 6, 任务总数: 10000
64.1% 1.88 531.79 1.2% 728,377.38 930,945.62 0.782 137,703.03 2.3% 11.23 线程总数: 7, 任务总数: 10000
57.5% 2.10 476.67 1.3% 730,076.71 968,054.08 0.754 138,169.92 2.5% 12.57 线程总数: 8, 任务总数: 10000
relative ms/op op/s err% ins/op cyc/op IPC bra/op miss% total 每次打包10个空任务,提交给workspace执行, workspace管理的每个workbranch中都拥有1条线程
100.0% 3.00 332.87 2.5% 1,752,233.85 1,470,542.04 1.192 343,646.50 1.5% 17.95 线程总数: 1, 任务总数: 10000
116.5% 2.58 387.92 3.2% 1,738,641.83 1,508,213.61 1.153 341,589.50 1.3% 15.51 线程总数: 2, 任务总数: 10000
567.4% 0.53 1,888.73 1.5% 1,722,436.58 1,250,273.84 1.378 336,149.86 0.5% 3.27 线程总数: 3, 任务总数: 10000
536.8% 0.56 1,786.80 0.9% 1,725,109.90 1,282,953.16 1.345 336,860.43 0.5% 3.38 线程总数: 4, 任务总数: 10000
543.3% 0.55 1,808.58 1.4% 1,723,083.06 1,290,780.98 1.335 336,358.29 0.5% 3.29 线程总数: 5, 任务总数: 10000
536.6% 0.56 1,786.14 0.4% 1,728,011.68 1,257,587.37 1.374 337,549.85 0.5% 3.39 线程总数: 6, 任务总数: 10000
526.5% 0.57 1,752.72 0.3% 1,729,594.00 1,272,318.39 1.359 337,977.36 0.5% 3.42 线程总数: 7, 任务总数: 10000
525.2% 0.57 1,748.22 2.3% 1,726,248.60 1,248,107.30 1.383 337,144.97 0.4% 3.43 线程总数: 8, 任务总数: 10000
relative ms/op op/s err% ins/op cyc/op IPC bra/op miss% total 每次打包10个空任务,提交给workspace执行, workspace管理的每个workbranch中都拥有2条线程
100.0% 2.34 426.82 1.6% 1,759,513.34 1,458,119.69 1.207 345,088.31 1.3% 13.82 线程总数: 2, 任务总数: 10000
100.0% 2.34 426.75 0.9% 1,751,788.92 1,605,885.35 1.091 344,346.10 1.4% 13.93 线程总数: 4, 任务总数: 10000
416.6% 0.56 1,778.29 0.8% 1,729,043.19 1,331,945.53 1.298 337,752.33 0.6% 3.36 线程总数: 6, 任务总数: 10000
447.6% 0.52 1,910.43 0.8% 1,741,279.58 1,340,820.49 1.299 340,914.80 0.6% 3.18 线程总数: 8, 任务总数: 10000
438.6% 0.53 1,872.18 2.7% 1,741,977.26 1,340,660.00 1.299 341,382.68 0.6% 3.27 线程总数: 10, 任务总数: 10000
330.2% 0.71 1,409.45 3.0% 1,741,090.34 1,747,199.66 0.997 341,620.74 0.7% 4.22 线程总数: 12, 任务总数: 10000
CodingHanYa commented 1 year ago

你是我滴神