mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Add benchmark parameters N_THREADS and N_PARALLEL
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user