File size: 1,677 Bytes
902bb3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// swift-tools-version: 6.0

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")
            ]
        ),
    ]
)