Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP2_sd
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Julianne Cocq
TP2_sd
Commits
ad98cff8
Commit
ad98cff8
authored
2 months ago
by
Soltane Maxime
Browse files
Options
Downloads
Patches
Plain Diff
experiment_load_factors
parent
92b69bd6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__pycache__/tp_2_miso_mphf.cpython-311.pyc
+0
-0
0 additions, 0 deletions
__pycache__/tp_2_miso_mphf.cpython-311.pyc
tp_2_miso_dict.py
+10
-1
10 additions, 1 deletion
tp_2_miso_dict.py
with
10 additions
and
1 deletion
__pycache__/tp_2_miso_mphf.cpython-311.pyc
deleted
100644 → 0
+
0
−
0
View file @
92b69bd6
File deleted
This diff is collapsed.
Click to expand it.
tp_2_miso_dict.py
+
10
−
1
View file @
ad98cff8
...
...
@@ -17,19 +17,28 @@ def experiment_load_factor(load_factors):
Étude du facteur de charge
"""
insertion_times
=
[]
nombre_reallocations
=
[]
taille_memoire
=
[]
set_kmer
=
{
str
(
i
)
for
i
in
range
(
10
)}
for
factors
in
load_factors
:
d
=
{}
taille
=
sys
.
getsizeof
(
d
)
nbre_realloc
=
0
times
=
[]
for
kmer
in
set_kmer
:
start_time
=
time
.
time
()
d
[
kmer
]
=
0
stop_time
=
time
.
time
()
times
.
append
(
stop_time
-
start_time
)
if
taille
<
sys
.
getsizeof
(
d
)
:
taille
=
sys
.
getsizeof
(
d
)
nbre_realloc
+=
1
taille_memoire
.
append
(
taille
)
nombre_reallocations
.
append
(
nbre_realloc
)
insertion_times
.
append
(
mean
(
times
))
return
insertion_times
,
nombre_reallocations
,
taille_memoire
return
insertion_times
,
def
experiment_longest
():
"""
TODO: que fait cette fonction
...
...
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