Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Tests/AppTests/Helpers/Tag+ext.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright Dave Verwer, Sven A. Schmidt, and other contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import Testing


extension Tag {
@Tag static var performance: Self
}
2 changes: 2 additions & 0 deletions Tests/AppTests/QueryPerformanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@


@Suite(
.serialized,
.tags(.performance),
.disabled(if: !runQueryPerformanceTests())
)
struct QueryPerformanceTests {
Expand Down Expand Up @@ -174,7 +176,7 @@
JOIN versions v ON v.package_id = p.id
WHERE v.reference ->> 'branch' = r.default_branch
""")
try await assertQueryPerformance(query, expectedCost: 132_000, variation: 5000)

Check warning on line 179 in Tests/AppTests/QueryPerformanceTests.swift

View workflow job for this annotation

GitHub Actions / Query Performance Test

queryPerformance_12_Search_refresh()

Total cost of 133066.0 close to the threshold of 137000.0
}
}

Expand Down
Loading