Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sek
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
POTTIER Francois
sek
Commits
17da2e62
Commit
17da2e62
authored
3 years ago
by
POTTIER Francois
Browse files
Options
Downloads
Patches
Plain Diff
Time.ml: [stabilize_gc] was broken; just replace it with [Gc.compact].
parent
0524c252
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmark/src/Time.ml
+1
-13
1 addition, 13 deletions
benchmark/src/Time.ml
with
1 addition
and
13 deletions
benchmark/src/Time.ml
+
1
−
13
View file @
17da2e62
...
...
@@ -12,18 +12,6 @@
(******************************************************************************)
open
Printf
open
Gc
let
stabilize_gc
()
=
Gc
.
compact
()
;
let
rec
loop
failsafe
last_heap_live_words
=
if
failsafe
<=
0
then
failwith
"unable to stabilize the number of live words in the major heap"
;
let
stat
=
Gc
.
stat
()
in
if
stat
.
live_words
<>
last_heap_live_words
then
loop
(
failsafe
-
1
)
stat
.
live_words
in
loop
10
0
(* Measuring the execution time. *)
...
...
@@ -31,7 +19,7 @@ exception CannotRun
let
measured_run
factor
repetitions
f
=
try
stabilize_gc
()
;
Gc
.
compact
()
;
let
t1
=
Sys
.
time
()
in
for
_
=
0
to
repetitions
-
1
do
f
()
...
...
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