总的来说,使用40核心的cpu进行了3亿数据的计算,得到如下日志,其中在1.9亿到2亿时候,对程序做了些许优化,耗时明显出现了下降。
起始值: 0,终止值 10000000,结果数量:664579,耗时:00:25:59.0746415
起始值: 10000000,终止值 20000000,结果数量:606028,耗时:01:11:26.7600596
起始值: 20000000,终止值 30000000,结果数量:587252,耗时:01:55:58.5344197
起始值: 30000000,终止值 40000000,结果数量:575795,耗时:02:39:03.1920206
起始值: 40000000,终止值 50000000,结果数量:567480,耗时:03:13:57.9477641
起始值: 50000000,终止值 60000000,结果数量:560981,耗时:03:52:05.4826005
起始值: 60000000,终止值 70000000,结果数量:555949,耗时:04:31:17.402543a1
起始值: 70000000,终止值 80000000,结果数量:551318,耗时:05:07:16.8677047
起始值: 80000000,终止值 90000000,结果数量:547572,耗时:05:49:23.2803691
起始值: 90000000,终止值100000000,结果数量:544501,耗时:06:25:57.1297789
起始值:100000000,终止值110000000,结果数量:541854,耗时:07:06:04.3969563
起始值:110000000,终止值120000000,结果数量:538339,耗时:07:43:56.5610011
起始值:120000000,终止值130000000,结果数量:536539,耗时:08:22:22.7186880
起始值:130000000,终止值140000000,结果数量:534012,耗时:09:04:59.8939086
起始值:140000000,终止值150000000,结果数量:532197,耗时:09:43:21.5880114
起始值:150000000,终止值160000000,结果数量:530062,耗时:10:16:21.2230680
起始值:160000000,终止值170000000,结果数量:528625,耗时:10:56:15.0332052
起始值:170000000,终止值180000000,结果数量:527302,耗时:11:34:14.5669777
起始值:180000000,终止值190000000,结果数量:525088,耗时:12:09:08.5426975
起始值:190000000,终止值200000000,结果数量:523464,耗时:12:49:15.7423148
起始值:200000000,终止值210000000,结果数量:522689,耗时:11:28:04.4710487
起始值:210000000,终止值220000000,结果数量:520914,耗时:11:59:17.9602193
起始值:220000000,终止值230000000,结果数量:520033,耗时:12:31:02.1685168
起始值:230000000,终止值240000000,结果数量:518971,耗时:13:02:58.3058033
起始值:240000000,终止值250000000,结果数量:517774,耗时:13:34:37.6023365
起始值:250000000,终止值260000000,结果数量:516542,耗时:14:05:59.9980064
起始值:260000000,终止值270000000,结果数量:515524,耗时:14:37:10.3794753
起始值:270000000,终止值280000000,结果数量:514685,耗时:15:08:59.3548451
起始值:280000000,终止值290000000,结果数量:513594,耗时:15:40:05.0317861
起始值:290000000,终止值300000000,结果数量:512662,耗时:16:11:16.8915711
原文地址:
https://www.opengps.cn/Blog/View.aspx?id=4048
文章的更新编辑依此链接为准。欢迎关注源站原创文章!