hyperlight-dev / hyperlight-dev/hyperlight

Track Performance

未关闭
#593 5 条评论 0 个 reaction 已指派 1 人 已被 @ludfjig 认领 在 GitHub 查看
area/performance lifecycle/blocked
主要语言
Rust
星标
4.7k
派生
208
平均合并
1 天 7 小时
30 天内合并 PR
48

描述

# 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。