mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] Simplify benchmark registration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user