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
5719ef17
Kaydet (Commit)
5719ef17
authored
Ock 04, 2015
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix issue23157 - time_hashlib hadn't been ported to Python 3.
üst
b8f35ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
time_hashlib.py
Lib/test/time_hashlib.py
+4
-3
No files found.
Lib/test/time_hashlib.py
Dosyayı görüntüle @
5719ef17
# It's intended that this script be run by hand. It runs speed tests on
# hashlib functions; it does not test for correctness.
import
sys
,
time
import
sys
import
time
import
hashlib
...
...
@@ -9,8 +10,8 @@ def creatorFunc():
raise
RuntimeError
(
"eek, creatorFunc not overridden"
)
def
test_scaled_msg
(
scale
,
name
):
iterations
=
106201
/
scale
*
20
longStr
=
'Z'
*
scale
iterations
=
106201
/
/
scale
*
20
longStr
=
b
'Z'
*
scale
localCF
=
creatorFunc
start
=
time
.
time
()
...
...
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