[benchmark] Simplify benchmark registration

This commit is contained in:
Karoy Lorentey
2021-09-15 20:59:39 -07:00
parent 8910b75cfe
commit 8944591e71
184 changed files with 1110 additions and 953 deletions

View File

@@ -2,7 +2,7 @@
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Copyright (c) 2014 - 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
@@ -13,11 +13,13 @@
import TestsUtils
import Foundation
public let IterateData = BenchmarkInfo(
name: "IterateData",
runFunction: run_IterateData,
tags: [.validation, .api, .Data],
setUpFunction: { blackHole(data) })
public let benchmarks = [
BenchmarkInfo(
name: "IterateData",
runFunction: run_IterateData,
tags: [.validation, .api, .Data],
setUpFunction: { blackHole(data) }),
]
let data: Data = {
var data = Data(count: 16 * 1024)