diff --git a/benches/decoder.rs b/benches/decoder.rs index 8ee6980..58b018c 100644 --- a/benches/decoder.rs +++ b/benches/decoder.rs @@ -11,7 +11,7 @@ fn bench(c: &mut Criterion) { group.sample_size(ITERS_PER_FILE); group.bench_function("handle-flat-file", |b| { - let files = fs::read_dir("benchmark_files").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { diff --git a/benches/stream_blocks.rs b/benches/stream_blocks.rs index 4673731..8562e90 100644 --- a/benches/stream_blocks.rs +++ b/benches/stream_blocks.rs @@ -20,7 +20,7 @@ fn read_decode_check_bench(c: &mut Criterion) { group.sample_size(ITERS_PER_FILE); group.bench_function("read-message-stream", |b| { - let files = fs::read_dir("benchmark_files/pre_merge").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files/pre_merge").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { @@ -50,7 +50,7 @@ fn read_decode_check_bench(c: &mut Criterion) { }); group.bench_function("decode-bstream", |b| { - let files = fs::read_dir("benchmark_files/pre_merge").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files/pre_merge").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { @@ -78,7 +78,7 @@ fn read_decode_check_bench(c: &mut Criterion) { }); group.bench_function("decode-block", |b| { - let files = fs::read_dir("benchmark_files/pre_merge").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files/pre_merge").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { @@ -110,7 +110,7 @@ fn read_decode_check_bench(c: &mut Criterion) { }); group.bench_function("receipts-check", |b| { - let files = fs::read_dir("benchmark_files/pre_merge").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files/pre_merge").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { @@ -142,7 +142,7 @@ fn read_decode_check_bench(c: &mut Criterion) { }); group.bench_function("transactions-check", |b| { - let files = fs::read_dir("benchmark_files/pre_merge").expect("Failed to read dir"); + let files = fs::read_dir("tests/benchmark_files/pre_merge").expect("Failed to read dir"); for file in files { let path = file.expect("Failed to get path").path(); match path.extension() { diff --git a/benchmark_files/0017686110-ebfe6d2b6a25625a-c8cd7d28f8925104-17686021-default.dbin b/tests/benchmark_files/0017686110-ebfe6d2b6a25625a-c8cd7d28f8925104-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686110-ebfe6d2b6a25625a-c8cd7d28f8925104-17686021-default.dbin rename to tests/benchmark_files/0017686110-ebfe6d2b6a25625a-c8cd7d28f8925104-17686021-default.dbin diff --git a/benchmark_files/0017686111-c1ed20dc4cffd7bd-ebfe6d2b6a25625a-17686021-default.dbin b/tests/benchmark_files/0017686111-c1ed20dc4cffd7bd-ebfe6d2b6a25625a-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686111-c1ed20dc4cffd7bd-ebfe6d2b6a25625a-17686021-default.dbin rename to tests/benchmark_files/0017686111-c1ed20dc4cffd7bd-ebfe6d2b6a25625a-17686021-default.dbin diff --git a/benchmark_files/0017686112-3e047e2815253f7c-c1ed20dc4cffd7bd-17686021-default.dbin b/tests/benchmark_files/0017686112-3e047e2815253f7c-c1ed20dc4cffd7bd-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686112-3e047e2815253f7c-c1ed20dc4cffd7bd-17686021-default.dbin rename to tests/benchmark_files/0017686112-3e047e2815253f7c-c1ed20dc4cffd7bd-17686021-default.dbin diff --git a/benchmark_files/0017686113-4d2029b14eb759c3-3e047e2815253f7c-17686021-default.dbin b/tests/benchmark_files/0017686113-4d2029b14eb759c3-3e047e2815253f7c-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686113-4d2029b14eb759c3-3e047e2815253f7c-17686021-default.dbin rename to tests/benchmark_files/0017686113-4d2029b14eb759c3-3e047e2815253f7c-17686021-default.dbin diff --git a/benchmark_files/0017686114-7d23a3e458beaff1-4d2029b14eb759c3-17686021-default.dbin b/tests/benchmark_files/0017686114-7d23a3e458beaff1-4d2029b14eb759c3-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686114-7d23a3e458beaff1-4d2029b14eb759c3-17686021-default.dbin rename to tests/benchmark_files/0017686114-7d23a3e458beaff1-4d2029b14eb759c3-17686021-default.dbin diff --git a/benchmark_files/0017686115-f8d105f60fa2e78d-7d23a3e458beaff1-17686021-default.dbin b/tests/benchmark_files/0017686115-f8d105f60fa2e78d-7d23a3e458beaff1-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686115-f8d105f60fa2e78d-7d23a3e458beaff1-17686021-default.dbin rename to tests/benchmark_files/0017686115-f8d105f60fa2e78d-7d23a3e458beaff1-17686021-default.dbin diff --git a/benchmark_files/0017686116-5331aab87811944d-f8d105f60fa2e78d-17686021-default.dbin b/tests/benchmark_files/0017686116-5331aab87811944d-f8d105f60fa2e78d-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686116-5331aab87811944d-f8d105f60fa2e78d-17686021-default.dbin rename to tests/benchmark_files/0017686116-5331aab87811944d-f8d105f60fa2e78d-17686021-default.dbin diff --git a/benchmark_files/0017686117-1ca6ae9fceb86bb3-5331aab87811944d-17686021-default.dbin b/tests/benchmark_files/0017686117-1ca6ae9fceb86bb3-5331aab87811944d-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686117-1ca6ae9fceb86bb3-5331aab87811944d-17686021-default.dbin rename to tests/benchmark_files/0017686117-1ca6ae9fceb86bb3-5331aab87811944d-17686021-default.dbin diff --git a/benchmark_files/0017686118-240e906e0192cbf8-1ca6ae9fceb86bb3-17686021-default.dbin b/tests/benchmark_files/0017686118-240e906e0192cbf8-1ca6ae9fceb86bb3-17686021-default.dbin similarity index 100% rename from benchmark_files/0017686118-240e906e0192cbf8-1ca6ae9fceb86bb3-17686021-default.dbin rename to tests/benchmark_files/0017686118-240e906e0192cbf8-1ca6ae9fceb86bb3-17686021-default.dbin diff --git a/benchmark_files/0017686119-aeb9a1707fcab1af-240e906e0192cbf8-17686053-default.dbin b/tests/benchmark_files/0017686119-aeb9a1707fcab1af-240e906e0192cbf8-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686119-aeb9a1707fcab1af-240e906e0192cbf8-17686053-default.dbin rename to tests/benchmark_files/0017686119-aeb9a1707fcab1af-240e906e0192cbf8-17686053-default.dbin diff --git a/benchmark_files/0017686120-fc749617debf0d38-aeb9a1707fcab1af-17686053-default.dbin b/tests/benchmark_files/0017686120-fc749617debf0d38-aeb9a1707fcab1af-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686120-fc749617debf0d38-aeb9a1707fcab1af-17686053-default.dbin rename to tests/benchmark_files/0017686120-fc749617debf0d38-aeb9a1707fcab1af-17686053-default.dbin diff --git a/benchmark_files/0017686121-ca989aecff4b715f-fc749617debf0d38-17686053-default.dbin b/tests/benchmark_files/0017686121-ca989aecff4b715f-fc749617debf0d38-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686121-ca989aecff4b715f-fc749617debf0d38-17686053-default.dbin rename to tests/benchmark_files/0017686121-ca989aecff4b715f-fc749617debf0d38-17686053-default.dbin diff --git a/benchmark_files/0017686122-613992459bd6791c-ca989aecff4b715f-17686053-default.dbin b/tests/benchmark_files/0017686122-613992459bd6791c-ca989aecff4b715f-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686122-613992459bd6791c-ca989aecff4b715f-17686053-default.dbin rename to tests/benchmark_files/0017686122-613992459bd6791c-ca989aecff4b715f-17686053-default.dbin diff --git a/benchmark_files/0017686123-5899c91ff4d6bcc4-613992459bd6791c-17686053-default.dbin b/tests/benchmark_files/0017686123-5899c91ff4d6bcc4-613992459bd6791c-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686123-5899c91ff4d6bcc4-613992459bd6791c-17686053-default.dbin rename to tests/benchmark_files/0017686123-5899c91ff4d6bcc4-613992459bd6791c-17686053-default.dbin diff --git a/benchmark_files/0017686124-1eca9b70fba5b94a-5899c91ff4d6bcc4-17686053-default.dbin b/tests/benchmark_files/0017686124-1eca9b70fba5b94a-5899c91ff4d6bcc4-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686124-1eca9b70fba5b94a-5899c91ff4d6bcc4-17686053-default.dbin rename to tests/benchmark_files/0017686124-1eca9b70fba5b94a-5899c91ff4d6bcc4-17686053-default.dbin diff --git a/benchmark_files/0017686125-7dc58772bce851e4-1eca9b70fba5b94a-17686053-default.dbin b/tests/benchmark_files/0017686125-7dc58772bce851e4-1eca9b70fba5b94a-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686125-7dc58772bce851e4-1eca9b70fba5b94a-17686053-default.dbin rename to tests/benchmark_files/0017686125-7dc58772bce851e4-1eca9b70fba5b94a-17686053-default.dbin diff --git a/benchmark_files/0017686126-ce26454bcb6edc2b-7dc58772bce851e4-17686053-default.dbin b/tests/benchmark_files/0017686126-ce26454bcb6edc2b-7dc58772bce851e4-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686126-ce26454bcb6edc2b-7dc58772bce851e4-17686053-default.dbin rename to tests/benchmark_files/0017686126-ce26454bcb6edc2b-7dc58772bce851e4-17686053-default.dbin diff --git a/benchmark_files/0017686127-d0de6295e70f6c98-ce26454bcb6edc2b-17686053-default.dbin b/tests/benchmark_files/0017686127-d0de6295e70f6c98-ce26454bcb6edc2b-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686127-d0de6295e70f6c98-ce26454bcb6edc2b-17686053-default.dbin rename to tests/benchmark_files/0017686127-d0de6295e70f6c98-ce26454bcb6edc2b-17686053-default.dbin diff --git a/benchmark_files/0017686128-febb8b1a14ed0849-d0de6295e70f6c98-17686053-default.dbin b/tests/benchmark_files/0017686128-febb8b1a14ed0849-d0de6295e70f6c98-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686128-febb8b1a14ed0849-d0de6295e70f6c98-17686053-default.dbin rename to tests/benchmark_files/0017686128-febb8b1a14ed0849-d0de6295e70f6c98-17686053-default.dbin diff --git a/benchmark_files/0017686129-edcd8da636408b71-febb8b1a14ed0849-17686053-default.dbin b/tests/benchmark_files/0017686129-edcd8da636408b71-febb8b1a14ed0849-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686129-edcd8da636408b71-febb8b1a14ed0849-17686053-default.dbin rename to tests/benchmark_files/0017686129-edcd8da636408b71-febb8b1a14ed0849-17686053-default.dbin diff --git a/benchmark_files/0017686130-f722b6fdd7cc0cf9-edcd8da636408b71-17686053-default.dbin b/tests/benchmark_files/0017686130-f722b6fdd7cc0cf9-edcd8da636408b71-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686130-f722b6fdd7cc0cf9-edcd8da636408b71-17686053-default.dbin rename to tests/benchmark_files/0017686130-f722b6fdd7cc0cf9-edcd8da636408b71-17686053-default.dbin diff --git a/benchmark_files/0017686131-f5114bcb9da4d8dd-f722b6fdd7cc0cf9-17686053-default.dbin b/tests/benchmark_files/0017686131-f5114bcb9da4d8dd-f722b6fdd7cc0cf9-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686131-f5114bcb9da4d8dd-f722b6fdd7cc0cf9-17686053-default.dbin rename to tests/benchmark_files/0017686131-f5114bcb9da4d8dd-f722b6fdd7cc0cf9-17686053-default.dbin diff --git a/benchmark_files/0017686132-8d6c5f1a64492edf-f5114bcb9da4d8dd-17686053-default.dbin b/tests/benchmark_files/0017686132-8d6c5f1a64492edf-f5114bcb9da4d8dd-17686053-default.dbin similarity index 100% rename from benchmark_files/0017686132-8d6c5f1a64492edf-f5114bcb9da4d8dd-17686053-default.dbin rename to tests/benchmark_files/0017686132-8d6c5f1a64492edf-f5114bcb9da4d8dd-17686053-default.dbin diff --git a/benchmark_files/pre_merge/0015524700.dbin b/tests/benchmark_files/pre_merge/0015524700.dbin similarity index 100% rename from benchmark_files/pre_merge/0015524700.dbin rename to tests/benchmark_files/pre_merge/0015524700.dbin