Skip to content

Commit

Permalink
Rel 8.1.3 - Performance tests for redcards
Browse files Browse the repository at this point in the history
  • Loading branch information
goedman committed Dec 28, 2021
1 parent 9ea40cd commit e7fbd72
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ docs/build/
docs/site/
Manifest.toml
tmp
tmp0
tmp1
10 changes: 10 additions & 0 deletions Examples/RedCardsStudy/arm.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"log_0, 1 chns","log_0, 2 chns","log_0, 3 chns","log_0, 4 chns","log_1, 1 chns","log_1, 2 chns","log_1, 3 chns","log_1, 4 chns"
41.023862417,42.655361959,43.110677625,44.619413667,46.11913975,47.977601667,48.612196417,49.736750416
42.272856541,42.571282708,43.944682583,44.110965292,23.917037166,25.657362167,27.386514375,27.3470495
40.314595167,46.726935958,44.969100375,44.086822125,17.628457959,17.781655375,20.965038791,24.45629825
44.919606042,41.920868083,43.576483333,47.626793875,14.88494125,14.388436334,19.027889916,25.938662209
41.648903333,44.290022583,45.514129875,44.710443792,12.156413125,14.475557667,20.265005792,26.732482042
40.561737833,42.758597417,43.211566541,45.585818334,11.831061042,13.920997,20.325507834,26.8769525
40.29560775,44.927340875,44.271263666,45.99334625,10.559909417,13.600198208,21.530985625,29.384167834
44.245604125,45.768960584,43.830181417,43.681353167,9.8731715,14.294346,20.065339375,26.68724
42.021569833,43.8757395,43.8158525,44.660354792,8.179439792,14.74420675,20.307062459,28.330105958
6 changes: 1 addition & 5 deletions Examples/RedCardsStudy/redcardstudy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ if success(rc_1)
println()
end

println("Timing of logitic_0:")
for i in 1:9
@time stan_sample(logistic_0; data, num_threads=i, num_cpp_chains=1, num_chains=1);
end

df = DataFrame()
for k = 1:4
res = zeros(9);
Expand All @@ -118,3 +113,4 @@ for k = 1:4
df |> display
end

CSV.write(joinpath(ProjDir, "arm.csv"), df)

0 comments on commit e7fbd72

Please sign in to comment.