VectorTick is a high-performance C++20 columnar market-data analytics engine designed for financial tick ingestion, durable columnar storage, and low-latency SQL query execution.
It features wire-speed PCAP ingestion, durable VTS1 columnar segments with hardware CRC32C, a typed SQL query compiler, a vectorized SIMD executor (NEON & AVX2), native host JIT compilation with strict
- Wire-Speed Market Ingestion: Decodes VTP1 packets from standard PCAP files supporting little/big-endian capture formats, nanosecond/microsecond timestamps, and 802.1Q VLAN tagging.
- Durable Columnar Storage (VTS1): 12 canonical market columns stored in 64-byte aligned blocks with bitpacking, dictionary encoding, run-length encoding (RLE), CRC32C integrity checksums, zone maps, and bloom filters.
- Transactional Catalog & Durability: Append-only WAL journal with torn-write detection, atomic 2-phase commits, crash recovery, and segment compaction.
-
Typed SQL Query Engine: Case-insensitive SQL lexer and parser supporting projections, aliases,
WHEREexpressions,GROUP BY, aggregate functions (COUNT,SUM,MIN,MAX,AVG),ORDER BY, andLIMIT. -
Multiple Execution Backends:
- Scalar Reference Interpreter: Pure functional semantic oracle with checked arithmetic.
- Portable Vectorized Executor: Cache-conscious 1024-row chunked executor with runtime SIMD dispatch (ARM NEON & x86 AVX2).
-
Host JIT Compiler: Native machine code emission for Apple Silicon AArch64 and x86-64 with strict
$W \oplus X$ policy and macOSMAP_JITwrite protection.
- Deterministic Market Replay: Sequence monotonicity verification, microsecond pacing, and line-rate replay (>220 million events/sec).
- Verification: Unit and integration suites, native and SQL campaigns, fuzz smoke tests, and AddressSanitizer and UndefinedBehaviorSanitizer gates.
The following metrics were measured on an Apple Silicon host (Darwin arm64, AppleClang, Release build):
| Benchmark Stage | Measured Throughput | Description |
|---|---|---|
| CRC32C Integrity Check | 7.56 GB/s | Hardware-accelerated / table CRC32C checksums |
| Scalar Interpreter Oracle | 12.88 Mop/s | Pure functional SSA interpreter |
| Host JIT Execution | 136.56 Mop/s | Native compiled machine code (10.6x speedup) |
| Vectorized Filter Scan | 16.00 Mrows/s | Columnar filter scan with selection vectors |
| Vectorized Aggregation (NEON) | 114.02 Mrows/s | SIMD-accelerated sum/min/max/count reductions |
| VTS1 Storage Write | 20.31 Mev/s | Full 12-column encoded disk serialization |
| VTS1 Storage Read | 23.65 Mev/s | Columnar memory-mapped deserialization |
| Deterministic Replay | 224.68 Mev/s | Line-rate replay with monotonicity verification |
+-----------------------------+
| PCAP / Network Capture |
+-----------------------------+
|
v
+-----------------------------+
| VTP1 Frame Decoder |
+-----------------------------+
|
v
+-----------------------------+
| VTS1 Columnar Writer |
| (BitPack, RLE, CRC32C, WAL) |
+-----------------------------+
|
+--------------------+--------------------+
| |
v v
+-------------------------------+ +-------------------------------+
| SQL Query Engine | | Deterministic Replay |
| (Lexer -> Parser -> Typer) | | (Monotonic Sequence Check) |
+-------------------------------+ +-------------------------------+
|
v
+-------------------------------+
| SSA IR Representation |
+-------------------------------+
| |
v v
+---------------+ +---------------+
| Vectorized | | Host JIT |
| SIMD (NEON) | | (A64 / X86) |
+---------------+ +---------------+
VectorTick includes command-line applications and a benchmark:
Runs a complete end-to-end pipeline demonstration:
./build/bin/vectortick_demoInspects segment headers, column descriptors, zone maps, bloom filters, and previews data rows:
# Print summary, descriptors, zone maps, bloom filter, and first 10 rows:
./build/bin/vectortick_inspect -s -m -d 10 market_data.vtsExecutes SQL queries against columnar segment files:
# Aggregation query
./build/bin/vectortick_query market_data.vts "SELECT COUNT(*), SUM(quantity), AVG(price_ticks) WHERE price_ticks > 15000"
# Projection query with limits
./build/bin/vectortick_query -l 20 market_data.vts "SELECT instrument_id, price_ticks, quantity WHERE instrument_id = 101"Replays a segment file deterministically with rate limiting and monotonicity checks:
# Maximum line-rate replay:
./build/bin/vectortick_replay -s market_data.vts
# Replay paced at 10,000 events/sec:
./build/bin/vectortick_replay -r 10000 market_data.vtsIngests PCAP captures into durable VTS1 segments:
python3 tools/generate_events.py --count 1000 --output input.pcap
./build/bin/vectortick_ingest input.pcap output.vts
./build/bin/vectortick_query output.vts "SELECT COUNT(*)"This synthetic capture produces a segment with 1,000 events.
Executes the comprehensive benchmark suite and outputs JSON performance data:
./build/bin/vectortick_bench --json bench/results.json- C++20 compliant compiler (
AppleClang 15+,Clang 16+, orGCC 13+) - CMake 3.24+
- Ninja or Make
- Python 3 for the capture generator and verification tools
# Configure and build Release
make build BUILD_TYPE=Release
# Run the configured CTest suites in parallel
make test
# Run end-to-end demo
make demo
# Run benchmark suite and verify results
make benchmark
make verify# Clean, build, and test with AddressSanitizer and UndefinedBehaviorSanitizer
make sanitizeTo run the complete automated acceptance pipeline (Release build, test suites, sanitizers, fuzz smoke testing, demo, dataset generation, benchmarks, stress testing, and LOC audit):
make acceptance- Detailed Repair & Audit Resolution Status
- Architecture & Design Specifications
- Architecture Decision Records (ADRs)
MIT. See LICENSE.