Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
queues
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
Model registry
Operate
Environments
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
samarth5
queues
Commits
2d54dc56
Commit
2d54dc56
authored
7 years ago
by
samarth5
Browse files
Options
Downloads
Patches
Plain Diff
Renaming abbreviations
parent
a69e93a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BenchmarkingModule.cpp
+12
-8
12 additions, 8 deletions
BenchmarkingModule.cpp
with
12 additions
and
8 deletions
BenchmarkingModule.cpp
+
12
−
8
View file @
2d54dc56
...
@@ -84,7 +84,7 @@ int main()
...
@@ -84,7 +84,7 @@ int main()
ofstream
file1
;
ofstream
file1
;
file1
.
open
(
"1.txt"
);
file1
.
open
(
"1.txt"
);
file1
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
t
: "
<<
1
<<
endl
file1
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
umberOfThreads
: "
<<
1
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation1
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation1
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation9
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation9
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -92,7 +92,7 @@ int main()
...
@@ -92,7 +92,7 @@ int main()
ofstream
file2
;
ofstream
file2
;
file2
.
open
(
"2.txt"
);
file2
.
open
(
"2.txt"
);
file2
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
t
: "
<<
1
<<
endl
file2
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
umberOfThreads
: "
<<
1
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation2
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation2
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation10
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation10
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -100,7 +100,7 @@ int main()
...
@@ -100,7 +100,7 @@ int main()
ofstream
file3
;
ofstream
file3
;
file3
.
open
(
"3.txt"
);
file3
.
open
(
"3.txt"
);
file3
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
t
: "
<<
maxThreads
<<
endl
file3
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation3
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation3
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation11
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation11
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -108,7 +108,7 @@ int main()
...
@@ -108,7 +108,7 @@ int main()
ofstream
file4
;
ofstream
file4
;
file4
.
open
(
"4.txt"
);
file4
.
open
(
"4.txt"
);
file4
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
t
: "
<<
maxThreads
<<
endl
file4
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation4
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation4
,
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation12
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueOperation12
,
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -116,7 +116,7 @@ int main()
...
@@ -116,7 +116,7 @@ int main()
ofstream
file5
;
ofstream
file5
;
file5
.
open
(
"5.txt"
);
file5
.
open
(
"5.txt"
);
file5
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
d: "
<<
numberOfItemsToDequeueSmall
<<
"
\t
N
t
: "
<<
maxThreads
<<
"
\t
DequeueInterval: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
file5
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
ItemsDequeue
d: "
<<
numberOfItemsToDequeueSmall
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
"
\t
DequeueInterval
MicroSeconds
: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation1
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation1
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation9
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation9
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -124,7 +124,7 @@ int main()
...
@@ -124,7 +124,7 @@ int main()
ofstream
file6
;
ofstream
file6
;
file6
.
open
(
"6.txt"
);
file6
.
open
(
"6.txt"
);
file6
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
d: "
<<
numberOfItemsToDequeueSmall
<<
"
\t
N
t
: "
<<
maxThreads
<<
"
\t
DequeueInterval: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
file6
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
ItemsDequeue
d: "
<<
numberOfItemsToDequeueSmall
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
"
\t
DequeueInterval
MicroSeconds
: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation2
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation2
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation10
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation10
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -132,7 +132,7 @@ int main()
...
@@ -132,7 +132,7 @@ int main()
ofstream
file7
;
ofstream
file7
;
file7
.
open
(
"7.txt"
);
file7
.
open
(
"7.txt"
);
file7
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
N
d: "
<<
numberOfItemsToDequeueLarge
<<
"
\t
N
t
: "
<<
maxThreads
<<
"
\t
DequeueInterval: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
file7
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueSmall
<<
"
\t
ItemsDequeue
d: "
<<
numberOfItemsToDequeueLarge
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
"
\t
DequeueInterval
MicroSeconds
: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation3
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation3
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation11
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation11
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -140,7 +140,7 @@ int main()
...
@@ -140,7 +140,7 @@ int main()
ofstream
file8
;
ofstream
file8
;
file8
.
open
(
"8.txt"
);
file8
.
open
(
"8.txt"
);
file8
<<
"
Ne
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
N
d: "
<<
numberOfItemsToDequeueLarge
<<
"
\t
N
t
: "
<<
maxThreads
<<
"
\t
DequeueInterval: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
file8
<<
"
ItemsEnqueued
per thread: "
<<
numberOfItemsToEnqueueLarge
<<
"
\t
ItemsDequeue
d: "
<<
numberOfItemsToDequeueLarge
<<
"
\t
N
umberOfThreads
: "
<<
maxThreads
<<
"
\t
DequeueInterval
MicroSeconds
: "
<<
numberOfMicrosecondsToDequeueFor
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"Index
\t\t
Values"
<<
endl
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation4
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"1
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation4
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
)
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation12
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
<<
"2
\t
"
<<
benchmark
.
GetBenchmarkMeasure
(
enqueueDequeueOperation12
,
!
isOnlyEnqueueOperation
,
numberOfMeasurements
);
...
@@ -175,6 +175,10 @@ int main()
...
@@ -175,6 +175,10 @@ int main()
// cout<<benchmark1.GetBenchmarkMeasure(enqueueDequeueOperation8, false, 5);
// cout<<benchmark1.GetBenchmarkMeasure(enqueueDequeueOperation8, false, 5);
// cout<<endl;
// cout<<endl;
// CharmQueue
// CharmQueue
// // BoostQueue
// // BoostQueue
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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