Skip to content

Commit ed74236

Browse files
authored
Merge pull request #43 from wfus/bench
Bench
2 parents c86dc9e + 7b7f0b5 commit ed74236

File tree

3 files changed

+581
-5
lines changed

3 files changed

+581
-5
lines changed

benchmark/analyze.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import glob
22
import os
3+
import numpy as np
34
from functools import reduce
45

56
LOG_DIR = "../logs"
@@ -22,6 +23,5 @@
2223
all_data[data[0]] = data[1:]
2324
# print(all_data[data[0]])
2425
for key in all_data:
25-
val = list(map(lambda x: float(x), all_data[key]))
26-
avg = reduce(lambda x, y: x + y, val) / len(val)
27-
print(key + ',' + str(avg))
26+
val = np.array(list(map(lambda x: float(x), all_data[key])))
27+
print(key + ',' + str(np.mean(val)) + ',' + str(np.std(val)))

benchmark/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
CWD = "../"
44
IMAGE_NAMES = [("image/boazbarak.jpg", 'boaz')]
5-
POLY_N = [1024, 2048, 4096, 8192, 16384]
6-
PLAIN_MOD = [12289, 40961, 114689, 319489, 786433]
5+
POLY_N = [2048, 4096, 8192, 16384]
6+
PLAIN_MOD = [11, 31, 101, 307, 1009, 3001, 10007, 30011, 100003]
77
WIDTH_HEIGHT_PAIRS = [(17, 17)]
88
LOG_DIR = "../logs"
99

0 commit comments

Comments
 (0)