Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Tobias Leibner
dune-common
Commits
01193094
Commit
01193094
authored
16 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
use a few less iterations
[[Imported from SVN: r5289]]
parent
7e97b671
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
common/test/smallobject.cc
+8
-1
8 additions, 1 deletion
common/test/smallobject.cc
with
8 additions
and
1 deletion
common/test/smallobject.cc
+
8
−
1
View file @
01193094
...
...
@@ -37,7 +37,7 @@ int main ( int argc, char **argv )
{
Timer
timer
;
const
unsigned
long
iterations
=
1
<<
30
;
const
unsigned
long
iterations
=
1
<<
25
;
std
::
cout
<<
"Performing "
<<
iterations
<<
" iterations."
<<
std
::
endl
;
timer
.
reset
();
...
...
@@ -71,4 +71,11 @@ int main ( int argc, char **argv )
double
timeB2
=
timer
.
elapsed
();
std
::
cout
<<
"Time with pool allocator: "
<<
timeB2
<<
std
::
endl
;
std
::
cout
<<
"Result: pool allocator is "
<<
(
timeA
/
timeB2
)
<<
" times faster."
<<
std
::
endl
;
std
::
cout
<<
"Result: pool allocator is "
<<
(
timeB
/
timeB2
)
<<
" times faster than SmallObject."
<<
std
::
endl
;
// we require a speedup due to SmallObject
assert
((
timeA
/
timeB
)
>
1.0
);
// we require the speed of the poolallocator
// assert((timeB2 / timeB) > 1.0);
}
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