Skip to content

Commit 00fde52

Browse files
dfa1claude
andcommitted
refactor: rename JniVsJavaReadBenchmark to RustVsJavaReadBenchmark
Consistent with integration test naming convention (RustWrites/JavaWrites). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6fcbfa8 commit 00fde52

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pure-Java reader/writer for the [Vortex](https://github.com/spiraldb/vortex) col
66

77
## Performance
88

9-
`JniVsJavaReadBenchmark` — 10M OHLC rows, project + sum `volume` (I64) column,
9+
`RustVsJavaReadBenchmark` — 10M OHLC rows, project + sum `volume` (I64) column,
1010
JMH throughput (higher = better), Apple M-series, Java 25:
1111

1212
| Reader | Throughput | vs JNI |

integration/src/test/java/io/github/dfa1/vortex/integration/OhlcEncodingInspectionIntegrationTest.java

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

3535
import static org.assertj.core.api.Assertions.assertThat;
3636

37-
/// Inspects the OHLC file (same schema and data as JniVsJavaReadBenchmark)
37+
/// Inspects the OHLC file (same schema and data as RustVsJavaReadBenchmark)
3838
/// to reveal which encodings Rust chose for each column, especially "volume".
3939
class OhlcEncodingInspectionIntegrationTest {
4040

performance/src/main/java/io/github/dfa1/vortex/performance/JniVsJavaReadBenchmark.java renamed to performance/src/main/java/io/github/dfa1/vortex/performance/RustVsJavaReadBenchmark.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
/// Both benchmarks project onto the "close" column (F64) and sum all values so
6262
/// the JVM can't optimise away the decode work.
6363
///
64-
/// Run: java -jar performance/target/benchmarks.jar JniVsJavaReadBenchmark
64+
/// Run: java -jar performance/target/benchmarks.jar RustVsJavaReadBenchmark
6565
///
6666
/// To test against a pre-existing JNI-written file:
67-
/// java -Dvortex.bench.ohlc=/path/to/file.vtx -jar target/benchmarks.jar JniVsJavaReadBenchmark
67+
/// java -Dvortex.bench.ohlc=/path/to/file.vtx -jar target/benchmarks.jar RustVsJavaReadBenchmark
6868
@State(Scope.Benchmark)
6969
@BenchmarkMode(Mode.Throughput)
7070
@OutputTimeUnit(TimeUnit.SECONDS)
@@ -75,7 +75,7 @@
7575
"--enable-native-access=ALL-UNNAMED",
7676
"--sun-misc-unsafe-memory-access=allow"
7777
})
78-
public class JniVsJavaReadBenchmark {
78+
public class RustVsJavaReadBenchmark {
7979

8080
private static final int TOTAL_ROWS = 10_000_000;
8181
private static final int BATCH_SIZE = 50_000; // 20 chunks
@@ -113,13 +113,13 @@ public void setup() throws IOException {
113113
if (externalFile != null && !externalFile.isEmpty()) {
114114
benchFile = Path.of(externalFile);
115115
ownFile = false;
116-
System.out.printf("[JniVsJavaReadBenchmark] using external file: %s%n", benchFile);
116+
System.out.printf("[RustVsJavaReadBenchmark] using external file: %s%n", benchFile);
117117
} else {
118118
benchFile = Files.createTempFile("ohlc-bench", ".vtx");
119119
ownFile = true;
120-
System.out.printf("[JniVsJavaReadBenchmark] writing %d OHLC rows via JNI...%n", TOTAL_ROWS);
120+
System.out.printf("[RustVsJavaReadBenchmark] writing %d OHLC rows via JNI...%n", TOTAL_ROWS);
121121
writeJni(benchFile);
122-
System.out.printf("[JniVsJavaReadBenchmark] file size: %.1f MB%n",
122+
System.out.printf("[RustVsJavaReadBenchmark] file size: %.1f MB%n",
123123
Files.size(benchFile) / 1_048_576.0);
124124
}
125125
}

0 commit comments

Comments
 (0)