Skip to content

Commit

Permalink
Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 9, 2020
1 parent c30a8e8 commit a090a5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmarks/pystone.py
Expand Up @@ -34,7 +34,7 @@

LOOPS = 500000

from time import clock
import time # from time import clock

__version__ = "1.1"

Expand Down Expand Up @@ -86,10 +86,10 @@ def Proc0(loops=LOOPS):
global PtrGlb
global PtrGlbNext

starttime = clock()
starttime = time.perf_counter()
for i in range(loops):
pass
nulltime = clock() - starttime
nulltime = time.perf_counter() - starttime

PtrGlbNext = Record()
PtrGlb = Record()
Expand All @@ -101,7 +101,7 @@ def Proc0(loops=LOOPS):
String1Loc = "DHRYSTONE PROGRAM, 1'ST STRING"
Array2Glob[8][7] = 10

starttime = clock()
starttime = time.perf_counter()

for i in range(loops):
Proc5()
Expand All @@ -127,7 +127,7 @@ def Proc0(loops=LOOPS):
IntLoc2 = 7 * (IntLoc3 - IntLoc2) - IntLoc1
IntLoc1 = Proc2(IntLoc1)

benchtime = clock() - starttime - nulltime
benchtime = time.perf_counter() - starttime - nulltime
if benchtime == 0.0:
loopsPerBenchtime = 0.0
else:
Expand Down

0 comments on commit a090a5e

Please sign in to comment.