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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user