Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simcore-rs
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas Markeffsky
Simcore-rs
Commits
0c119827
Commit
0c119827
authored
4 years ago
by
Dorian Weber
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the benchmark code after breaking it when I slightly changed the API.
parent
f148ed3e
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/barbershop.rs
+2
-2
2 additions, 2 deletions
examples/barbershop.rs
examples/ferry.rs
+4
-3
4 additions, 3 deletions
examples/ferry.rs
examples/philosophers.rs
+1
-1
1 addition, 1 deletion
examples/philosophers.rs
examples/slx/mod.rs
+1
-1
1 addition, 1 deletion
examples/slx/mod.rs
with
8 additions
and
7 deletions
examples/barbershop.rs
+
2
−
2
View file @
0c119827
...
...
@@ -106,7 +106,7 @@ mod bench {
PlotConfiguration
::
default
()
.summary_scale
(
AxisScale
::
Logarithmic
)
);
group
.sampling_mode
(
SamplingMode
::
Linear
);
//
group.sampling_mode(SamplingMode::Linear);
//group.measurement_time(Duration::from_secs(300));
if
!
cfg!
(
windows
)
{
...
...
@@ -161,7 +161,7 @@ mod bench {
},
|
shared
|
simcore_rs
::
simulation
(
shared
,
|
sim
|
sim
.p
rocess
(
barbershop
(
sim
,
sim_duration
))
|
sim
|
P
rocess
::
new
(
sim
,
barbershop
(
sim
,
sim_duration
))
),
BatchSize
::
SmallInput
)
...
...
This diff is collapsed.
Click to expand it.
examples/ferry.rs
+
4
−
3
View file @
0c119827
...
...
@@ -184,8 +184,8 @@ mod bench {
PlotConfiguration
::
default
()
.summary_scale
(
AxisScale
::
Logarithmic
)
);
group
.sampling_mode
(
SamplingMode
::
Linear
);
group
.measurement_time
(
Duration
::
from_secs
(
600
));
//
group.sampling_mode(SamplingMode::Linear);
//
group.measurement_time(Duration::from_secs(600));
if
!
cfg!
(
windows
)
{
println!
(
"Not running under Windows, skipping SLX benchmarks!"
);
...
...
@@ -243,7 +243,8 @@ mod bench {
},
|
shared
|
simcore_rs
::
simulation
(
shared
,
|
sim
|
sim
.process
(
|
sim
|
Process
::
new
(
sim
,
ferry
(
sim
,
sim_duration
,
FERRY_COUNT
,
HARBOR_COUNT
)
)
),
...
...
This diff is collapsed.
Click to expand it.
examples/philosophers.rs
+
1
−
1
View file @
0c119827
...
...
@@ -180,7 +180,7 @@ mod bench {
.summary_scale
(
AxisScale
::
Logarithmic
)
);
//group.sampling_mode(SamplingMode::Linear);
group
.measurement_time
(
Duration
::
from_secs
(
900
));
//
group.measurement_time(Duration::from_secs(900));
if
!
cfg!
(
windows
)
{
println!
(
"Not running under Windows, skipping SLX benchmarks!"
);
...
...
This diff is collapsed.
Click to expand it.
examples/slx/mod.rs
+
1
−
1
View file @
0c119827
...
...
@@ -60,7 +60,7 @@ pub fn slx_bench(program: &str, arguments: &[&str], iterations: usize) -> Result
(
1
..
)
.map
(|
i
|
iterations
>>
i
)
.take_while
(|
&
chunk_size
|
chunk_size
>
0
)
.inspect
(|
chunk_size
|
println!
(
"reducing the chunk size to {}"
,
chunk_size
))
//
.inspect(|chunk_size| println!("reducing the chunk size to {}", chunk_size))
.map
(|
chunk_size
|
{
(
0
..
(
iterations
-
1
)
/
chunk_size
)
.map
(|
_
|
chunk_size
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment