Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Benchmarks/TOMLDecoderBenchmarks/Benchmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ let benchmarks: @Sendable () -> Void = {
benchmark.startMeasurement()
try blackHole(decoder.decode(TwitterArchive.self, from: Resources.twitterTOMLString))
}

Benchmark("parse GitHub events archive") { _ in
try blackHole(TOMLTable(source: Resources.eventArchiveTOMLString))
}
}

let tomlIOTOML = """
Expand Down
4 changes: 4 additions & 0 deletions Sources/Resources/Resources.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ public enum Resources {
public static var canadaTOMLString: String {
stringContent(forResource: "canada.toml")
}

public static var eventArchiveTOMLString: String {
stringContent(forResource: "github-events-archive.toml")
}
}
Loading
Loading