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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
# Keep versions in sync with README
SWIFTLINT_VERSION: 0.62.2
SWIFTFORMAT_VERSION: 0.58.6
SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING: 1
jobs:
soundness:
name: soundness
Expand All @@ -34,6 +33,7 @@ jobs:
with:
enable_windows_checks: false
linux_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}, {\"swift_version\": \"5.10\"}]"
linux_env_vars: SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1
linux_pre_build_command: "apt-get update && apt-get install -y libjemalloc-dev"
linux_build_command: >
swift test --configuration release;
Expand Down
4 changes: 2 additions & 2 deletions Benchmarks/PolyBenchmark/PolyBenchmark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// These benchmarks can be triggered with
// SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1 swift package benchmark --target PolyBenchmark

import Benchmark
import HomomorphicEncryption
public import Benchmark
public import HomomorphicEncryption

@usableFromInline nonisolated(unsafe) let benchmarkConfiguration = Benchmark.Configuration(
metrics: [.wallClock, .mallocCountTotal, .peakMemoryResident],
Expand Down
4 changes: 2 additions & 2 deletions Benchmarks/RlweBenchmark/RlweBenchmark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// These benchmarks can be triggered with
// SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING=1 swift package benchmark --target RlweBenchmark

import Benchmark
import HomomorphicEncryption
public import Benchmark
public import HomomorphicEncryption

@usableFromInline nonisolated(unsafe) let benchmarkConfiguration = Benchmark.Configuration(
metrics: [.wallClock, .mallocCountTotal, .peakMemoryResident],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

import Benchmark
import HomomorphicEncryption
public import HomomorphicEncryption

let noiseBudgetScale = 10

Expand Down
6 changes: 3 additions & 3 deletions Sources/_BenchmarkUtilities/PirBenchmarkUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
// limitations under the License.

import ApplicationProtobuf
import Benchmark
public import Benchmark
import Foundation
import HomomorphicEncryption
public import HomomorphicEncryption
import HomomorphicEncryptionProtobuf
import PrivateInformationRetrieval
public import PrivateInformationRetrieval

@usableFromInline nonisolated(unsafe) let pirBenchmarkConfiguration = Benchmark.Configuration(
metrics: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/_BenchmarkUtilities/PnnsBenchmarkUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// limitations under the License.

import ApplicationProtobuf
import Benchmark
public import Benchmark
import Foundation
import HomomorphicEncryption
public import HomomorphicEncryption
import HomomorphicEncryptionProtobuf
import PrivateNearestNeighborSearch

Expand Down