-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.txt
102 lines (90 loc) · 3.26 KB
/
report.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Perfomance report for Model.generateValue()
Column: Name: <OK: No internal details>
Duration: 51276 nanoseconds
----------
Colum: Text:
minLength: 1
maxLength: 200
Duration: 770980 nanoseconds
----------
Column: Number:
Max: 200.0
Min: 1.0
Is Decimal: false
Currency:
Duration: 16178 nanoseconds
----------
Column: Email:
Minimum Length: 5
Max Length: 20
Domains: [Ljava.lang.String;@3cda1055
Duration: 46103 nanoseconds
----------
Column: Date:
Start Date: Mon Jan 01 00:00:00 EST 1990
End Date: Thu Jan 05 17:34:15 EST 2023
Format: java.text.SimpleDateFormat@4d9ec980
Duration: 255857 nanoseconds
----------
Column: Date:
Start Date: Mon Jan 01 00:00:00 EST 1990
End Date: Thu Jan 05 17:34:15 EST 2023
Format: java.text.SimpleDateFormat@5963fda0
Duration: 56122 nanoseconds
----------
Column: Address Col(streetname/city/zipcode/state/country/timezone):
Key: address
Duration: 844245172 nanoseconds
----------
Column: Address Col(streetname/city/zipcode/state/country/timezone):
Key: address.city
Duration: 232588 nanoseconds
----------
Benchmark for inserting 1000 rows in databse.
Duration(1000 rows all columns(except custom)): 154684 milliseconds (2.5 minutes);
Run Script -> String[] myArgs = { "-table", "test_table",
"-rows", "1000",
"-cols", "name", "age", "email", "dob", "address", "city", "comments",
"nameC",
"numberC",
"emailC",
"dateC",
"addressC",
"cityC",
"textC"
};
----------
Benchmark for inserting 1000 rows in databse. * Without using the address column.
Duration(1000 rows all columns(except custom)): 156107 milliseconds
Run Script: String[] myArgs = { "-table", "test_table",
"-rows", "1000",
"-cols", "name", "age", "email", "dob", "comments", "sec_email", "third_email",
"nameC",
"numberC",
"emailC",
"dateC",
"textC",
"textC",
"textC"
};
Conclusion while the address colum does take a longer time to generate values,
it is not the main deterrent in the speed of the program. The result is most likely attributed to
the sql connection.
A better approach might be to just do one large sql statement inserting multiple rows at once
instead of one row many times.
----------
New Approach results:
Benchmark for inserting 1000 rows in databse.
Duration(1000 rows all columns(except custom)): 3517 milliseconds
Run Script: String[] myArgs = { "-table", "test_table",
"-rows", numRows,
"-cols", "name", "age", "email", "dob", "comments", "sec_email", "third_email",
"nameC",
"numberC",
"emailC",
"dateC",
"textC",
"textC",
"textC"
};
----------