Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/bench/src/cython/all.py
1067 views
1
import sys
2
3
sys.path.insert(0, ".")
4
sys.path.insert(0, "build/lib.wasi-0.0.0-wasm32-cpython-311/")
5
6
import fib
7
import numbers
8
9
from time import time
10
from bench import all
11
12
13
def run_all_benchmarks():
14
t = time()
15
all()
16
print("=" * 20)
17
print("Grand total time: ", int((time() - t) * 1000), "ms")
18
19
20
if __name__ == '__main__':
21
run_all_benchmarks()
22
23