Add benchmark parameters N_THREADS and N_PARALLEL

This commit is contained in:
Thomas Skovlund Hansen
2023-05-03 13:26:43 +02:00
parent 8658086cb8
commit 04dcc12707

View File

@@ -33,6 +33,8 @@ INSERT = INSERT or EXTRACT # Always insert if we are going to extract
## General
KEY_SIZE = lambda n: 32
VALUE_SIZE = lambda n: log2(n)
N_THREADS = 1
N_PARALLEL = 1
## Insert / ExtractMin
RANGE = [2**i for i in range(1, 15)]
@@ -49,6 +51,10 @@ POH_PATH_CONSTANT_STASH = True
## Sorting
LENGTHS = [5, 10, 15, 20, 25, 30]
# Set module variables based on parameters
oram.n_threads = N_THREADS
oram.n_parallel = N_PARALLEL
# Timing with consecutive ids
timer_offset = 1000 # Hopefully run timers in an unused range