Generate the files
dd if=/dev/zero of=1GB count=1024 bs=1048576
dd if=/dev/zero of=2GB count=2048 bs=1048576
sudo chrt -f 99 /usr/bin/time --verbose 7z a 1GB
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (806EA),ASM,AES-NI)
Scanning the drive:
2 files, 3221225472 bytes (3072 MiB)
Creating archive: 1GB.7z
Items to compress: 2
Files read from disk: 2
Archive size: 473210 bytes (463 KiB)
Everything is Ok
Command being timed: "7z a 1GB"
User time (seconds): 230.17
System time (seconds): 5.77
Percent of CPU this job got: 496%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:47.55
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 939812
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 1
Minor (reclaiming a frame) page faults: 234517
Voluntary context switches: 1000195
Involuntary context switches: 248
Swaps: 0
File system inputs: 4194328
File system outputs: 968
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
sudo chrt -f 99 /usr/bin/time --verbose 7z a 1GB -mx0
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (806EA),ASM,AES-NI)
Open archive: 1GB.7z
--
Path = 1GB.7z
Type = 7z
Physical Size = 473210
Headers Size = 168
Method = LZMA2:24
Solid = -
Blocks = 2
Scanning the drive:
3 files, 3221698682 bytes (3073 MiB)
Updating archive: 1GB.7z
Items to compress: 3
Files read from disk: 3
Archive size: 3221698870 bytes (3073 MiB)
Everything is Ok
Command being timed: "7z a 1GB -mx0"
User time (seconds): 1.47
System time (seconds): 2.46
Percent of CPU this job got: 66%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:05.96
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 5592
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 1
Minor (reclaiming a frame) page faults: 391
Voluntary context switches: 14892
Involuntary context switches: 395
Swaps: 0
File system inputs: 4194568
File system outputs: 6292400
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0