交流及求教: 有關 Notebook's performance (Thinkpad)
本帖最後由 wongty 於 2020-4-9 21:58 編輯
最近有個 Project 要用 Powershell process a big XML file (~300M), the XML structure is simple, 就係好多 records (~400K records). Basically it just converts the XML to CSV file, simple text processing. 我自己用開 Thinkpad W520 (i7 2860QM), 寫完個script竟然要行成個鐘. 再breakdown the script, found that it used 25 min to read the XML file to Powershell internal variable ([XML]$xml = Get-Content ' .\input.XML'), and then use ~30 min to write it to CSV file line by line. 咁我心唸部 W520 成十年前出, 係咪時候退休呢?
於是搵咗部 Dell M4800 (i7 4810MQ) 嚟試, 唸住如果快好多, 就轉戶過去, 但結果係 -- 行咗 1 hr 17 min, reading XML is slower (~45min) & processing data is level (~30 min). 有 D 失望.
於是再試吓部 X395 (Ryzen 3500u) that I just bought for my family. I had lot of expectation before I run the script, and thought I would buy T495 (做緊特價 $52xx) for myself if the result is satisfactory. Unfortunately the result is astonishing -- It took over 3 hours to complete the script!
All 3 notebooks are 16G & running SSD, and they are all 4-Core 8-Thread. In my W520 & M4800, when reading XML file, CPU ~25%, yet 16G is marginally enough as it ate up all memory when it read the XML with (disk activities was low, mostly 0-15%). Processing record was not heavily loaded (CPU ~20%, RAM ~40%, Disk ~15%). In X395, more disk activities is found (15G RAM usable, 1G is shared by GPU).
我知呢度好多高手, 究竟有冇D tuning 可以試 (esp X395 and M4800)? , 定係其實D新CPU嘅processing power 真係冇點進步呢?
補充: all notebooks are Win 10, and power plugged during the tests. |
|
|