为了评估SSD升级对编译速度的影响,本文尝试对比更换前后,使用maven编译 https://github.com/apache/commons-lang 的速度。
#old ssd spec
Availability BytesPerSector Capabilities CapabilityDescriptions Caption CompressionMethod ConfigManagerErrorCode ConfigManagerUserConfig CreationClassName DefaultBlockSize Description DeviceID ErrorCleared ErrorDescription ErrorMethodology FirmwareRevision Index InstallDate InterfaceType LastErrorCode Manufacturer MaxBlockSize MaxMediaSize MediaLoaded MediaType MinBlockSize Model Name NeedsCleaning NumberOfMediaSupported Partitions PNPDeviceID PowerManagementCapabilities PowerManagementSupported SCSIBus SCSILogicalUnit SCSIPort SCSITargetId SectorsPerTrack SerialNumber Signature Size Status StatusInfo SystemCreationClassName SystemName TotalCylinders TotalHeads TotalSectors TotalTracks TracksPerCylinder
512 {3, 4} {"Random Access", "Supports Writing"} TOSHIBA THNSFJ256GCSU 0 FALSE Win32_DiskDrive Disk drive \\.\PHYSICALDRIVE0 JULA1102 0 IDE (Standard disk drives) TRUE Fixed hard disk media TOSHIBA THNSFJ256GCSU \\.\PHYSICALDRIVE0 5 SCSI\DISK&VEN_TOSHIBA&PROD_THNSFJ256GCSU\5&54D6A79&0&000000 0 0 0 0 63 75ES11IWT8LW 256052966400 OK Win32_ComputerSystem DESKTOP-574B9UF 31130 255 500103450 7938150 255
#new ssd spec
Availability BytesPerSector Capabilities CapabilityDescriptions Caption CompressionMethod ConfigManagerErrorCode ConfigManagerUserConfig CreationClassName DefaultBlockSize Description DeviceID ErrorCleared ErrorDescription ErrorMethodology FirmwareRevision Index InstallDate InterfaceType LastErrorCode Manufacturer MaxBlockSize MaxMediaSize MediaLoaded MediaType MinBlockSize Model Name NeedsCleaning NumberOfMediaSupported Partitions PNPDeviceID PowerManagementCapabilities PowerManagementSupported SCSIBus SCSILogicalUnit SCSIPort SCSITargetId SectorsPerTrack SerialNumber Signature Size Status StatusInfo SystemCreationClassName SystemName TotalCylinders TotalHeads TotalSectors TotalTracks TracksPerCylinder
512 {3, 4} {"Random Access", "Supports Writing"} ZHITAI PC005 Active 512GB 0 FALSE Win32_DiskDrive Disk drive \\.\PHYSICALDRIVE0 ZT00D212 0 SCSI (Standard disk drives) TRUE Fixed hard disk media ZHITAI PC005 Active 512GB \\.\PHYSICALDRIVE0 3 SCSI\DISK&VEN_NVME&PROD_ZHITAI_PC005_ACT\5&553C9ED&0&000000 0 0 3 0 63 A428_B700_8A16_0041. 512105932800 OK Win32_ComputerSystem DESKTOP-574B9UF 62260 255 1000206900 15876300 255
#old ssd bench
mvn -T 1C clean install -Dmaven.test.skip=true -Dmaven.compile.fork=true
[INFO] Total time: 29.422 s (Wall Clock)
[INFO] Finished at: 2021-07-03T12:22:40+08:00
mvn -T 1C clean install -Dmaven.test.skip=true
[INFO] Total time: 29.964 s (Wall Clock)
[INFO] Finished at: 2021-07-03T12:23:45+08:00
mvn clean install -Dmaven.test.skip=true
[INFO] Total time: 29.942 s
[INFO] Finished at: 2021-07-03T12:24:41+08:00
------------
new ssd bench
mvn -T 1C clean install -Dmaven.test.skip=true -Dmaven.compile.fork=true
[INFO] Total time: 27.185 s (Wall Clock)
[INFO] Finished at: 2021-07-03T15:01:25+08:00
mvn -T 1C clean install -Dmaven.test.skip=true
[INFO] Total time: 27.602 s (Wall Clock)
[INFO] Finished at: 2021-07-03T15:03:05+08:00
mvn clean install -Dmaven.test.skip=true
[INFO] Total time: 27.201 s
[INFO] Finished at: 2021-07-03T15:03:55+08:00
结论:有提升,不明显。