mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
* Stop depending on swift-collections-benchmark Instead, move the benchmark suite into its own private nested package, under `Benchmarks/`. The recommended way to build & run benchmarks is via the `Utils/run-benchmarks.sh` script, which continues to work as before with this change. * Delete top-level Package.resolved file # Conflicts: # .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme # Package.swift
27 lines
862 B
Swift
27 lines
862 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2021 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import CollectionsBenchmark
|
|
import Benchmarks
|
|
|
|
var benchmark = Benchmark(title: "Collection Benchmarks")
|
|
benchmark.addArrayBenchmarks()
|
|
benchmark.addSetBenchmarks()
|
|
benchmark.addDictionaryBenchmarks()
|
|
benchmark.addDequeBenchmarks()
|
|
benchmark.addOrderedSetBenchmarks()
|
|
benchmark.addOrderedDictionaryBenchmarks()
|
|
benchmark.addCppBenchmarks()
|
|
|
|
benchmark.chartLibrary = try benchmark.loadReferenceLibrary()
|
|
|
|
benchmark.main()
|