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
3b3f1184
Kaydet (Commit)
3b3f1184
authored
Haz 13, 2006
tarafından
Marc-André Lemburg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
93e3ecb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
Calls.py
Tools/pybench/Calls.py
+0
-2
clockres.py
Tools/pybench/clockres.py
+2
-3
pybench.py
Tools/pybench/pybench.py
+2
-2
No files found.
Tools/pybench/Calls.py
Dosyayı görüntüle @
3b3f1184
...
...
@@ -500,5 +500,3 @@ h(i,i,i,2,i,3)
timeit
.
main
([
'-s'
,
setup
,
test
])
Tools/pybench/clockres.py
Dosyayı görüntüle @
3b3f1184
...
...
@@ -20,7 +20,7 @@ def clockres(timer):
while
1
:
now
=
wallclock
()
if
now
>=
stop
:
break
break
for
i
in
spin_loops
:
d
[
timer
()]
=
1
values
=
d
.
keys
()
...
...
@@ -33,7 +33,7 @@ def clockres(timer):
return
min_diff
if
__name__
==
'__main__'
:
print
'Clock resolution of various timer implementations:'
print
'Clock resolution of various timer implementations:'
print
'time.clock:
%10.3
fus'
%
(
clockres
(
time
.
clock
)
*
1e6
)
print
'time.time:
%10.3
fus'
%
(
clockres
(
time
.
time
)
*
1e6
)
try
:
...
...
@@ -41,4 +41,3 @@ if __name__ == '__main__':
print
'systimes.processtime:
%10.3
fus'
%
(
clockres
(
systimes
.
processtime
)
*
1e6
)
except
ImportError
:
pass
Tools/pybench/pybench.py
Dosyayı görüntüle @
3b3f1184
...
...
@@ -418,7 +418,7 @@ class Benchmark:
def
__init__
(
self
,
name
,
verbose
=
None
,
timer
=
None
,
warp
=
None
,
calibration_runs
=
None
):
if
name
:
self
.
name
=
name
else
:
...
...
@@ -438,7 +438,7 @@ class Benchmark:
if
_debug
:
print
'Getting machine details...'
self
.
machine_details
=
get_machine_details
()
# Make .version an instance attribute to have it saved in the
# Benchmark pickle
self
.
version
=
self
.
version
...
...
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