Example #1
0
 def _benchmark(self):
     print()
     print('==== PyScript on %s =====' % self.BACKEND)
     print()
     pystone.main()
     self.convolve()
     self.bench_str()
Example #2
0
 def _benchmark(self):
     print()
     print('==== PyScript on %s =====' % self.BACKEND)
     print()
     pystone.main()
     self.convolve()
     self.bench_str()
Example #3
0
    def benchmark(self):
        print('\n==== Python %s %s =====\n' %
              (platform.python_implementation(), platform.python_version()))
        pystone.main()
        convolve()
        bench_str()

        # Trigger benchmark in JS
        self.run_js_benchmark()
Example #4
0
 def benchmark(self):
     print('\n==== Python %s %s =====\n' % (platform.python_implementation(), 
                                            platform.python_version()))
     pystone.main()
     convolve()
     bench_str()
     
     # Trigger benchmark in JS
     self.run_js_benchmark()
Example #5
0
def test_pystone():
    from test import pystone
    for _ in range(5):
        pystone.main()
    optimize_module(pystone, ('TRUE','FALSE','Proc0','Proc1','Proc2','Proc3',
                              'Proc4','Proc5','Proc6','Proc7','Proc8','Func1',
                             ' Func2','Func3'))
    optimize_module(pystone, list(builtins.keys()))
    for _ in range(5):
        pystone.main()
Example #6
0
def test_pystone():
    from test import pystone
    for _ in range(5):
        pystone.main()
    optimize_module(pystone, ('TRUE','FALSE','Proc0','Proc1','Proc2','Proc3',
                              'Proc4','Proc5','Proc6','Proc7','Proc8','Func1',
                             ' Func2','Func3'))
    optimize_module(pystone, builtins.keys())
    for _ in range(5):
        pystone.main()
Example #7
0
from test import pystone
pystone.main()