FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
taskflow/benchmarks/async_task/async_task.hpp at task_isolation · ModuleWorks/taskflow · GitHub
ModuleWorks
/
taskflow
Public
forked from
taskflow/taskflow
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
taskflow
/
benchmarks
/
async_task
/
async_task.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (15 loc) · 553 Bytes
Breadcrumbs
taskflow
/
benchmarks
/
async_task
/
async_task.hpp
Copy path
File metadata and controls
18 lines (15 loc) · 553 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
pragma
once
#
include
<
algorithm
>
//
for std::max
#
include
<
cassert
>
#
include
<
cstdio
>
#
include
<
chrono
>
#
include
<
iostream
>
#
include
<
iomanip
>
#
include
<
thread
>
#
include
<
random
>
#
include
<
cmath
>
inline
void
func
(std::atomic<
size_t
>& counter) { counter.
fetch_add
(
1
, std::memory_order_relaxed); }
std::chrono::microseconds
measure_time_taskflow
(
unsigned
,
size_t
);
std::chrono::microseconds
measure_time_omp
(
unsigned
,
size_t
);
std::chrono::microseconds
measure_time_tbb
(
unsigned
,
size_t
);
std::chrono::microseconds
measure_time_std
(
unsigned
,
size_t
);
Back
|
FazBrowse Home
|
New Git URL