Hi all,

I’ve been experimenting with BIP324 v2 encrypted transport and wanted to share some measurements around its performance characteristics, focusing on throughput, latency, and batching effects.

The goal was not to propose changes, but to better understand where the actual costs are and how they scale under different execution models.


Setup
CPU baseline (single-thread)

Mixed traffic profile:

Selected primitives:

One-time operations:


GPU offload (batch processing)

With batching (128K packets):

After optimizations (state reuse, instruction-level tuning, memory layout):

Overhead remains roughly the same (~5.5–5.6%).


Latency vs batching

A key observation is the strong dependence on batch size:

This suggests:

GPU behaves as a throughput engine, not a latency engine.

Small workloads are dominated by launch and transfer overhead, while large batches amortize these costs effectively.


PCIe / data movement effects

End-to-end profiling shows:

Effective end-to-end throughput stabilizes around:

This indicates that once crypto is sufficiently optimized, data movement becomes the dominant bottleneck, not the cryptographic primitives themselves.


Additional observations
Takeaways
  1. BIP324 cryptographic overhead on CPU is measurable but not extreme (~5–6%)

  2. Throughput can scale significantly with parallel execution (30x in this setup)

  3. Latency and throughput behave very differently depending on batching

  4. Once crypto is fast enough, transport becomes memory/IO bound

  5. Batch size and execution model are critical factors in performance


Open questions

I’m happy to share more details or run additional measurements if useful.

For reference, the implementation used for these measurements is available here:
https://github.com/shrec/UltrafastSecp256k1/tree/dev

  Best, Ivane Chkheidze    

--
You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/35d5cbfb-48ea-4cec-bbb2-6597d40d8795n%40googlegroups.com.