-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Milestone
Description
Allow me to copy the contents of an issue posted under PowerShell/PowerShell.
Expand-Archive performance is 6X away from 7zip. In it's current state I would say it barely passes automation perf level. In an interactive shell, one would rarely resort to it if there is an alternative that is 6X faster.
Steps to reproduce
Download some large archive (qt-everywhere-opensource-src-5.9.0-alpha.zip was my use case) and unzip.
Expected behavior
Something like this:
PS C:\Users\Matty\Downloads> Measure-Command \
>> { C:\Kellekek\7-Zip\7z.exe x .\qt-everywhere-opensource-src-5.9.0-alpha.zip }
Days : 0
Hours : 0
Minutes : 37
Seconds : 57
Milliseconds : 938
Ticks : 22779388628
TotalDays : 0,0263650331342593
TotalHours : 0,632760795222222
TotalMinutes : 37,9656477133333
TotalSeconds : 2277,9388628
TotalMilliseconds : 2277938,8628
Actual behavior
PS C:\Users\Matty\Downloads> Measure-Command \
>> { Expand-Archive -Path .\qt-everywhere-opensource-src-5.9.0-alpha.zip -DestinationPath C:\Kellekek\Qt }
Days : 0
Hours : 3
Minutes : 44
Seconds : 34
Milliseconds : 218
Ticks : 134742180246
TotalDays : 0,155951597506944
TotalHours : 3,74283834016667
TotalMinutes : 224,57030041
TotalSeconds : 13474,2180246
TotalMilliseconds : 13474218,0246
Environment data
PS C:\Users\Matty\Downloads> $PSVersionTable
Name Value
---- -----
CLRVersion
WSManStackVersion 3.0
PSVersion 6.0.0-alpha
PSEdition Core
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
GitCommitId v6.0.0-alpha.17
BuildVersion 3.0.0.0
PS C:\Users\Matty\Downloads> C:\Kellekek\7-Zip\7z.exe
7-Zip [64] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31
...
PS C:\Users\Matty\Downloads> (Get-ComputerInfo).CsProcessors
Name : AMD FX-7500 Radeon R7, 10 Compute Cores 4C+6G
Manufacturer : AuthenticAMD
Description : AMD64 Family 21 Model 48 Stepping 1
Architecture : x64
AddressWidth : 64
DataWidth : 64
MaxClockSpeed : 2100
CurrentClockSpeed : 2100
NumberOfCores : 4
NumberOfLogicalProcessors : 4
ProcessorID : 178BFBFF00630F01
SocketDesignation : Socket FS1r2
ProcessorType : CentralProcessor
Role : CPU
Status : OK
CpuStatus : Enabled
Availability : RunningOrFullPower
hharsunen, Klusting, yumetodo, daniel-dorroh, al-cheb and 32 more