Skip to content

Commit a4d7977

Browse files
domsleeeclaude
andcommitted
Add performance table to README; modernize AOT benchmark comment
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 5c364af commit a4d7977

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

ForceOps.Benchmarks/src/FileAndDirectoryDeleterBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace ForceOps.Benchmarks;
55

6-
// [SimpleJob(RuntimeMoniker.NativeAot80)]
6+
// [SimpleJob(RuntimeMoniker.NativeAot10_0)]
77
[SimpleJob]
88
public class FileAndDirectoryDeleterBenchmark
99
{

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ RelaunchHelpers.RunWithRelaunchAsElevated(() =>
9696
}, () => args.ToList(), forceOpsContext);
9797
```
9898

99+
## Performance
100+
101+
Native AOT vs framework-dependent, measured with [hyperfine](https://github.com/sharkdp/hyperfine):
102+
103+
| Scenario | Native AOT | Framework-dependent | Speedup |
104+
| --- | --- | --- | --- |
105+
| `forceops --help` (startup) | 9.8 ms ± 1.1 ms | 107.9 ms ± 6.9 ms | 11x |
106+
| `forceops rm` (directory with 1,000 files) | 151.4 ms ± 11.1 ms | 219.1 ms ± 15.8 ms | 1.45x |
107+
108+
Steady-state delete throughput is identical between the two (BenchmarkDotNet ratio 1.01-1.07) - Native AOT's win is startup time.
109+
99110
## Context
100111

101112
See [Benchmarks](https://domsleee.github.io/ForceOps/) on github pages.

0 commit comments

Comments
 (0)