We need at least 7 samples for scale-test to produce a reliable result

One test was miscategorized as 'fast' because of this issue, but it
would occasionally fail. It turns out it always fails once you ask
for 7 points or more, so let's fix that and move it back to 'slow'.

Fixes rdar://162597936.
This commit is contained in:
Slava Pestov
2025-10-15 14:33:42 -04:00
parent ccea0961eb
commit 0aece0c28e
36 changed files with 43 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
extension String {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/46253

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/46253

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/47685

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/47896

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
enum A {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/48588

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/49650

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/50046

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/52563

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/53001

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/54695

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumConstraintScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumConstraintScopes %s
// REQUIRES: asserts,no_asan
struct Root {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
typealias X = (Range<Int>, [Range<Int>])

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
let _ = (UInt8(0)

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
func overload(_ x: Int) -> Int { return x }

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
let tuple = (UInt8(0)

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
let tuple: (UInt8

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-verify
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-verify
// REQUIRES: asserts,no_asan
weak var tuple = (UInt8(0) // expected-error {{'weak' may only be applied to}}

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
enum E: UInt {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
struct S {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
let _ = [

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
let _: [String : (Int, Int) -> Bool] = [

View File

@@ -1,4 +1,4 @@
// RUN: not %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
// RUN: not %scale-test --begin 1 --end 7 --step 1 --select incrementScopeCounter %s
// REQUIRES: OS=macosx
// REQUIRES: asserts

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s --expected-exit-code 1
// REQUIRES: asserts,no_asan
% enum_cases = 3

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
struct rdar33511986 {

View File

@@ -1,14 +0,0 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
// Flaky is some configurations including simulators
// REQUIRES: OS=macosx
// REQUIRES: CPU=arm64 || CPU=arm64e
func f(c: Float, a: SIMD2<Float>) -> SIMD2<Float> {
return (c * a)
%for i in range(1, N):
+ (c * a)
%end
}

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
struct Value: RandomAccessCollection, RangeReplaceableCollection {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
func slow() {

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/54830

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/55762

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
// REQUIRES: asserts, no_asan
// https://github.com/swiftlang/swift/issues/58051

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s --expected-exit-code 1
// REQUIRES: asserts,no_asan
% enum_cases = N

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --invert-result --begin 2 --end 6 --step 1 --select NumLeafScopes %s
// RUN: %scale-test --invert-result --begin 2 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
// REQUIRES: rdar42969824,no_asan

View File

@@ -0,0 +1,9 @@
// RUN: %scale-test --invert --begin 1 --end 7 --step 1 --select NumLeafScopes %s
// REQUIRES: asserts,no_asan
func f(c: Float, a: SIMD2<Float>) -> SIMD2<Float> {
return (c * a)
%for i in range(1, N):
+ (c * a)
%end
}

View File

@@ -1,4 +1,4 @@
// RUN: %scale-test --begin 1 --end 5 --step 1 --select VarDeclUsageCheckerExprVisits %s
// RUN: %scale-test --begin 1 --end 7 --step 1 --select VarDeclUsageCheckerExprVisits %s
// REQUIRES: asserts
protocol Proto {}