Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bentriou Mahmoud
MarkovProcesses.jl
Commits
f7ac4efa
Commit
f7ac4efa
authored
Feb 28, 2021
by
Bentriou Mahmoud
Browse files
small rewrite of euclidean distance automata benchmarks
parent
4c4abbfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/pkg/euclidean_distance_repressilator.jl
View file @
f7ac4efa
...
...
@@ -16,8 +16,14 @@ set_time_bound!(repressilator, tb)
y_obs
=
vectorize
(
simulate
(
repressilator
),
:
P1
,
tml_obs
)
println
(
"Vectorize:"
)
b_vectorize
=
@benchmark
(
σ
=
simulate
(
$
(
repressilator
));
euclidean_distance
(
σ
,
:
P1
,
tml_obs
,
y_obs
))
@btime
(
σ
=
simulate
(
$
(
repressilator
));
euclidean_distance
(
σ
,
:
P1
,
tml_obs
,
y_obs
))
b_vectorize
=
@benchmark
begin
σ
=
simulate
(
$
(
repressilator
))
euclidean_distance
(
σ
,
:
P1
,
tml_obs
,
y_obs
)
end
@btime
begin
σ
=
simulate
(
$
(
repressilator
))
euclidean_distance
(
σ
,
:
P1
,
tml_obs
,
y_obs
)
end
@show
minimum
(
b_vectorize
),
mean
(
b_vectorize
),
maximum
(
b_vectorize
)
println
(
"Automaton with 1 loc"
)
...
...
bench/pkg/euclidean_distance_sir.jl
View file @
f7ac4efa
...
...
@@ -29,10 +29,11 @@ b_vol_sim_aut1 = @benchmark (σ = volatile_simulate($(sync1)))
@btime
(
σ
=
volatile_simulate
(
$
(
sync1
)))
@show
minimum
(
b_vol_sim_aut1
),
mean
(
b_vol_sim_aut1
),
maximum
(
b_vol_sim_aut1
)
#=
println("Memory test")
Profile.clear_malloc_data()
σ = volatile_simulate(sync1)
exit
()
=#
println
(
"Automaton with nbr_obs loc"
)
aut2
=
create_euclidean_distance_automaton_2
(
SIR
,
tml_obs
,
y_obs
,
:
I
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment