Пример #1
0
 def _benchmark(self):
     print()
     print('==== PyScript on %s =====' % BACKEND)
     print()
     pystone_main()
     convolve()
     bench_str()
Пример #2
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()