You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Add bench.lua for KIND_TEXT and fix bench.sh
This commit is contained in:
committed by
Leonid Fedorov
parent
af661c06ac
commit
e51adb71b8
24
benchmarks/parse_bench.py
Normal file → Executable file
24
benchmarks/parse_bench.py
Normal file → Executable file
@ -3,31 +3,27 @@
|
||||
import json
|
||||
import sys
|
||||
|
||||
branch_name = sys.argv[1]
|
||||
data_branch = []
|
||||
data_develop = []
|
||||
time_spent = 30
|
||||
branch1_name = sys.argv[1]
|
||||
branch2_name = sys.argv[2]
|
||||
data_branch = json.loads(sys.argv[3])
|
||||
data_develop = json.loads(sys.argv[4])
|
||||
time_spent = 120
|
||||
|
||||
with open(sys.argv[2],'r') as jf1:
|
||||
data_branch = json.load(jf1)
|
||||
|
||||
with open(sys.argv[3],'r') as jf2:
|
||||
data_develop = json.load(jf2)
|
||||
|
||||
time = '''Time spent: {time}'''.format(time = time_spent)
|
||||
time = '''Time spent: {time}'''.format(time = sys.argv[5])
|
||||
|
||||
comparison = '''Queries made:
|
||||
for {name}
|
||||
for {name1}
|
||||
-- {reads1} reads ({reads1ps} per second)
|
||||
-- {writes1} writes ({writes1ps} per second)
|
||||
-- {other1} other ({other1ps} per second)
|
||||
-- {total1} in total ({total1ps} per second)
|
||||
for develop
|
||||
for {name2}
|
||||
-- {reads2} reads ({reads2ps} per second)
|
||||
-- {writes2} writes ({writes2ps} per second)
|
||||
-- {other2} other ({other2ps} per second)
|
||||
-- {total2} in total ({total2ps} per second)
|
||||
'''.format(name = branch_name,
|
||||
'''.format(name1 = branch1_name,
|
||||
name2 = branch2_name,
|
||||
reads1 = data_branch[0]["queries"]["reads"],
|
||||
writes1 = data_branch[0]["queries"]["writes"],
|
||||
other1 = data_branch[0]["queries"]["other"],
|
||||
|
Reference in New Issue
Block a user