我想在7Zip应用程序中压缩不同大小的不同文件,以使用其不同的压缩方法
如何对时间、比率、内存使用和其他元素进行基准测试/记录?是否7zip有任何工具或任何命令来跟踪它。或者在压缩完成后给出这些元素的总结?
我用一些Batchfiles创建了这个Github存储库,我自己使用这些Batchfiles进行基准测试:7- zip基准测试是使用wtime工具进行的。
下面是一个用法的例子:
Command: wtime 7z a silesia.7z -mmt=off -mx15 silesia
TIMES in milliseconds
RunningTime................. 32104
UserTime.................... 31793
KernelTime.................. 249
MEMORY in KiB
PageFaultCount.............. 112
PeakWorkingSetSize.......... 34856
WorkingSetSize.............. 20
QuotaPeakPagedPoolUsage..... 85
QuotaPagedPoolUsage......... 0
QuotaPeakNonPagedPoolUsage.. 6
QuotaNonPagedPoolUsage...... 0
PagefileUsage............... 0
PeakPagefileUsage........... 36296
IO count
ReadOperationCount.......... 81
WriteOperationCount......... 34
OtherOperationCount......... 115
ReadTransferCount........... 211939037
WriteTransferCount.......... 58043652
OtherTransferCount.......... 3414
现在相同,但有4个线程:
Command: wtime 7z a silesia.7z -mmt=4 -mx15 silesia
TIMES in milliseconds
RunningTime................. 11668
UserTime.................... 43025
KernelTime.................. 202
MEMORY in KiB
PageFaultCount.............. 124
PeakWorkingSetSize.......... 133688
WorkingSetSize.............. 20
QuotaPeakPagedPoolUsage..... 85
QuotaPagedPoolUsage......... 0
QuotaPeakNonPagedPoolUsage.. 7
QuotaNonPagedPoolUsage...... 0
PagefileUsage............... 0
PeakPagefileUsage........... 184848
IO count
ReadOperationCount.......... 81
WriteOperationCount......... 34
OtherOperationCount......... 115
ReadTransferCount........... 211939037
WriteTransferCount.......... 58043652
OtherTransferCount.......... 3414
更改命令行,以适应不同的文件,文件类型等…