@@ -80,8 +80,8 @@ public void measureAllMethods() {
80
80
}
81
81
82
82
/**
83
- * Each thread publishes 1000 metrics, 10 threads in total.
84
- * no lock: 0.949 ms/op; RW lock: 3.823 ms/op; S lock: 3.078 ms/op
83
+ * Each thread publishes 1000 metrics, 10 threads in total. no lock: 0.949 ms/op; RW lock: 3.823
84
+ * ms/op; S lock: 3.078 ms/op
85
85
*
86
86
* @throws InterruptedException
87
87
*/
@@ -91,8 +91,8 @@ public void measurePutMetricWith10Threads() throws InterruptedException {
91
91
}
92
92
93
93
/**
94
- * Each thread publishes 1000 metrics, 20 threads in total.
95
- * no lock: 1.860 ms/op; RW lock: 9.806 ms/op; S lock: 7.929 ms/op
94
+ * Each thread publishes 1000 metrics, 20 threads in total. no lock: 1.860 ms/op; RW lock: 9.806
95
+ * ms/op; S lock: 7.929 ms/op
96
96
*
97
97
* @throws InterruptedException
98
98
*/
@@ -102,8 +102,8 @@ public void measurePutMetricWith20Threads() throws InterruptedException {
102
102
}
103
103
104
104
/**
105
- * Each thread publishes 1000 metrics, 50 threads in total.
106
- * no lock: 6.548 ms/op; RW lock: 28.754 ms/op; S lock: 24.700 ms/op
105
+ * Each thread publishes 1000 metrics, 50 threads in total. no lock: 6.548 ms/op; RW lock:
106
+ * 28.754 ms/op; S lock: 24.700 ms/op
107
107
*
108
108
* @throws InterruptedException
109
109
*/
@@ -113,8 +113,8 @@ public void measurePutMetricWith50Threads() throws InterruptedException {
113
113
}
114
114
115
115
/**
116
- * Each thread publishes 1000 metrics, 200 threads in total.
117
- * no lock: 37.662 ms/op; RW lock: 135.824 ms/op; S lock: 114.467 ms/op
116
+ * Each thread publishes 1000 metrics, 200 threads in total. no lock: 37.662 ms/op; RW lock:
117
+ * 135.824 ms/op; S lock: 114.467 ms/op
118
118
*
119
119
* @throws InterruptedException
120
120
*/
@@ -124,8 +124,8 @@ public void measurePutMetricWith200Threads() throws InterruptedException {
124
124
}
125
125
126
126
/**
127
- * Each thread publishes 1000 metrics, 500 threads in total.
128
- * no lock: 90.148 ms/op; RW lock: 345.197 ms/op; S lock: 287.908 ms/op
127
+ * Each thread publishes 1000 metrics, 500 threads in total. no lock: 90.148 ms/op; RW lock:
128
+ * 345.197 ms/op; S lock: 287.908 ms/op
129
129
*
130
130
* @throws InterruptedException
131
131
*/
@@ -137,8 +137,8 @@ public void measurePutMetricWith500Threads() throws InterruptedException {
137
137
}
138
138
139
139
/**
140
- * Each thread flushes 100 times, 10 threads in total.
141
- * no lock: 12.900 ms/op; RW lock: 25.015 ms/op; S lock: 24.778 ms/op
140
+ * Each thread flushes 100 times, 10 threads in total. no lock: 12.900 ms/op; RW lock: 25.015
141
+ * ms/op; S lock: 24.778 ms/op
142
142
*
143
143
* @throws InterruptedException
144
144
*/
@@ -148,8 +148,8 @@ public void measureFlushWith10Threads() throws InterruptedException {
148
148
}
149
149
150
150
/**
151
- * Each thread flushes 100 times, 20 threads in total.
152
- * no lock: 20.824 ms/op; RW lock: 47.123 ms/op; S lock: 48.511 ms/op
151
+ * Each thread flushes 100 times, 20 threads in total. no lock: 20.824 ms/op; RW lock: 47.123
152
+ * ms/op; S lock: 48.511 ms/op
153
153
*
154
154
* @throws InterruptedException
155
155
*/
@@ -159,8 +159,8 @@ public void measureFlushWith20Threads() throws InterruptedException {
159
159
}
160
160
161
161
/**
162
- * Each thread flushes 100 times, 50 threads in total.
163
- * no lock: 77.463 ms/op; RW lock: 121.857 ms/op; S lock: 125.212 ms/op
162
+ * Each thread flushes 100 times, 50 threads in total. no lock: 77.463 ms/op; RW lock: 121.857
163
+ * ms/op; S lock: 125.212 ms/op
164
164
*
165
165
* @throws InterruptedException
166
166
*/
@@ -170,8 +170,8 @@ public void measureFlushWith50Threads() throws InterruptedException {
170
170
}
171
171
172
172
/**
173
- * Each thread flushes 100 times, 200 threads in total.
174
- * no lock: 390.252 ms/op; RW lock: 474.439 ms/op; S lock: 488.809 ms/op
173
+ * Each thread flushes 100 times, 200 threads in total. no lock: 390.252 ms/op; RW lock: 474.439
174
+ * ms/op; S lock: 488.809 ms/op
175
175
*
176
176
* @throws InterruptedException
177
177
*/
@@ -181,8 +181,8 @@ public void measureFlushWith200Threads() throws InterruptedException {
181
181
}
182
182
183
183
/**
184
- * Each thread flushes 100 times, 500 threads in total.
185
- * no lock: 300.280 ms/op; RW lock: 1161.098 ms/op; S lock: 1247.972 ms/op
184
+ * Each thread flushes 100 times, 500 threads in total. no lock: 300.280 ms/op; RW lock:
185
+ * 1161.098 ms/op; S lock: 1247.972 ms/op
186
186
*
187
187
* @throws InterruptedException
188
188
*/
@@ -194,9 +194,9 @@ public void measureFlushWith500Threads() throws InterruptedException {
194
194
}
195
195
196
196
/**
197
- * Each thread executes all methods 100 times, 10 threads in total.
198
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 7.215 ms/op;
199
- * RW lock: 32.159; S lock: 34.226
197
+ * Each thread executes all methods 100 times, 10 threads in total. no lock (need to sync
198
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 7.215 ms/op; RW lock:
199
+ * 32.159; S lock: 34.226
200
200
*
201
201
* @throws InterruptedException
202
202
*/
@@ -206,9 +206,9 @@ public void measureAllMethodsWith10Threads() throws InterruptedException {
206
206
}
207
207
208
208
/**
209
- * Each thread executes all methods 100 times, 20 threads in total.
210
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 11.833 ms/op;
211
- * RW lock: 60.510 ms/op; S lock: 75.125 ms/op
209
+ * Each thread executes all methods 100 times, 20 threads in total. no lock (need to sync
210
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 11.833 ms/op; RW lock:
211
+ * 60.510 ms/op; S lock: 75.125 ms/op
212
212
*
213
213
* @throws InterruptedException
214
214
*/
@@ -218,9 +218,9 @@ public void measureAllMethodsWith20Threads() throws InterruptedException {
218
218
}
219
219
220
220
/**
221
- * Each thread executes all methods 100 times, 50 threads in total.
222
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 36.051 ms/op;
223
- * RW lock: 150.022 ms/op; S lock: 244.934 ms/op
221
+ * Each thread executes all methods 100 times, 50 threads in total. no lock (need to sync
222
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 36.051 ms/op; RW lock:
223
+ * 150.022 ms/op; S lock: 244.934 ms/op
224
224
*
225
225
* @throws InterruptedException
226
226
*/
@@ -230,9 +230,9 @@ public void measureAllMethodsWith50Threads() throws InterruptedException {
230
230
}
231
231
232
232
/**
233
- * Each thread executes all methods 100 times, 200 threads in total.
234
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 108.775 ms/op;
235
- * RW lock: 629.826 ms/op; S lock: 1220.959 ms/op
233
+ * Each thread executes all methods 100 times, 200 threads in total. no lock (need to sync
234
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 108.775 ms/op; RW lock:
235
+ * 629.826 ms/op; S lock: 1220.959 ms/op
236
236
*
237
237
* @throws InterruptedException
238
238
*/
@@ -244,9 +244,9 @@ public void measureAllMethodsWith200Threads() throws InterruptedException {
244
244
}
245
245
246
246
/**
247
- * Each thread executes all methods 100 times, 500 threads in total.
248
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 335.183 ms/op;
249
- * RW lock: 1741.003 ms/op; S lock: 4192.327 ms/op
247
+ * Each thread executes all methods 100 times, 500 threads in total. no lock (need to sync
248
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 335.183 ms/op; RW lock:
249
+ * 1741.003 ms/op; S lock: 4192.327 ms/op
250
250
*
251
251
* @throws InterruptedException
252
252
*/
@@ -258,9 +258,9 @@ public void measureAllMethodsWith500Threads() throws InterruptedException {
258
258
}
259
259
260
260
/**
261
- * Each thread executes all methods 100 times, 1000 threads in total.
262
- * no lock (need to sync getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 575.339 ms/op;
263
- * RW lock: 3230.403 ms/op; S lock: 13519.459 ms/op
261
+ * Each thread executes all methods 100 times, 1000 threads in total. no lock (need to sync
262
+ * getAllDimensions() & getAllDimensionKeys() in MetricsDirective): 575.339 ms/op; RW lock:
263
+ * 3230.403 ms/op; S lock: 13519.459 ms/op
264
264
*
265
265
* @throws InterruptedException
266
266
*/
0 commit comments