MCPcopy Create free account
hub / github.com/IoLanguage/io / testSetLocals

Method testSetLocals

samples/speed/speed.py:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.endTimer("localAccesses ")
58
59 def testSetLocals(self):
60 self.beginTimer()
61 v = 1
62 for i in xrange(oneMillion/8):
63 v = 1; v = 2; v = 3; v = 4;
64 v = 1; v = 2; v = 3; v = 4;
65 self.endTimer("localSets ")
66
67 def test(self):
68 print("")

Callers 1

testMethod · 0.95

Calls 3

beginTimerMethod · 0.95
endTimerMethod · 0.95
xrangeFunction · 0.85

Tested by

no test coverage detected