hyperlight-dev / hyperlight-dev/hyperlight

Track Performance

Ouverte
#593 5 commentaires 0 réactions 1 personne assignée Réclamée par @ludfjig Voir sur GitHub
area/performance lifecycle/blocked
Langage dominant
Rust
Étoiles
4.7k
Forks
208
Merge moyen
1 j 7 h
PR mergées (30 j)
47

Description

# 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.