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
6b6a1df9
Kaydet (Commit)
6b6a1df9
authored
Eyl 25, 2012
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Restore the benchmark order to avoid waiting for decimal.py if just the
prec=9 test is used.
üst
296b21a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bench.py
Modules/_decimal/tests/bench.py
+4
-3
No files found.
Modules/_decimal/tests/bench.py
Dosyayı görüntüle @
6b6a1df9
...
@@ -70,11 +70,12 @@ print("\n# =====================================================================
...
@@ -70,11 +70,12 @@ print("\n# =====================================================================
print
(
"# Calculating pi, 10000 iterations"
)
print
(
"# Calculating pi, 10000 iterations"
)
print
(
"# ======================================================================
\n
"
)
print
(
"# ======================================================================
\n
"
)
to_benchmark
=
[
pi_float
,
pi_decimal
]
if
C
is
not
None
:
to_benchmark
.
insert
(
1
,
pi_cdecimal
)
for
prec
in
[
9
,
19
]:
for
prec
in
[
9
,
19
]:
print
(
"
\n
Precision:
%
d decimal digits
\n
"
%
prec
)
print
(
"
\n
Precision:
%
d decimal digits
\n
"
%
prec
)
to_benchmark
=
[
pi_float
,
pi_decimal
]
if
C
is
not
None
:
to_benchmark
.
append
(
pi_cdecimal
)
for
func
in
to_benchmark
:
for
func
in
to_benchmark
:
start
=
time
.
time
()
start
=
time
.
time
()
if
C
is
not
None
:
if
C
is
not
None
:
...
...
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