File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44namespace ForceOps . Benchmarks ;
55
6- // [SimpleJob(RuntimeMoniker.NativeAot80 )]
6+ // [SimpleJob(RuntimeMoniker.NativeAot10_0 )]
77[ SimpleJob ]
88public class FileAndDirectoryDeleterBenchmark
99{
Original file line number Diff line number Diff 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
101112See [ Benchmarks] ( https://domsleee.github.io/ForceOps/ ) on github pages.
You can’t perform that action at this time.
0 commit comments