Skip to content

Commit 1ad9b7a

Browse files
committed
#740 Adding k=9 to FixedSizeListDecodeBenchmark
1 parent 6bf72a0 commit 1ad9b7a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

performance-testing/generate_fixed_size_list_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# k=3 covers the multi-byte-period bit-packed regime (period 3 bytes, the RGB /
4343
# 3D-vector case); 4 and 8 are single-byte-period; 16+ have an RLE interior.
44-
K_SWEEP = [1, 3, 4, 8, 16, 128, 768, 1536]
44+
K_SWEEP = [1, 3, 4, 8, 9, 16, 128, 768, 1536]
4545
TOTAL_VALUES = 8_000_000 # leaf floats per file; rows = TOTAL_VALUES // k
4646

4747
# Almost-fixed corpus for FixedSizeListFallbackBenchmark (the detector's fallback

performance-testing/micro-benchmarks/src/main/java/dev/hardwood/benchmarks/FixedSizeListDecodeBenchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class FixedSizeListDecodeBenchmark {
8787

8888
// k=3 covers the multi-byte-period bit-packed regime (RGB / 3D vectors);
8989
// 4 and 8 are single-byte-period; 16 and up carry an RLE interior.
90-
@Param({ "1", "3", "4", "8", "16", "128", "768", "1536" })
90+
@Param({ "1", "3", "4", "8", "9", "16", "128", "768", "1536" })
9191
private int k;
9292

9393
private Path listPath;
@@ -172,7 +172,7 @@ private static double sumColumn(Path path, String column, HardwoodContext contex
172172
try (ParquetFileReader reader = ParquetFileReader.open(InputFile.of(path), context, config);
173173
ColumnReader col = reader.columnReader(column)) {
174174
while (col.nextBatch()) {
175-
float[] values = (float[]) col.getFloats();
175+
float[] values = col.getFloats();
176176
int n = col.getValueCount();
177177
for (int i = 0; i < n; i++) {
178178
sum += values[i];

0 commit comments

Comments
 (0)