hyperlight-dev / hyperlight-dev/hyperlight

Track Performance

Đang mở
#593 5 bình luận 0 reaction 1 người được giao Được @ludfjig nhận Xem trên GitHub
area/performance lifecycle/blocked
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

# 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.