T-137: M2.3c — tools/curate-etl: pure QuestDB ILP v2 encoder + sharded batch writer for bars_1m / fx_1m over injected Write sinks (no new crates, no live QuestDB)

This commit is contained in:
Studio 2026-12-01 06:55:43 -05:00
parent bcf2067c8d
commit c6e6b796a4
7 changed files with 1565 additions and 4 deletions

View file

@ -11,7 +11,8 @@ use curate_etl::bench::{
run_curate_corporate_actions_cmd_benchmark, run_curate_events_benchmark,
run_curate_events_cmd_benchmark, run_curate_fx_benchmark, run_curate_fx_cmd_benchmark,
run_curate_shorts_benchmark, run_curate_shorts_command_benchmark, run_events_benchmark,
run_fx_benchmark, run_mongo_stream_benchmark, run_parquet_adj_benchmark,
run_fx_benchmark, run_ilp_bars_1m_benchmark, run_mongo_stream_benchmark,
run_parquet_adj_benchmark,
run_parquet_bars_benchmark,
run_parquet_corporate_actions_benchmark, run_parquet_events_benchmark,
run_parquet_fx_benchmark, run_parquet_shorts_benchmark, run_provider_mapping_benchmark,
@ -378,6 +379,33 @@ fn main() -> ExitCode {
);
ExitCode::SUCCESS
}
Ok(CliAction::BenchIlpBars1m(rows)) => {
let report = match run_ilp_bars_1m_benchmark(rows) {
Ok(report) => report,
Err(err) => {
eprintln!("error: ilp bars_1m benchmark failed: {err}");
return ExitCode::FAILURE;
}
};
println!("curate-etl bench-ilp-bars-1m");
println!(
" input: rows={} keys={} shards={}",
report.rows, report.key_count, report.shards
);
println!(
" output: rows_encoded={} bytes={} flushes={} per_shard_rows={:?}",
report.rows_encoded, report.bytes, report.flushes, report.per_shard_rows
);
println!(
" perf: elapsed={:.2} ms throughput={:.0} rows/s latency={:.2} ns/row size={:.2} bytes/row write={:.2} MB/s",
report.elapsed_ms,
report.rows_per_sec,
report.ns_per_row,
report.bytes_per_row,
report.mb_per_sec
);
ExitCode::SUCCESS
}
Ok(CliAction::BenchFx(rows)) => {
let report = run_fx_benchmark(rows);
println!("curate-etl bench-fx");