File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,21 @@ static void BM_ParseDoubleAbsl(benchmark::State& state) {
223
223
}
224
224
BENCHMARK (BM_ParseDoubleAbsl);
225
225
226
+ template <clockid_t cid> void BM_ClockType (benchmark::State& state) {
227
+ timespec ts;
228
+ while (state.KeepRunning ()) {
229
+ DoNotOptimize (clock_gettime (cid, &ts));
230
+ }
231
+ }
232
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_REALTIME);
233
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_REALTIME_COARSE);
234
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_MONOTONIC);
235
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_MONOTONIC_COARSE);
236
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_BOOTTIME);
237
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_PROCESS_CPUTIME_ID);
238
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_THREAD_CPUTIME_ID);
239
+ BENCHMARK_TEMPLATE (BM_ClockType, CLOCK_BOOTTIME_ALARM);
240
+
226
241
static void BM_MatchGlob (benchmark::State& state) {
227
242
string random_val = GetRandomHex (state.range (0 ));
228
243
GlobMatcher matcher (" *foobar*" , true );
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ gen_bison(parser)
3
3
4
4
cur_gen_dir(gen_dir)
5
5
6
+ set_source_files_properties (${gen_dir} /parser.cc PROPERTIES
7
+ COMPILE_FLAGS "-Wno-maybe-uninitialized" )
6
8
add_library (query_parser base.cc ast_expr.cc query_driver.cc search.cc indices.cc
7
9
sort_indices.cc vector_utils.cc compressed_sorted_set.cc block_list.cc
8
10
synonyms.cc ${gen_dir} /parser.cc ${gen_dir} /lexer.cc)
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ async def test_keyspace_events_config_set(async_client: aioredis.Redis):
525
525
await collect_expiring_events (pclient , keys )
526
526
527
527
528
- @dfly_args ({"max_busy_read_usec" : 10000 })
528
+ @dfly_args ({"max_busy_read_usec" : 50000 })
529
529
async def test_reply_count (async_client : aioredis .Redis ):
530
530
"""Make sure reply aggregations reduce reply counts for common cases"""
531
531
@@ -1122,7 +1122,7 @@ async def wait_for_stuck_on_send():
1122
1122
1123
1123
1124
1124
# Test that the cache pipeline does not grow or shrink under constant pipeline load.
1125
- @dfly_args ({"proactor_threads" : 1 , "pipeline_squash" : 9 , "max_busy_read_usec" : 10000 })
1125
+ @dfly_args ({"proactor_threads" : 1 , "pipeline_squash" : 9 , "max_busy_read_usec" : 50000 })
1126
1126
async def test_pipeline_cache_only_async_squashed_dispatches (df_factory ):
1127
1127
server = df_factory .create ()
1128
1128
server .start ()
You can’t perform that action at this time.
0 commit comments