[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
@@ -12,11 +12,13 @@
import TestsUtils
public let PopFrontArrayGeneric = BenchmarkInfo(
name: "PopFrontArrayGeneric",
runFunction: run_PopFrontArrayGeneric,
tags: [.validation, .api, .Array],
legacyFactor: 20)
public let benchmarks = [
BenchmarkInfo(
name: "PopFrontArrayGeneric",
runFunction: run_PopFrontArrayGeneric,
tags: [.validation, .api, .Array],
legacyFactor: 20),
]
let arrayCount = 1024