Skip to content
Snippets Groups Projects
Commit 5d134b0f authored by Paul Chevalier's avatar Paul Chevalier
Browse files

Merge branch 'paul' of...

parents 7fe63e38 73f7a464
Branches paul
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
File added
No preview for this file type
No preview for this file type
......@@ -15,15 +15,20 @@ def thread_wrapper(start, end, results, index):
# Single-threaded execution
def single_threaded():
start_time = time.time()
compute_task(0, 10_000_000)
compute_task(0, 100_000_000)
end_time = time.time()
return end_time - start_time
# Multi-threaded execution
def multi_threaded():
start_time = time.time()
<<<<<<< HEAD
num_threads = 2
step = 10_000_000 // num_threads
=======
num_threads = 8
step = 100_000_000 // num_threads
>>>>>>> 73f7a464704d2fa11671ba78a16771abe843918a
threads = []
results = [0] * num_threads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment