hyperlight-dev / hyperlight-dev/hyperlight

Track Performance

Aperta
#593 5 commenti 0 reazioni 1 assegnatario Rivendicata da @ludfjig Vedi su GitHub
area/performance lifecycle/blocked
Lingua principale
Rust
Stelle
4.7k
Fork
208
Merge medio
1g 7h
PR unite (30g)
47

Descrizione

# Hyperlight Performance Plan

## Core Benchmarks

### Microbenchmarks (Time per Task)
Measure round-trip time (RTT) and lifecycle operations:
- Guest call RTT (empty, no workload)
- Guest call RTT (large param/return, no workload)
- Sandbox create, evolve, and drop

Test across:
- Hypervisors: Windows Server 2025/2022 Hyper-V, Linux KVM (5.x/6.x), MSHV (5.x/6.x)
- CPU vendors: Intel, AMD

### Native vs Hyperlight
Compare native host code vs Hyperlight (`x86_64-unknown-none`) on compute-heavy tasks to evaluate performance overhead due to limited CPU feature use (e.g. SSE/AVX).

## HyperlightJS & HyperlightWASM

### Load Testing
Benchmark lightweight compute workloads (per-request tasks):
- Metrics: HTTP throughput, latency, memory use
- Workloads: header rewrite, JWT validation, TBD CPU-intensive task

### Comparisons
Evaluate:
- `HyperlightJS`
- `HyperlightWASM` (with JS component)
- `Wasmtime` (with JS component, baseline)

Test across:
- Hypervisors: Windows Server 2025/2022 Hyper-V, Linux KVM (5.x/6.x), MSHV (5.x/6.x)
- CPU vendors: Intel, AMD

## Performance Monitoring

Track metrics over time to catch regressions and improvements:
- Run benchmarks on every PR merge and release
- Allow local runs during dev
- Visualize data on public dashboard

## Notes
- Benchmarks run in nested virtualization on CI (`Standard_D4(a)ds_v5` VMs, premium SSD)
- Expect some noise, but useful for trends and comparisons

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.