-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimise parsing by removing excessive copying. (#278)
* Optimise parsing by removing excessive copying. * Add benchmark --------- Co-authored-by: Joannis Orlandos <joannis@orlandos.nl>
- Loading branch information
1 parent
c125e55
commit ced9c53
Showing
8 changed files
with
1,311 additions
and
27 deletions.
There are no files selected for viewing
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,28 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"sourceLanguages": [ | ||
"swift" | ||
], | ||
"args": [], | ||
"cwd": "${workspaceFolder:Benchmarks}", | ||
"name": "Debug XMLCoderBenchmarks", | ||
"program": "${workspaceFolder:Benchmarks}/.build/debug/XMLCoderBenchmarks", | ||
"preLaunchTask": "swift: Build Debug XMLCoderBenchmarks" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"sourceLanguages": [ | ||
"swift" | ||
], | ||
"args": [], | ||
"cwd": "${workspaceFolder:Benchmarks}", | ||
"name": "Release XMLCoderBenchmarks", | ||
"program": "${workspaceFolder:Benchmarks}/.build/release/XMLCoderBenchmarks", | ||
"preLaunchTask": "swift: Build Release XMLCoderBenchmarks" | ||
} | ||
] | ||
} |
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,14 @@ | ||
import Benchmark | ||
|
||
let benchmarks = { | ||
Benchmark( | ||
"XMLDecoder", | ||
configuration: .init( | ||
metrics: [ | ||
.throughput | ||
] | ||
) | ||
) { benchmark in | ||
try runXMLDecoder() | ||
} | ||
} |
Oops, something went wrong.