Skip to content

Commit 1018221

Browse files
committed
Refactored tests to include ConflictAction.NOTHING
1 parent 09967b2 commit 1018221

File tree

14 files changed

+1090
-936
lines changed

14 files changed

+1090
-936
lines changed
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
{
2+
"benchmarks": [
3+
{
4+
"param": null,
5+
"name": "test_insert_nothing_traditional",
6+
"stats": {
7+
"iterations": 1,
8+
"iqr_outliers": 8,
9+
"mean": 0.0011008531915674574,
10+
"max": 0.020393940998474136,
11+
"iqr": 0.0001786067550710868,
12+
"q1": 0.0009417014989594463,
13+
"stddev": 0.0010210160371514566,
14+
"rounds": 365,
15+
"hd15iqr": 0.0013941200013505295,
16+
"q3": 0.0011203082540305331,
17+
"min": 0.0009290770103689283,
18+
"ld15iqr": 0.0009290770103689283,
19+
"stddev_outliers": 1,
20+
"outliers": "1;8",
21+
"median": 0.001002706994768232
22+
},
23+
"group": null,
24+
"extra_info": {},
25+
"params": null,
26+
"options": {
27+
"max_time": 1.0,
28+
"disable_gc": false,
29+
"min_time": 5e-06,
30+
"min_rounds": 5,
31+
"warmup": false,
32+
"timer": "perf_counter"
33+
},
34+
"fullname": "tests/benchmarks/test_insert_nothing.py::test_insert_nothing_traditional"
35+
},
36+
{
37+
"param": null,
38+
"name": "test_insert_nothing_native",
39+
"stats": {
40+
"iterations": 1,
41+
"iqr_outliers": 291,
42+
"mean": 0.00039609490501617614,
43+
"max": 0.0013513370067812502,
44+
"iqr": 1.1355507012922317e-05,
45+
"q1": 0.00037297899689292535,
46+
"stddev": 6.544933333969188e-05,
47+
"rounds": 1656,
48+
"hd15iqr": 0.00040159400668926537,
49+
"q3": 0.00038433450390584767,
50+
"min": 0.00036581601307261735,
51+
"ld15iqr": 0.00036581601307261735,
52+
"stddev_outliers": 128,
53+
"outliers": "128;291",
54+
"median": 0.0003748419985640794
55+
},
56+
"group": null,
57+
"extra_info": {},
58+
"params": null,
59+
"options": {
60+
"max_time": 1.0,
61+
"disable_gc": false,
62+
"min_time": 5e-06,
63+
"min_rounds": 5,
64+
"warmup": false,
65+
"timer": "perf_counter"
66+
},
67+
"fullname": "tests/benchmarks/test_insert_nothing.py::test_insert_nothing_native"
68+
},
69+
{
70+
"param": null,
71+
"name": "test_upsert_traditional",
72+
"stats": {
73+
"iterations": 1,
74+
"iqr_outliers": 17,
75+
"mean": 0.001145858813147723,
76+
"max": 0.002985590006574057,
77+
"iqr": 0.00017118299729190767,
78+
"q1": 0.0010492540095583536,
79+
"stddev": 0.00015564959248647335,
80+
"rounds": 492,
81+
"hd15iqr": 0.00148387900844682,
82+
"q3": 0.0012204370068502612,
83+
"min": 0.0010114489996340126,
84+
"ld15iqr": 0.0010114489996340126,
85+
"stddev_outliers": 53,
86+
"outliers": "53;17",
87+
"median": 0.0010716315009631217
88+
},
89+
"group": null,
90+
"extra_info": {},
91+
"params": null,
92+
"options": {
93+
"max_time": 1.0,
94+
"disable_gc": false,
95+
"min_time": 5e-06,
96+
"min_rounds": 5,
97+
"warmup": false,
98+
"timer": "perf_counter"
99+
},
100+
"fullname": "tests/benchmarks/test_upsert.py::test_upsert_traditional"
101+
},
102+
{
103+
"param": null,
104+
"name": "test_upsert_native",
105+
"stats": {
106+
"iterations": 1,
107+
"iqr_outliers": 607,
108+
"mean": 0.0003042736220612549,
109+
"max": 0.0006112279952503741,
110+
"iqr": 8.715745934750885e-06,
111+
"q1": 0.0002950417510874104,
112+
"stddev": 3.7887656464164324e-05,
113+
"rounds": 2289,
114+
"hd15iqr": 0.00031697298982180655,
115+
"q3": 0.00030375749702216126,
116+
"min": 0.0002552110090618953,
117+
"ld15iqr": 0.00028225500136613846,
118+
"stddev_outliers": 327,
119+
"outliers": "327;607",
120+
"median": 0.00029885499679949135
121+
},
122+
"group": null,
123+
"extra_info": {},
124+
"params": null,
125+
"options": {
126+
"max_time": 1.0,
127+
"disable_gc": false,
128+
"min_time": 5e-06,
129+
"min_rounds": 5,
130+
"warmup": false,
131+
"timer": "perf_counter"
132+
},
133+
"fullname": "tests/benchmarks/test_upsert.py::test_upsert_native"
134+
}
135+
],
136+
"version": "3.1.0a2",
137+
"commit_info": {
138+
"branch": "master",
139+
"dirty": true,
140+
"id": "47c2efb37ab0255b008a86f71a6e254645239fce",
141+
"project": "django-postgres-extra"
142+
},
143+
"machine_info": {
144+
"system": "Darwin",
145+
"python_implementation_version": "3.5.2",
146+
"machine": "x86_64",
147+
"node": "sectorlabs.ro",
148+
"python_implementation": "CPython",
149+
"cpu": {
150+
"vendor_id": "GenuineIntel",
151+
"hardware": "unknown",
152+
"brand": "Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz"
153+
},
154+
"release": "16.5.0",
155+
"python_compiler": "GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)",
156+
"python_build": [
157+
"default",
158+
"Oct 11 2016 04:59:56"
159+
],
160+
"processor": "i386",
161+
"python_version": "3.5.2"
162+
},
163+
"datetime": "2017-04-09T05:47:03.590381"
164+
}

0 commit comments

Comments
 (0)