|
|
|
|
|
import PackageDescription |
|
|
|
let package = Package( |
|
name: "EmbeddingsBenchmark", |
|
platforms: [ |
|
.macOS(.v15) |
|
], |
|
dependencies: [ |
|
.package( |
|
url: "https://github.com/jkrukowski/SQLiteVec.git", |
|
from: "0.0.13" |
|
), |
|
.package( |
|
url: "https://github.com/jkrukowski/swift-embeddings", |
|
from: "0.0.11" |
|
), |
|
.package( |
|
url: "https://github.com/ordo-one/package-benchmark", |
|
from: "1.27.4" |
|
) |
|
], |
|
targets: [ |
|
.target( |
|
name: "EmbeddingsBenchmarkLib", |
|
dependencies: [ |
|
.product(name: "SQLiteVec", package: "SQLiteVec"), |
|
.product(name: "Embeddings", package: "swift-embeddings") |
|
] |
|
), |
|
.testTarget( |
|
name: "EmbeddingsBenchmarkTests", |
|
dependencies: [ |
|
"EmbeddingsBenchmarkLib", |
|
.product(name: "SQLiteVec", package: "SQLiteVec"), |
|
.product(name: "Embeddings", package: "swift-embeddings") |
|
] |
|
), |
|
.executableTarget( |
|
name: "EmbeddingsBenchmark", |
|
dependencies: [ |
|
"EmbeddingsBenchmarkLib", |
|
.product(name: "SQLiteVec", package: "SQLiteVec"), |
|
.product(name: "Embeddings", package: "swift-embeddings"), |
|
.product(name: "Benchmark", package: "package-benchmark") |
|
], |
|
path: "Benchmarks/EmbeddingsBenchmark", |
|
plugins: [ |
|
.plugin(name: "BenchmarkPlugin", package: "package-benchmark") |
|
] |
|
), |
|
] |
|
) |
|
|