Skip to content

Commit 80e4736

Browse files
authored
Fix graph render
1 parent 6dff710 commit 80e4736

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cpp/out.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,30 @@
3838
else:
3939
Doublets_Split_NonVolatile.append(int(time))
4040

41-
Doublets_United_Volatile = [max(1, x // 10000000) for x in Doublets_United_Volatile]
42-
Doublets_United_NonVolatile = [max(1, x // 10000000) for x in Doublets_United_NonVolatile]
43-
Doublets_Split_Volatile = [max(1, x // 10000000) for x in Doublets_Split_Volatile]
44-
Doublets_Split_NonVolatile = [max(1, x // 10000000) for x in Doublets_Split_NonVolatile]
45-
PSQL_NonTransaction = [max(1, x // 10000000) for x in PSQL_NonTransaction]
46-
PSQL_Transaction = [max(1, x // 10000000) for x in PSQL_Transaction]
47-
4841
labels = ['Create', 'Delete', 'Each Identity', 'Each Concrete', 'Each Outgoing', 'Each Incoming', 'Each All', 'Update']
4942
def bench1():
43+
Doublets_United_Volatile_Pixels = [max(1, x // 10000000) for x in Doublets_United_Volatile]
44+
Doublets_United_NonVolatile_Pixels = [max(1, x // 10000000) for x in Doublets_United_NonVolatile]
45+
Doublets_Split_Volatile_Pixels = [max(1, x // 10000000) for x in Doublets_Split_Volatile]
46+
Doublets_Split_NonVolatile_Pixels = [max(1, x // 10000000) for x in Doublets_Split_NonVolatile]
47+
PSQL_NonTransaction_Pixels = [max(1, x // 10000000) for x in PSQL_NonTransaction]
48+
PSQL_Transaction_Pixels = [max(1, x // 10000000) for x in PSQL_Transaction]
49+
5050
y = np.arange(len(labels))
5151

5252
width = 0.1
5353

5454
fig, ax = plt.subplots(figsize=(12, 8))
5555

5656

57-
rects1 = ax.barh(y - 2*width, Doublets_United_Volatile, width, label='Doublets United Volatile', color='salmon')
58-
rects2 = ax.barh(y - width, Doublets_United_NonVolatile, width, label='Doublets United NonVolatile', color='red')
57+
rects1 = ax.barh(y - 2*width, Doublets_United_Volatile_Pixels, width, label='Doublets United Volatile', color='salmon')
58+
rects2 = ax.barh(y - width, Doublets_United_NonVolatile_Pixels, width, label='Doublets United NonVolatile', color='red')
5959

60-
rects3 = ax.barh(y, Doublets_Split_Volatile, width, label='Doublets Split Volatile', color='lightgreen')
61-
rects4 = ax.barh(y + width, Doublets_Split_NonVolatile, width, label='Doublets Split NonVolatile', color='green')
60+
rects3 = ax.barh(y, Doublets_Split_Volatile_Pixels, width, label='Doublets Split Volatile', color='lightgreen')
61+
rects4 = ax.barh(y + width, Doublets_Split_NonVolatile_Pixels, width, label='Doublets Split NonVolatile', color='green')
6262

63-
rects5 = ax.barh(y + 2*width, PSQL_NonTransaction, width, label='PSQL NonTransaction', color='lightblue')
64-
rects6 = ax.barh(y + 3*width, PSQL_Transaction, width, label='PSQL Transaction', color='blue')
63+
rects5 = ax.barh(y + 2*width, PSQL_NonTransaction_Pixels, width, label='PSQL NonTransaction', color='lightblue')
64+
rects6 = ax.barh(y + 3*width, PSQL_Transaction_Pixels, width, label='PSQL Transaction', color='blue')
6565

6666
ax.set_xlabel('Time (ns) - Scaled to Pixels')
6767
ax.set_title('Benchmark comparison for Doublets and PostgreSQL')

0 commit comments

Comments
 (0)