Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
43766f82
Kaydet (Commit)
43766f82
authored
Şub 16, 2019
tarafından
Raymond Hettinger
Kaydeden (comit)
Miss Islington (bot)
Şub 16, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-35884: Add missing FIFO queue benchmark (GH-11898)
https://bugs.python.org/issue35884
üst
e182318e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
var_access_benchmark.py
Tools/scripts/var_access_benchmark.py
+10
-1
No files found.
Tools/scripts/var_access_benchmark.py
Dosyayı görüntüle @
43766f82
...
...
@@ -214,6 +214,15 @@ def deque_append_pop(trials=trials, a=deque([1])):
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
def
deque_append_popleft
(
trials
=
trials
,
a
=
deque
([
1
])):
ap
,
pop
=
a
.
append
,
a
.
popleft
for
t
in
trials
:
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
ap
(
1
);
pop
();
def
write_list
(
trials
=
trials
,
a
=
[
1
]):
for
t
in
trials
:
a
[
0
]
=
1
;
a
[
0
]
=
1
;
a
[
0
]
=
1
;
a
[
0
]
=
1
;
a
[
0
]
=
1
...
...
@@ -261,7 +270,7 @@ if __name__=='__main__':
'
\n
Data structure write access:'
,
write_list
,
write_deque
,
write_dict
,
'
\n
Stack (or queue) operations:'
,
list_append_pop
,
deque_append_pop
,
list_append_pop
,
deque_append_pop
,
deque_append_popleft
,
'
\n
Timing loop overhead:'
,
loop_overhead
]:
if
isinstance
(
f
,
str
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment