Documentation ¶
Overview ¶
Package common provides functions for initialization and running benchmarks
Index ¶
Constants ¶
const ( // RowCount num of rows that will be generated in each write benchmark RowCount = 6000 // RequestCount num of requests that will be done in each read benchmark RequestCount = 80000 // MaxDataLength size of test random data that will be generated and inserted to db (before encrypting) MaxDataLength = 1 * 1024 // 1 kb )
Variables ¶
This section is empty.
Functions ¶
func ConnectAcra ¶
ConnectAcra return connection to acra using env variable ACRA_CONNECTION_STRING
func DropCreate ¶
DropCreate drop table 'test_data' if exists and create table with sequence for primary key. Into this table will be inserted acrastructs encrypted with one key and used in read benchmarks
func DropCreateRaw ¶
DropCreateRaw drop table 'test_raw' if exists and create table with sequence for primary key. Into this table will be inserted raw data without encryption and used in read benchmarks of reading raw data
func GenerateData ¶
GenerateData generates random data with MaxDataLength
func GetServerOneKeyPublic ¶
GetServerOneKeyPublic reads public key
func RunScripts ¶
RunScripts function execute all sql queries in scripts variable using using db
Types ¶
This section is empty.