今天遇到乙個場景,乙個很大bean物件需要執行8條sql來組裝屬性,相互之間沒什麼依賴,所以我也考慮採用你「並行載入」的模式,和串型效能對比能節約一半的時間。
串型載入
blogqueryservice.findblogdetail cost16 ms
10blogqueryservice.findblogdetail cost13 ms
10blogqueryservice.findblogdetail cost13 ms
10blogqueryservice.findblogdetail cost16 ms
10blogqueryservice.findblogdetail cost13 ms
10blogqueryservice.findblogdetail cost15 ms
10blogqueryservice.findblogdetail cost14 ms
並行載入
blogqueryservice.findblogdetail cost6 ms
10blogqueryservice.findblogdetail cost7 ms
10blogqueryservice.findblogdetail cost6 ms
10blogqueryservice.findblogdetail cost8 ms
10blogqueryservice.findblogdetail cost7 ms
10blogqueryservice.findblogdetail cost6 ms
10blogqueryservice.findblogdetail cost7 ms
10blogqueryservice.findblogdetail cost6 ms
python效能對比
1 coding utf8 import datetime road nodes for i in range 5000000 road nodes i beg time datetime.datetime.now for key,val in road nodes.items pass end t...
SSD效能對比
ssd效能測試 順序寫 16k iops 85061.08 順序寫 8k iops 146250.93 順序寫 4k iops 239816.69 順序寫 2k iops 294540.87 順序寫 1k iops 347170.06 隨機寫 16k iops 21865.24 隨機寫 8k iop...
python效能對比
閱讀目錄 回到頂部 1 coding utf8 import datetime road nodes for i in range 5000000 road nodes i beg time datetime.datetime.now for key,val in road nodes.items ...