Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
llvm
Hercules
Merge requests
!200
Rodinia benches
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Rodinia benches
rodinia_benches
into
main
Overview
2
Commits
5
Pipelines
4
Changes
9
Merged
rarbore2
requested to merge
rodinia_benches
into
main
3 weeks ago
Overview
2
Commits
5
Pipelines
4
Changes
5
Expand
Set up benches for rodinia samples.
Edited
3 weeks ago
by
rarbore2
0
0
Merge request reports
Compare
version 1
version 3
5f96afc7
3 weeks ago
version 2
b4e9f258
3 weeks ago
version 1
cbd5e70e
3 weeks ago
main (base)
and
version 2
latest version
747b2f41
5 commits,
3 weeks ago
version 3
5f96afc7
4 commits,
3 weeks ago
version 2
b4e9f258
3 commits,
3 weeks ago
version 1
cbd5e70e
2 commits,
3 weeks ago
Show latest version
5 files
+
97
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
juno_samples/rodinia/bfs/benches/bfs_bench.rs
0 → 100644
+
41
−
0
Options
#![feature(concat_idents)]
use
criterion
::{
criterion_group
,
criterion_main
,
Criterion
};
use
hercules_rt
::{
runner
,
HerculesImmBox
,
HerculesImmBoxTo
};
juno_build
::
juno!
(
"bfs"
);
use
juno_bfs
::
graph_parser
::
*
;
fn
bfs_bench
(
c
:
&
mut
Criterion
)
{
let
mut
group
=
c
.benchmark_group
(
"bfs bench"
);
let
mut
r
=
runner!
(
bfs
);
let
input
=
"data/graph4096.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
());
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
group
.bench_function
(
"bfs bench 4096"
,
|
b
|
{
b
.iter
(||
{
async_std
::
task
::
block_on
(
async
{
r
.run
(
n
,
m
,
nodes
.to
(),
source
,
edges
.to
())
.await
});
})
});
let
input
=
"data/graph65536.txt"
;
let
(
nodes
,
source
,
edges
)
=
parse_graph
(
input
.into
());
let
n
=
nodes
.len
()
as
u64
;
let
m
=
edges
.len
()
as
u64
;
let
nodes
=
HerculesImmBox
::
from
(
&
nodes
as
&
[
Node
]);
let
edges
=
HerculesImmBox
::
from
(
&
edges
as
&
[
u32
]);
group
.bench_function
(
"bfs bench 65536"
,
|
b
|
{
b
.iter
(||
{
async_std
::
task
::
block_on
(
async
{
r
.run
(
n
,
m
,
nodes
.to
(),
source
,
edges
.to
())
.await
});
})
});
}
criterion_group!
(
benches
,
bfs_bench
);
criterion_main!
(
benches
);
Loading