Skip to content

Commit

Permalink
revert vectorization to preserve consistency with other language impl…
Browse files Browse the repository at this point in the history
…ementations (significantly slower)
  • Loading branch information
Karatsidis committed Dec 6, 2024
1 parent 7899019 commit 1b56044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loops/py/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


def main():
u = int(sys.argv[1]) # Get an input number from the command line
r = random.randint(0, 10000) # Get a random number 0 <= r < 10k
u = 40 #int(sys.argv[1]) # Get an input number from the command line
r = 5000 #random.randint(0, 10000) # Get a random number 0 <= r < 10k
a = [0] * 10000 # Array of 10k elements initialized to 0
for i in range(10000): # 10k outer loop iterations
for j in range(100000): # 100k inner loop iterations, per outer loop iteration
Expand Down

0 comments on commit 1b56044

Please sign in to comment.