Skip to content

Commit 9a9b7f9

Browse files
committed
revert: benchmarks changes
1 parent d6373cc commit 9a9b7f9

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

benchmarks/GraphBLAS-sharp.Benchmarks/Algorithms/BFS.fs

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ open GraphBLAS.FSharp.Objects.ArraysExtensions
1212
open GraphBLAS.FSharp.Backend.Quotes
1313

1414
[<AbstractClass>]
15-
[<IterationCount(10)>]
16-
[<WarmupCount(3)>]
15+
[<IterationCount(100)>]
16+
[<WarmupCount(10)>]
1717
[<Config(typeof<Configs.Matrix>)>]
1818
type Benchmarks<'elem when 'elem : struct>(
1919
buildFunToBenchmark,
@@ -139,30 +139,6 @@ type BFSWithoutTransferBenchmarkInt32() =
139139
static member InputMatrixProvider =
140140
Benchmarks<_>.InputMatrixProviderBuilder "BFSBenchmarks.txt"
141141

142-
type BFSPushPullWithoutTransferBenchmarkInt32() =
143-
144-
inherit WithoutTransferBenchmark<int>(
145-
(Algorithms.BFS.singleSourcePushPull ArithmeticOperations.intSumOption ArithmeticOperations.intMulOption),
146-
int32,
147-
(fun _ -> Utils.nextInt (System.Random())),
148-
0,
149-
(fun context matrix -> ClMatrix.CSR <| matrix.ToCSR.ToDevice context))
150-
151-
static member InputMatrixProvider =
152-
Benchmarks<_>.InputMatrixProviderBuilder "BFSBenchmarks.txt"
153-
154-
type SSSPWithoutTransferBenchmarkInt32() =
155-
156-
inherit WithoutTransferBenchmark<int>(
157-
Algorithms.SSSP.run,
158-
int32,
159-
(fun _ -> Utils.nextInt (System.Random())),
160-
0,
161-
(fun context matrix -> ClMatrix.CSR <| matrix.ToCSR.ToDevice context))
162-
163-
static member InputMatrixProvider =
164-
Benchmarks<_>.InputMatrixProviderBuilder "BFSBenchmarks.txt"
165-
166142
type WithTransferBenchmark<'elem when 'elem : struct>(
167143
buildFunToBenchmark,
168144
converter: string -> 'elem,
@@ -211,4 +187,3 @@ type BFSWithTransferBenchmarkInt32() =
211187

212188
static member InputMatrixProvider =
213189
Benchmarks<_>.InputMatrixProviderBuilder "BFSBenchmarks.txt"
214-

benchmarks/GraphBLAS-sharp.Benchmarks/GraphBLAS-sharp.Benchmarks.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<Compile Include="Matrix/Map2/MathNET.fs" />
2626
<Compile Include="Vector/Map2.fs" />
2727
<Compile Include="Algorithms/BFS.fs" />
28-
<Compile Include="Algorithms/PageRank.fs" />
2928
<Compile Include="Program.fs" />
3029
<Folder Include="Datasets" />
3130
</ItemGroup>

benchmarks/GraphBLAS-sharp.Benchmarks/Program.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ open BenchmarkDotNet.Running
44
[<EntryPoint>]
55
let main argv =
66
let benchmarks =
7-
BenchmarkSwitcher [| typeof<Algorithms.BFS.BFSWithoutTransferBenchmarkInt32>
8-
typeof<Algorithms.BFS.BFSPushPullWithoutTransferBenchmarkInt32>
9-
typeof<Algorithms.PageRank.PageRankWithoutTransferBenchmarkFloat32> |]
7+
BenchmarkSwitcher [| typeof<Algorithms.BFS.BFSWithoutTransferBenchmarkInt32> |]
108

119
benchmarks.Run argv |> ignore
1210
0

0 commit comments

Comments
 (0)