You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmarks/src/main/java/org/elasticsearch/benchmark/common/util/concurrent/ThreadPoolUtilizationBenchmark.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
28
28
importjava.util.concurrent.TimeUnit;
29
29
30
-
@Threads(12)
30
+
@Threads(Threads.MAX)
31
31
@Warmup(iterations = 3, time = 200, timeUnit = TimeUnit.MILLISECONDS)
32
32
@Measurement(iterations = 5, time = 600, timeUnit = TimeUnit.MILLISECONDS)
33
33
@BenchmarkMode(Mode.SampleTime)
@@ -36,13 +36,13 @@
36
36
@Fork(1)
37
37
publicclassThreadPoolUtilizationBenchmark {
38
38
39
-
@Param({ "10000" })
39
+
@Param({ "1000" })
40
40
privateintcallIntervalTicks;
41
41
42
42
/**
43
43
* This makes very little difference, all the overhead is in the synchronization
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/common/util/concurrent/TaskExecutionTimeTrackingEsThreadPoolExecutor.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ public TaskTrackingConfig trackingConfig() {
157
157
* Utilization is measured as {@code all-threads-total-execution-time / (total-thread-count * interval)}.
158
158
* This metric is updated once per interval, and returns last completed measurement. For example:
159
159
* if interval is 30 seconds, at clock time 00:30-01:00 it will return utilization from 00:00-00:30.
160
-
* Thou there is no synchronization with clocks and system time.
160
+
* There is no synchronization with clocks and system time.
161
161
*
162
162
* If caller needs longer intervals it should poll on every tracker-interval and aggregate on it's own. Another option is to extend
163
163
* framedTimeTracker to remember multiple past frames, and return aggregated view from here.
@@ -254,7 +254,7 @@ public boolean trackingMaxQueueLatency() {
254
254
}
255
255
256
256
/**
257
-
* Tracks treads execution in continuous, non-overlapping, and even time frames. Provides accurate total execution time measurement
257
+
* Tracks threads execution in continuous, non-overlapping, and even time frames. Provides accurate total execution time measurement
258
258
* for past frames, specifically previous frame (now - 1 frame) to measure utilization.
259
259
*
260
260
* Can be extended to remember multiple past frames.
0 commit comments