Skip to content

Commit 6a68c83

Browse files
committedAug 2, 2020
fix one benchmark bug
1 parent cf4bf80 commit 6a68c83

File tree

4 files changed

+122
-3
lines changed

4 files changed

+122
-3
lines changed
 

‎output

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Begin: 10000000 24
2+
--cpunodebind=0 --membind=0
3+
Distribution = uniform
4+
EPOCH registration in application level
5+
Variable-length key = 16
6+
Initialize Dash-EH
7+
end up the initialization
8+
Generate workload
9+
Genereate workload for variable length key
10+
Finish Generation
11+
Finish Generate workload
12+
load num = 10000000
13+
Start load warm-up workload
14+
Finish loading 10000000 keys
15+
Comprehensive Benchmark
16+
insertion start
17+
Insert24 Begin
18+
24 threads, Time = 1.675795 s, throughput = 59673170.047649 ops/s, fastest = 61734187.405238, slowest = 58087998.670947
19+
Insert24 End
20+
The size of the bucket is 256
21+
seg_count = 150583
22+
verify_seg_count = 150583
23+
Pos_search24 Begin
24+
not_found = 0
25+
not_found = 0
26+
not_found = 0
27+
not_found = 0
28+
not_found = 0
29+
not_found = 0
30+
not_found = 0
31+
not_found = 0
32+
not_found = 0
33+
not_found = 0
34+
not_found = 0
35+
not_found = 0
36+
not_found = 0
37+
not_found = 0
38+
not_found = 0
39+
not_found = 0
40+
not_found = 0
41+
not_found = 0
42+
not_found = 0
43+
not_found = 0
44+
not_found = 0
45+
not_found = 0
46+
not_found = 0
47+
not_found = 0
48+
24 threads, Time = 0.876721 s, throughput = 114061350.178420 ops/s, fastest = 119667324.836953, slowest = 100589049.473718
49+
Pos_search24 End
50+
Neg_search24 Begin
51+
not_found = 4166666
52+
not_found = 4166666
53+
not_found = 4166666
54+
not_found = 4166666
55+
not_found = 4166666
56+
not_found = 4166666
57+
not_found = 4166666
58+
not_found = 4166666
59+
not_found = 4166666
60+
not_found = 4166666
61+
not_found = 4166666
62+
not_found = 4166666
63+
not_found = 4166666
64+
not_found = 4166666
65+
not_found = 4166666
66+
not_found = 4166666
67+
not_found = 4166666
68+
not_found = 4166666
69+
not_found = 4166682
70+
not_found = 4166666
71+
not_found = 4166666
72+
not_found = 4166666
73+
not_found = 4166666
74+
not_found = 4166666
75+
24 threads, Time = 0.579848 s, throughput = 172458927.289663 ops/s, fastest = 174457350.411545, slowest = 169828303.585075
76+
Neg_search24 End
77+
Delete24 Begin
78+
not_found = 0
79+
not_found = 0
80+
not_found = 0
81+
not_found = 0
82+
not_found = 0
83+
not_found = 0
84+
not_found = 0
85+
not_found = 0
86+
not_found = 0
87+
not_found = 0
88+
not_found = 0
89+
not_found = 0
90+
not_found = 0
91+
not_found = 0
92+
not_found = 0
93+
not_found = 0
94+
not_found = 0
95+
not_found = 0
96+
not_found = 0
97+
not_found = 0
98+
not_found = 0
99+
not_found = 0
100+
not_found = 0
101+
not_found = 0
102+
24 threads, Time = 1.063495 s, throughput = 94029594.796308 ops/s, fastest = 95319525.346892, slowest = 91974236.176962
103+
Delete24 End
104+
The size of the bucket is 256
105+
seg_count = 150583
106+
verify_seg_count = 150583

‎result.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Begin: 100000000 50000000 9
2+
--cpunodebind=0 --membind=0
3+
Distribution = uniform
4+
EPOCH registration in application level
5+
Variable-length key = 16
6+
Initialize Dash-EH
7+
creating a new pool
8+
pool opened at: 0x5f0000000000
9+
Generate workload
10+
Genereate workload for variable length key

‎run.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ epoch=(0 1 1 1 0)
1616
# k specify the testing index, 1 = dash-ex, 2 = dash-lh, 3 = cceh, 4 = level
1717
# i specify the key type, 1 means fixed-length key, 2 means variable-length key
1818
# j spec1fy the number of threads, 1 means one threads, 2 means two threads, 3 means four threads...
19-
for k in 2
19+
for k in 1
2020
do
21-
for i in 1 2
21+
for i in 1
2222
do
2323
for j in 1
2424
do
25-
echo "Begin: ${base[1]} ${workload[${i}]} ${thread_num[${j}]}"
25+
echo "Begin: ${base[1]} ${workload[1]} ${thread_num[${j}]}"
2626
numaarg=""
2727
if [ ${thread_num[$j]} -le 24 ]
2828
then

‎src/test_pmem.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,9 @@ void Run() {
11231123
}
11241124

11251125
index->getNumber();
1126+
for (int i = 0; i < thread_num; ++i) {
1127+
rarray[i].workload = not_used_workload;
1128+
}
11261129

11271130
if (open_epoch == true) {
11281131
GeneralBench<T>(rarray, index, thread_num, operation_num, "Pos_search",

0 commit comments

Comments
 (0)
Please sign in to comment.