Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tapasco
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
52
Issues
52
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tapasco
tapasco
Commits
562a94ca
Commit
562a94ca
authored
May 30, 2017
by
Jens Korinth
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark: reduce InterruptLatency load
parent
e2bced6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/tests/InterruptLatency.hpp
arch/tests/InterruptLatency.hpp
+4
-4
No files found.
arch/tests/InterruptLatency.hpp
View file @
562a94ca
...
...
@@ -43,7 +43,7 @@ public:
static
constexpr
long
OP_COPYFROM
=
1
;
static
constexpr
long
OP_COPYTO
=
2
;
double
operator
()(
size_t
const
runtime_usecs
)
{
/*
double operator()(size_t const runtime_usecs) {
CumulativeAverage<double> cavg { 0 };
uint32_t clock_cycles = runtime_usecs * 100; // assuming 100Mhz clock
bool stop = false;
...
...
@@ -67,7 +67,7 @@ public:
move(y+1, 0);
endwin();
return cavg();
}
}
*/
double
atcycles
(
uint32_t
const
clock_cycles
,
size_t
const
min_runs
=
100
,
double
*
min
=
NULL
,
double
*
max
=
NULL
)
{
CumulativeAverage
<
double
>
cavg
{
0
};
...
...
@@ -83,8 +83,8 @@ public:
mvprintw
(
y
,
x
,
"Runtime: %12zu cc, Latency: % 12.1f, Min: % 12.1f, Max: % 12.1f, Count: %zu/%zu"
,
clock_cycles
,
cavg
(),
cavg
.
min
(),
cavg
.
max
(),
cavg
.
size
(),
min_runs
);
refresh
();
usleep
(
1000
);
}
while
(
getch
()
==
ERR
&&
(
fabs
(
cavg
.
delta
())
>
0.0
0
1
||
cavg
.
size
()
<
min_runs
));
usleep
(
1000
000
);
}
while
(
getch
()
==
ERR
&&
(
fabs
(
cavg
.
delta
())
>
0.01
||
cavg
.
size
()
<
min_runs
));
stop
=
true
;
f
.
get
();
...
...
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
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