Class HftOrderBenchmark
java.lang.Object
com.quantfinlib.examples.HftOrderBenchmark
Benchmarks the fast-lane order path, mirroring
HftLatencyBenchmark:
- Risk gate: ns per pre-trade check (tight loop).
- Submit-to-venue: paced one-in-flight latency from
HftOrderGateway.submit()to the venue thread receiving the order. - Tick-to-order end-to-end: market tick published on the
HftMarketDataBus→ strategy (2×EMA) on the bus consumer thread → risk check → order ring → venue thread. The full loop a live system runs, measured with the original tick timestamp. - Throughput: sustained orders/second under backpressure.
Run: java -Xms512m -Xmx512m -XX:+AlwaysPreTouch -cp target/classes
com.quantfinlib.examples.HftOrderBenchmark
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HftOrderBenchmark
public HftOrderBenchmark()
-
-
Method Details
-
main
-