Skip to content

Commit edafb35

Browse files
committed
Fix benchmark visibility
1 parent 46df03f commit edafb35

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ env:
1616
# Keep versions in sync with README
1717
SWIFTLINT_VERSION: 0.62.2
1818
SWIFTFORMAT_VERSION: 0.58.6
19-
SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING: 1
2019
jobs:
2120
soundness:
2221
name: soundness
@@ -34,6 +33,7 @@ jobs:
3433
with:
3534
enable_windows_checks: false
3635
linux_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}, {\"swift_version\": \"5.10\"}]"
36+
linux_env_vars: SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1
3737
linux_pre_build_command: "apt-get update && apt-get install -y libjemalloc-dev"
3838
linux_build_command: >
3939
swift test --configuration release;

Benchmarks/PolyBenchmark/PolyBenchmark.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
// These benchmarks can be triggered with
1717
// SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1 swift package benchmark --target PolyBenchmark
1818

19-
import Benchmark
20-
import HomomorphicEncryption
19+
public import Benchmark
20+
public import HomomorphicEncryption
2121

2222
@usableFromInline nonisolated(unsafe) let benchmarkConfiguration = Benchmark.Configuration(
2323
metrics: [.wallClock, .mallocCountTotal, .peakMemoryResident],

Benchmarks/RlweBenchmark/RlweBenchmark.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
// These benchmarks can be triggered with
1717
// SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1 swift package benchmark --target RlweBenchmark
1818

19-
import Benchmark
20-
import HomomorphicEncryption
19+
public import Benchmark
20+
public import HomomorphicEncryption
2121

2222
@usableFromInline nonisolated(unsafe) let benchmarkConfiguration = Benchmark.Configuration(
2323
metrics: [.wallClock, .mallocCountTotal, .peakMemoryResident],

Sources/_BenchmarkUtilities/BenchmarkMetricExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Benchmark
16-
import HomomorphicEncryption
16+
public import HomomorphicEncryption
1717

1818
let noiseBudgetScale = 10
1919

Sources/_BenchmarkUtilities/PirBenchmarkUtilities.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
// limitations under the License.
1414

1515
import ApplicationProtobuf
16-
import Benchmark
16+
public import Benchmark
1717
import Foundation
18-
import HomomorphicEncryption
18+
public import HomomorphicEncryption
1919
import HomomorphicEncryptionProtobuf
20-
import PrivateInformationRetrieval
20+
public import PrivateInformationRetrieval
2121

2222
@usableFromInline nonisolated(unsafe) let pirBenchmarkConfiguration = Benchmark.Configuration(
2323
metrics: [

Sources/_BenchmarkUtilities/PnnsBenchmarkUtilities.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// limitations under the License.
1414

1515
import ApplicationProtobuf
16-
import Benchmark
16+
public import Benchmark
1717
import Foundation
18-
import HomomorphicEncryption
18+
public import HomomorphicEncryption
1919
import HomomorphicEncryptionProtobuf
2020
import PrivateNearestNeighborSearch
2121

0 commit comments

Comments
 (0)