Files
irving ou 691c358084 feat(bench): deterministic record/replay benchmark across native, .NET, and web
Add an IRDPREC1 record/replay benchmark for the client decode/render path,
verified end-to-end on all three consumer frontends — one capture reproduces a
byte-identical framebuffer CRC32 on each.

- Recorder: --record-traffic and --exit-after-secs flags on ironrdp-viewer,
  backed by crates/ironrdp-client/src/record.rs (gated server->client tap,
  IRDPREC1 manifest, canonical framebuffer CRC32). Captures the active-session
  byte stream once connect_finalize returns; manifest/checksum sidecar paths are
  derived from the capture path.
- ironrdp-replay-core: shared crate that rebuilds a ConnectionResult from the
  manifest so every frontend reconstructs an identical session.
- ironrdp-replay-bench: native replay + determinism/correctness gate.
- .NET: FFI ReplayConnectionBuilder + Devolutions.IronRdp.ReplayBench, replaying
  through the real Diplomat decode path RDM uses.
- Web: `bench` feature + run_web_bench in ironrdp-web (per-stage timing) plus a
  headless Playwright harness under crates/ironrdp-web/bench-harness.

Design + as-built notes: docs/plans/2026-06-03-ironrdp-benchmark-design.md.
2026-06-09 15:28:41 -04:00
..

IronRDP FFI

Diplomat-based FFI for IronRDP.

Currently, only the .NET target is officially supported.

How to build

  • Install required tools: cargo xtask ffi install

    • For .NET, note that dotnet is also a requirement that you will need to install on your own.
  • Build the shared library: cargo xtask ffi build (alternatively, in release mode: cargo xtask ffi build --release)

  • Build the bindings: cargo xtask ffi bindings

At this point, you may build and run the examples for .NET:

  • dotnet run --project Devolutions.IronRdp.ConnectExample
  • dotnet run --project Devolutions.IronRdp.AvaloniaExample