-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(minor): Add convenience blackHole() to Benchmark, fix up documen…
…tation links (#124) Adding convenience blackHole() to Benchmark for easier disambiguation. Documentation links were broken after restructuring, fixing them. Fixes #124
- Loading branch information
Showing
22 changed files
with
259 additions
and
204 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Sources/Benchmark/Documentation.docc/BenchmarkMetric_Polarity.md
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
Sources/Benchmark/Documentation.docc/BenchmarkScalingFactor.md
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
Sources/Benchmark/Documentation.docc/BenchmarkTimeUnits.md
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
Sources/Benchmark/Documentation.docc/Benchmark_Configuration.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# ``BenchmarkSupport/Benchmark`` | ||
|
||
## Topics | ||
|
||
### AllSymbols | ||
|
||
### Creating Benchmarks | ||
|
||
- ``Benchmark/init(_:configuration:closure:)-3tbq`` | ||
- ``Benchmark/init(_:configuration:closure:)-4rphh`` | ||
- ``Benchmark/init(_:configuration:closure:)-3fdz8`` | ||
- ``Benchmark/init(_:configuration:closure:)-1s1pj`` | ||
|
||
### Configuring Benchmarks | ||
|
||
- ``Benchmark/configuration-swift.property`` | ||
- ``Benchmark/defaultConfiguration`` | ||
- ``Benchmark/Configuration-swift.struct`` | ||
- ``Benchmark/checkAbsoluteThresholds`` | ||
|
||
### Writing Benchmarks | ||
|
||
- ``Benchmark/scaledIterations`` | ||
- ``Benchmark/startMeasurement()`` | ||
- ``Benchmark/stopMeasurement()`` | ||
|
||
### Inspecting Benchmarks | ||
|
||
- ``Benchmark/name`` | ||
- ``Benchmark/currentIteration`` | ||
- ``Benchmark/error(_:)`` | ||
- ``Benchmark/failureReason`` | ||
|
||
### Collecting Custom Metrics | ||
|
||
- ``Benchmark/measurement(_:_:)`` | ||
- ``Benchmark/customMetricMeasurement`` | ||
|
||
### Decoding Benchmarks | ||
|
||
- ``Benchmark/init(from:)`` | ||
|
||
### Comparing Benchmarks | ||
|
||
- ``Benchmark/!=(_:_:)`` | ||
|
66 changes: 66 additions & 0 deletions
66
Sources/BenchmarkSupport/Documentation.docc/BenchmarkMetric.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# ``BenchmarkSupport/BenchmarkMetric`` | ||
|
||
## Topics | ||
|
||
### Metric Collections | ||
|
||
- ``BenchmarkMetric/default`` | ||
- ``BenchmarkMetric/system`` | ||
- ``BenchmarkMetric/extended`` | ||
- ``BenchmarkMetric/memory`` | ||
- ``BenchmarkMetric/disk`` | ||
- ``BenchmarkMetric/all`` | ||
|
||
### System Metrics | ||
|
||
- ``BenchmarkMetric/wallClock`` | ||
- ``BenchmarkMetric/syscalls`` | ||
- ``BenchmarkMetric/contextSwitches`` | ||
- ``BenchmarkMetric/threads`` | ||
- ``BenchmarkMetric/threadsRunning`` | ||
- ``BenchmarkMetric/cpuSystem`` | ||
- ``BenchmarkMetric/cpuUser`` | ||
|
||
### Extended System Metrics | ||
|
||
- ``BenchmarkMetric/wallClock`` | ||
- ``BenchmarkMetric/cpuTotal`` | ||
- ``BenchmarkMetric/mallocCountTotal`` | ||
- ``BenchmarkMetric/throughput`` | ||
- ``BenchmarkMetric/peakMemoryResident`` | ||
- ``BenchmarkMetric/memoryLeaked`` | ||
- ``BenchmarkMetric/allocatedResidentMemory`` | ||
|
||
### Memory Metrics | ||
|
||
- ``BenchmarkMetric/peakMemoryResident`` | ||
- ``BenchmarkMetric/peakMemoryVirtual`` | ||
- ``BenchmarkMetric/mallocCountSmall`` | ||
- ``BenchmarkMetric/mallocCountLarge`` | ||
- ``BenchmarkMetric/mallocCountTotal`` | ||
- ``BenchmarkMetric/memoryLeaked`` | ||
- ``BenchmarkMetric/allocatedResidentMemory`` | ||
|
||
### Disk Metrics | ||
|
||
- ``BenchmarkMetric/readSyscalls`` | ||
- ``BenchmarkMetric/writeSyscalls`` | ||
- ``BenchmarkMetric/readBytesLogical`` | ||
- ``BenchmarkMetric/writeBytesLogical`` | ||
- ``BenchmarkMetric/readBytesPhysical`` | ||
- ``BenchmarkMetric/writeBytesPhysical`` | ||
|
||
### Custom Metrics | ||
|
||
- ``BenchmarkMetric/custom(_:polarity:useScalingFactor:)`` | ||
- ``BenchmarkMetric/polarity-swift.property`` | ||
- ``BenchmarkMetric/Polarity-swift.enum`` | ||
|
||
### Inspecting Metrics | ||
|
||
- ``BenchmarkMetric/description`` | ||
- ``BenchmarkMetric/countable`` | ||
|
||
### Decoding a Metric | ||
|
||
- ``BenchmarkMetric/init(from:)`` |
12 changes: 12 additions & 0 deletions
12
Sources/BenchmarkSupport/Documentation.docc/BenchmarkMetric_Polarity.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ``BenchmarkSupport/BenchmarkMetric/Polarity`` | ||
|
||
## Topics | ||
|
||
### Types of Polarity | ||
|
||
- ``BenchmarkMetric/Polarity/prefersLarger`` | ||
- ``BenchmarkMetric/Polarity/prefersSmaller`` | ||
|
||
### Decoding Polarity | ||
|
||
- ``BenchmarkMetric/Polarity/init(from:)`` |
19 changes: 19 additions & 0 deletions
19
Sources/BenchmarkSupport/Documentation.docc/BenchmarkScalingFactor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ``BenchmarkSupport/BenchmarkScalingFactor`` | ||
|
||
## Topics | ||
|
||
### Selecting Scaling Factors | ||
|
||
- ``BenchmarkScalingFactor/one`` | ||
- ``BenchmarkScalingFactor/kilo`` | ||
- ``BenchmarkScalingFactor/mega`` | ||
- ``BenchmarkScalingFactor/giga`` | ||
- ``BenchmarkScalingFactor/tera`` | ||
- ``BenchmarkScalingFactor/peta`` | ||
- ``BenchmarkScalingFactor/init(_:)`` | ||
- ``BenchmarkScalingFactor/init(rawValue:)`` | ||
|
||
### Describing the Scaling Factor | ||
|
||
- ``BenchmarkScalingFactor/description`` | ||
|
Oops, something went wrong.