Test execution summary: total time: 10.6798s total number of events: 10000 total time taken by event execution: 10.6784 per-request statistics: min: 0.98ms avg: 1.07ms max: 2.37ms approx. 95 percentile: 1.11ms
Threads fairness: events (avg/stddev): 10000.0000/0.00 execution time (avg/stddev): 10.6784/0.00
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options: Number of threads: 1
Doing CPU performance benchmark
Threads started! Done.
Maximum prime number checked in CPU test: 10000
Test execution summary: total time: 8.0808s total number of events: 10000 total time taken by event execution: 8.0790 per-request statistics: min: 0.74ms avg: 0.81ms max: 4.04ms approx. 95 percentile: 0.90ms
Threads fairness: events (avg/stddev): 10000.0000/0.00 execution time (avg/stddev): 8.0790/0.00
@ryd994 起源引擎游戏服务器,没几个线程,主要运算都跑在一个线程里,很吃 CPU 。阿里云我都买单核 1G 的机子,再高的配置是用不了了(瘫 mc 虽然开了一坨线程,多核心性能也吃,不过生成世界地图貌似也是在一个线程里做的,装了大型 mod 之后在云服务器上开服生怕玩家刷地图。后来直接限制玩家活动范围并且开服前提前把范围内的地图刷好…不过最近没开 mc 服了