File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
// +build ignore
6
6
7
+ //go:generate go run huffman.go
8
+
7
9
// Generates huffman.txt. This test file heavily favors prefix based encodings
8
10
// since some symbols are heavily favored over others. This leads to compression
9
11
// savings that can be gained by assigning shorter prefix codes to those more
Original file line number Diff line number Diff line change 4
4
5
5
// +build ignore
6
6
7
+ //go:generate go run random.go
8
+
7
9
// Generates random.bin. This test file contains random data throughout and
8
10
// tests the worst case compression scenario.
9
11
package main
Original file line number Diff line number Diff line change 4
4
5
5
// +build ignore
6
6
7
+ //go:generate go run repeats.go
8
+
7
9
// Generates repeats.bin. This test file heavily favors LZ77 based compression
8
10
// since a large bulk of its data is a copy from some distance ago. Also, since
9
11
// the source data is mostly random, prefix encoding does not benefit as much.
Original file line number Diff line number Diff line change 4
4
5
5
// +build ignore
6
6
7
+ //go:generate go run zeros.go
8
+
7
9
// Generates zeros.bin. This test file contains zeroed data throughout and
8
10
// tests the best case compression scenario.
9
11
package main
You can’t perform that action at this time.
0 commit comments