mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00
24 lines
462 B
Python
24 lines
462 B
Python
![]() |
#!/usr/bin/env kross
|
||
|
|
||
|
"""
|
||
|
This Python script is used as performance-tester and profiler
|
||
|
for the Kross scripting framework.
|
||
|
"""
|
||
|
|
||
|
def runner():
|
||
|
import MyTestObject1
|
||
|
testobject1 = MyTestObject1
|
||
|
|
||
|
def test1():
|
||
|
""" Ok. It's a stupid test. But well... :) """
|
||
|
print "test1"
|
||
|
for i in range(300000):
|
||
|
testobject1.func_uint_uint(233)
|
||
|
testobject1.func_qstring_qstring("Some string")
|
||
|
|
||
|
test1()
|
||
|
|
||
|
import profile
|
||
|
__main__.runner=runner
|
||
|
profile.run("runner()")
|