Skip to content

Commit 4fab38d

Browse files
committed
Processing bitset comparison results
1 parent e4df20c commit 4fab38d

File tree

3 files changed

+37
-19
lines changed

3 files changed

+37
-19
lines changed

bitset_comparison.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import csv
2+
import sys
3+
import statistics
4+
5+
file = sys.argv[1] if len(sys.argv) > 1 else input("Please enter the .csv data file: ")
6+
7+
values = { }
8+
9+
with open(file) as file:
10+
lines = csv.reader(file)
11+
for row in lines:
12+
values.setdefault(row[1], {}).setdefault(row[0], []).append(float(row[3]))
13+
14+
print(values)
15+
for n, v in values.items():
16+
print(n)
17+
print("label bitsize its std")
18+
for bitsize, a in v.items():
19+
print(n + " " + bitsize + " " + str(statistics.mean(a)) + " " + str(statistics.stdev(a)))
20+
print()
21+

quality_distribution.py

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
except OverflowError:
1010
max_int = int(max_int/10)
1111

12-
class ParameterSet:
13-
pass
14-
1512
file = sys.argv[1] if len(sys.argv) > 1 else input("Please enter the .csv data file: ")
1613

1714
def compute(values, out):

relaxed_concurrent_fifo/main.cpp

+16-16
Original file line numberDiff line numberDiff line change
@@ -367,22 +367,22 @@ int main() {
367367
} break;
368368
case 8: {
369369
std::vector<std::unique_ptr<benchmark_provider<benchmark_default>>> instances;
370-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint8_t>>("8-bit-bbq-1-7"));
371-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint8_t>>("8-bit-bbq-2-63"));
372-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint8_t>>("8-bit-bbq-4-127"));
373-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint8_t>>("8-bit-bbq-8-127"));
374-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint16_t>>("16-bit-bbq-1-7"));
375-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint16_t>>("16-bit-bbq-2-63"));
376-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint16_t>>("16-bit-bbq-4-127"));
377-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint16_t>>("16-bit-bbq-8-127"));
378-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint32_t>>("32-bit-bbq-1-7"));
379-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint32_t>>("32-bit-bbq-2-63"));
380-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint32_t>>("32-bit-bbq-4-127"));
381-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint32_t>>("32-bit-bbq-8-127"));
382-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint64_t>>("64-bit-bbq-1-7"));
383-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint64_t>>("64-bit-bbq-2-63"));
384-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint64_t>>("64-bit-bbq-4-127"));
385-
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint64_t>>("64-bit-bbq-8-127"));
370+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint8_t>>("8,bbq-1-7"));
371+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint8_t>>("8,bbq-2-63"));
372+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint8_t>>("8,bbq-4-127"));
373+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint8_t>>("8,bbq-8-127"));
374+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint16_t>>("16,bbq-1-7"));
375+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint16_t>>("16,bbq-2-63"));
376+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint16_t>>("16,bbq-4-127"));
377+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint16_t>>("16,bbq-8-127"));
378+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint32_t>>("32,bbq-1-7"));
379+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint32_t>>("32,bbq-2-63"));
380+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint32_t>>("32,bbq-4-127"));
381+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint32_t>>("32,bbq-8-127"));
382+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 1, 7, uint64_t>>("64,bbq-1-7"));
383+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 2, 63, uint64_t>>("64,bbq-2-63"));
384+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 4, 127, uint64_t>>("64,bbq-4-127"));
385+
instances.push_back(std::make_unique<benchmark_provider_relaxed<benchmark_default, 8, 127, uint64_t>>("64,bbq-8-127"));
386386
run_benchmark(pool, "bitset-sizes", instances, 0.5, processor_counts, TEST_ITERATIONS, TEST_TIME_SECONDS);
387387
} break;
388388
case 9: {

0 commit comments

Comments
 (0)