Skip to content

Commit 7f56cfe

Browse files
document how the benchmark was produced and add python script used
1 parent 2731e7e commit 7f56cfe

File tree

3 files changed

+6522
-1
lines changed

3 files changed

+6522
-1
lines changed

benches/decompress_sink.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ use zip::read::ZipFile;
1313
use zip::unstable::read::streaming::StreamingArchive;
1414
use zip::{result::ZipResult, ZipArchive};
1515

16-
/* This contains the compressed text of King Lear from Project Gutenberg, in the public domain. */
16+
/* This contains the compressed text of King Lear from Project Gutenberg, in the public domain.
17+
* It contains the text of King Lear in multiple formats:
18+
* 1. Stored (uncompressed)
19+
* 2. Deflated (compresslevel=9)
20+
* 3. Bzip2 (compresslevel=9)
21+
* It contains 50 of each, with 150 entries total. This is generated by the script
22+
* tests/data/generate-king-lear-zip.py.
23+
*/
1724
fn get_test_data() -> ZipResult<ZipArchive<fs::File>> {
1825
let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/data/king-lear-compressed.zip");
1926
let file = fs::File::open(path)?;

0 commit comments

Comments
 (0)