aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorKagamino <martin@lehoux.net>2019-04-01 16:27:05 +0200
committerKagamino <martin@lehoux.net>2019-04-01 16:27:05 +0200
commita1d8ca43ffea7141545525afe93a4cb29ccb0bd4 (patch)
treee63c0f8c2d5bf0382aa86136705600b010b74f64 /test.py
parent2c0ba9fa615fc567acf03cf21b5dd3c9e598d91a (diff)
move
Diffstat (limited to 'test.py')
-rw-r--r--test.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/test.py b/test.py
deleted file mode 100644
index 6cd3b4d..0000000
--- a/test.py
+++ /dev/null
@@ -1,24 +0,0 @@
-from multiprocessing import Process, Lock
-from timeit import timeit
-import numpy as np
-
-def test():
- # l.acquire()
- # for _ in range(2500):
- matrix = np.random.randn(10000)
- # l.release()
- # return matrix
-
-def run():
- p = []
- for _ in range(10000):
- p.append(Process(target=test))
- p[_].start()
- for proc in p:
- proc.join()
-
-
-if __name__ == "__main__":
- lock = Lock()
- print(timeit(run, number=1))
- \ No newline at end of file