Skip to content

Commit 3f8c788

Browse files
committed
add case for speedtest project
1 parent a90a1f1 commit 3f8c788

3 files changed

Lines changed: 26 additions & 5 deletions

File tree

tests/Speedtest/ManyStudies.fs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module ManyStudies
2+
3+
open ARCtrl.ISA.Spreadsheet
4+
open ARCtrl.ISA
5+
6+
7+
let write () =
8+
9+
let inv = ArcInvestigation.init("MyInvestigation")
10+
for i = 0 to 1500 do
11+
let s = ArcStudy.init($"Study{i}")
12+
inv.AddRegisteredStudy(s)
13+
ArcInvestigation.toFsWorkbook inv

tests/Speedtest/Program.fs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
[<EntryPoint>]
55
let main argv =
66

7-
LargeStudy.createStudy 10000
8-
|> LargeStudy.toWorkbook
9-
|> LargeStudy.fromWorkbook
10-
|> ignore
11-
1
7+
if Array.contains "--manyStudies" argv then
8+
ManyStudies.write() |> ignore
9+
1
10+
elif Array.contains "--largeStudy" argv then
11+
12+
LargeStudy.createStudy 10000
13+
|> LargeStudy.toWorkbook
14+
|> LargeStudy.fromWorkbook
15+
|> ignore
16+
1
17+
else
18+
0

tests/Speedtest/Speedtest.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9+
<Compile Include="ManyStudies.fs" />
910
<Compile Include="LargeStudy.fs" />
1011
<Compile Include="Program.fs" />
1112
</ItemGroup>

0 commit comments

Comments
 (0)