File indexing completed on 2022-11-23 10:36:23

0001 #!/usr/bin/env kross
0002 
0003 """
0004   This Python script is used as performance-tester and profiler
0005   for the Kross scripting framework.
0006 """
0007 
0008 def runner():
0009     import MyTestObject1
0010     testobject1 = MyTestObject1
0011 
0012     def test1():
0013         """ Ok. It's a stupid test. But well... :) """
0014         print "test1"
0015         for i in range(300000):
0016             testobject1.func_uint_uint(233)
0017             testobject1.func_qstring_qstring("Some string")
0018 
0019     test1()
0020 
0021 import profile
0022 __main__.runner=runner
0023 profile.run("runner()")