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

Method testSetSlot

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

Source from the content-addressed store, hash-verified

27 self.endTimer("slotAccesses ")
28
29 def testSetSlot(self):
30 self.beginTimer()
31 self.x = 1
32 for i in xrange(oneMillion/8):
33 self.x = 1; self.x = 2; self.x = 3; self.x = 4;
34 self.x = 1; self.x = 2; self.x = 3; self.x = 4;
35 self.endTimer("slotSets ")
36
37 def testBlock(self):
38 self.beginTimer()

Callers 1

testMethod · 0.95

Calls 3

beginTimerMethod · 0.95
endTimerMethod · 0.95
xrangeFunction · 0.85

Tested by

no test coverage detected