163 Commits
Author SHA1 Message Date
Timofey Solomko f72ed96e48 Prepare for 4.8.1 release 2022-05-13 21:15:21 +03:00
Timofey Solomko 86090a4b67 Prepare for 4.8.0 release 2022-01-23 18:56:51 +03:00
Timofey Solomko 4ccb5e1de8 [docs] Small fixes to the documentation of TarContainer.create(from:force:) 2022-01-22 13:39:40 +03:00
Timofey Solomko f9f5e9e613 Prepare for the test release of 4.8.0 2022-01-20 22:20:04 +03:00
Timofey Solomko 3ab61e88bb [swcomp] Adjust requirements for compression ratio computation
The type of the input is no longer checked (since it is no longer need due to the addition of benchmarkInputSize); it is now correctly checked that the size of the output, not input, is non-zero.
2022-01-13 22:45:03 +03:00
Timofey Solomko 8aa671a4e0 [swcomp] The result of BenchmarkCommand.benchmark is now discardable 2022-01-13 22:43:14 +03:00
Timofey Solomko e3ada549fd [swcomp] Replace custom SpeedFormat with Foundation's ByteCountFormatter 2022-01-11 22:35:22 +03:00
Timofey Solomko 2a60991067 [swcomp] Make BenchmarkCommand significantly more customizable + add ReaderTar benchmark 2022-01-11 22:16:07 +03:00
Timofey Solomko 1000194a7e [swcomp] Make all classes final 2022-01-09 14:44:40 +03:00
Timofey Solomko 9241987e53 [swcomp] Add writer-tar benchmark
In addition move create-tar benchmark into BenchmarkGroup.swift file
2022-01-09 14:36:24 +03:00
Timofey Solomko 3caacff134 [swcomp] Add FileHandle closeCompat() extension
This is the same one used in tests.
2022-01-09 14:33:22 +03:00
Timofey Solomko 3388cb047b [TAR] Rename the second argument of TarWriter.init to force
This is for consistency with TarContainer.create.
2022-01-09 14:17:00 +03:00
Timofey Solomko 79a0aa8d08 Fix compilation issues on Linux and Windows due to the absence of autoreleasepool 2022-01-08 15:47:16 +03:00
Timofey Solomko c4aab7b648 [swcomp] Remove --use-rw-api option from tar command
Swcomp now uses TarReader/Writer automatically, if possible (when there is no compression involved).
2022-01-08 15:38:58 +03:00
Timofey Solomko 79295db930 Update copyright year to 2022 2022-01-08 15:02:59 +03:00
Timofey Solomko a898c9aabe [swcomp] Use autoreleasepool for tar creating in rw-api version 2022-01-08 14:35:09 +03:00
Timofey Solomko 4c282c6fae [swcomp] Fix incorrect tar info printing when using TarReader 2022-01-08 14:34:34 +03:00
Timofey Solomko de9cf3916c [swcomp] Rewrite tar command info and extract rw-api versions using TarReader.process 2022-01-08 14:33:50 +03:00
Timofey Solomko fe9453173a [TAR] Rename TarReader.next() to read() 2022-01-08 14:33:40 +03:00
Phil Mitchell c5bbc713b3 [swcomp] Use autoreleasepool to immediately free memory when untarring file with rw-api 2022-01-02 11:13:17 -08:00
Timofey Solomko 0a5378a016 [swcomp] Add a second version of TarCommand.execute for use-rw-api option
It doesn't support any of the compression options, as well as format option.
2021-11-21 12:37:36 +03:00
Timofey Solomko eaa0ae4b9b [swcomp] Add TarEntry.generateEntries function which uses TarWriter 2021-11-21 12:36:16 +03:00
Timofey Solomko 7733b293d3 [swcomp] Restructure writeEntries into writeFile and writeDirectory 2021-11-21 12:28:38 +03:00
Timofey Solomko c5efb9bf39 [swcomp] Clarify a couple of error messages 2021-11-21 11:56:07 +03:00
Timofey Solomko 6306365cde [swcomp] Add use-rw-api option to tar command
It enables usage of new TarReader/Writer APIs. For now only info option supports this.
2021-11-20 21:33:05 +03:00
Timofey Solomko 1e8ad0e2a5 Prepare for 4.7.0 release 2021-11-04 12:12:10 +03:00
Timofey Solomko 5d63df36cf Prepare for the test release of 4.7.0 2021-10-30 13:06:45 +03:00
Timofey Solomko 088d63ac03 [swcomp] Add --use-format option to tar command
This option allows to specify which TAR format to use when creating a container.
2021-10-25 20:01:00 +03:00
Timofey Solomko 01c106228b [swcomp] Replace ConvertibleFromString extension for BZip2.BlockSize with an empty conformance
SwiftCLI provides a default implementation for enums with Int raw values.
2021-10-25 20:00:22 +03:00
Timofey Solomko 68fd0e8f49 [swcomp] Compress after creating a tar container 2021-10-24 19:07:56 +03:00
Timofey Solomko dc93436269 [swcomp] Update to use SwiftCLI's property wrappers
This should fix all deprecation warnings.
2021-10-24 12:47:22 +03:00
Timofey Solomko 29eb6f346c [swcomp] Upgrade SwiftCLI to 6.0 2021-10-23 21:45:22 +03:00
Timofey Solomko 8398f25b2b [swcomp] Don't accept block sizes larger than 4MB in LZ4 compression 2021-10-22 21:01:13 +03:00
Timofey Solomko c1315b5727 [swcomp] Rename the --no-content-checksums option of lz4 command to --no-content-checksum
There can be at most one content checksum in a frame.
2021-10-20 15:01:56 +03:00
Timofey Solomko 1324744785 [swcomp] Print compression ratio in appropriate benchmarks 2021-10-18 21:38:31 +03:00
Timofey Solomko 68f1428355 [swcomp] Add various compression options for LZ4
Also add a check that dict id is not present without a dictionary.
2021-10-16 21:33:03 +03:00
Timofey Solomko 212e1808e7 [swcomp] Add benchmark command for LZ4 compression with dependent blocks 2021-10-16 20:31:32 +03:00
Timofey Solomko 1a49f0543d [swcomp] Add benchmark command for LZ4 compression with independent blocks
LZ4 compression with block dependency will be added in the future (after SWCompression is fixed with regards to dependent blocks).
2021-10-15 22:44:55 +03:00
Timofey Solomko 377344197b [swcomp] Implement --compress option for the lz4 command 2021-10-15 22:40:55 +03:00
Timofey Solomko 86c31f7462 [swcomp] Add options to lz4 command to support dictionary decompression 2021-09-27 14:29:30 +03:00
Timofey Solomko d8f7b8a8f5 [swcomp] Add benchmark command for LZ4 decompression 2021-09-26 16:06:09 +03:00
Timofey Solomko 8b0715b5a2 [swcomp] Add lz4 command 2021-09-26 16:03:56 +03:00
Timofey Solomko 2efdb3ef8c Prepare for 4.6.1 release 2021-09-21 13:29:03 +03:00
Timofey Solomko 15a99d1448 [swcomp] Replace ContainerCommand.Entry with ContainerType 2021-09-19 15:15:55 +03:00
Timofey Solomko 19c788eb30 [swcomp] Output uncertainty of the bench speed using avg speed units 2021-09-13 17:33:09 +03:00
Timofey Solomko d7824df50c [swcomp] Move most bench commands into BenchmarkGroup file 2021-09-13 17:32:16 +03:00
Timofey Solomko 3eed2595be [swcomp] Output results as a speed 2021-09-12 23:50:46 +03:00
Timofey Solomko 03af95fb96 [swcomp] Add CreateTar benchmarking command 2021-09-12 19:12:27 +03:00
Timofey Solomko 322fe5aaa8 [swcomp] Move createEntries function into a separate extension 2021-09-12 19:12:04 +03:00
Timofey Solomko 2fa22370dc [swcomp] Generalize BenchmarkCommand protocol 2021-09-12 19:11:39 +03:00