//===--- Prefix.swift -----------------------------------------*- swift -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 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 // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// //////////////////////////////////////////////////////////////////////////////// // WARNING: This file is manually generated from .gyb template and should not // be directly modified. Instead, make changes to Prefix.swift.gyb and run // scripts/generate_harness/generate_harness.py to regenerate this file. //////////////////////////////////////////////////////////////////////////////// import TestsUtils let sequenceCount = 4096 let prefixCount = sequenceCount - 1024 let sumCount = prefixCount * (prefixCount - 1) / 2 public let Prefix = [ BenchmarkInfo( name: "PrefixCountableRange", runFunction: run_PrefixCountableRange, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixSequence", runFunction: run_PrefixSequence, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySequence", runFunction: run_PrefixAnySequence, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySeqCntRange", runFunction: run_PrefixAnySeqCntRange, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySeqCRangeIter", runFunction: run_PrefixAnySeqCRangeIter, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnyCollection", runFunction: run_PrefixAnyCollection, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixArray", runFunction: run_PrefixArray, tags: [.validation, .api, .Array]), BenchmarkInfo( name: "PrefixCountableRangeLazy", runFunction: run_PrefixCountableRangeLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixSequenceLazy", runFunction: run_PrefixSequenceLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySequenceLazy", runFunction: run_PrefixAnySequenceLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySeqCntRangeLazy", runFunction: run_PrefixAnySeqCntRangeLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnySeqCRangeIterLazy", runFunction: run_PrefixAnySeqCRangeIterLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixAnyCollectionLazy", runFunction: run_PrefixAnyCollectionLazy, tags: [.validation, .api]), BenchmarkInfo( name: "PrefixArrayLazy", runFunction: run_PrefixArrayLazy, tags: [.validation, .api]), ] @inline(never) public func run_PrefixCountableRange(_ N: Int) { let s = 0..