SSD 速度对编译的影响

为了评估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

结论:有提升,不明显。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值