Skip to content

Commit 884ee6a

Browse files
committed
Add no_cache directive to bench queries.
1 parent 255b740 commit 884ee6a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/SeqCli/Cli/Commands/Bench/BenchCases.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
"cases": [
33
{
44
"id": "count-all",
5-
"query": "select count(*) from stream where @Timestamp >= now() - 30d",
5+
"query": "select count(*) from stream where @Timestamp >= now() - 30d for no_cache",
66
"notes": "Tests page traversal performance only; avoids data copies, serialization, and evaluation."
77
},
88
{
99
"id": "multiple-reductions",
10-
"query": "select count(*), sum(A), min(B), max(C) from stream where @Timestamp >= now() - 30d",
10+
"query": "select count(*), sum(A), min(B), max(C) from stream where @Timestamp >= now() - 30d for no_cache",
1111
"notes": "Reducer performance. Percentile is excluded because it prevents parallelization unless time-grouped."
1212
},
1313
{
1414
"id": "percentile-by-12h",
15-
"query": "select percentile(@Timestamp % 1ms, 90) from stream where @Timestamp >= now() - 30d group by @Level, time(12h)",
15+
"query": "select percentile(@Timestamp % 1ms, 90) from stream where @Timestamp >= now() - 30d group by @Level, time(12h) for no_cache",
1616
"notes": "Common reducer/grouping combination used when monitoring performance."
1717
},
1818
{
1919
"id": "count-with-request-id",
20-
"query": "select count(*) from stream where RequestId is not null and @Timestamp >= now() - 30d",
20+
"query": "select count(*) from stream where RequestId is not null and @Timestamp >= now() - 30d for no_cache",
2121
"notes": "Tests sparse deserialization and condition evaluation atop basic page traversal."
2222
},
2323
{
2424
"id": "count-exception-starts-with-sys",
25-
"query": "select count(*) from stream where @Exception like 'Sys%' and @Timestamp >= now() - 30d",
25+
"query": "select count(*) from stream where @Exception like 'Sys%' and @Timestamp >= now() - 30d for no_cache",
2626
"notes": "Text search performance. Chooses 'Sys' because in .NET data there should be some hits."
2727
},
2828
{
2929
"id": "count-message-starts-with-fai",
30-
"query": "select count(*) from stream where @Message like 'Fai%' and @Timestamp >= now() - 30d",
30+
"query": "select count(*) from stream where @Message like 'Fai%' and @Timestamp >= now() - 30d for no_cache",
3131
"notes": "Text search performance; worse on @Message than other properties because fragment pre-filtering is not used."
3232
},
3333
{
3434
"id": "group-by-level",
35-
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by @Level",
35+
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by @Level for no_cache",
3636
"notes": "Grouping performance, strings, small number of groups."
3737
},
3838
{
3939
"id": "group-by-millisecond",
40-
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by @Timestamp % 1ms limit 100",
40+
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by @Timestamp % 1ms limit 100 for no_cache",
4141
"notes": "Grouping performance, numbers, up to 10000 groups."
4242
},
4343
{
4444
"id": "group-by-12h",
45-
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by time(12h)",
45+
"query": "select count(*) from stream where @Timestamp >= now() - 30d group by time(12h) for no_cache",
4646
"notes": "Time partitioning performance."
4747
},
4848
{
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"id": "count-where-heavy-predicate",
65-
"query": "select count(*) from stream where (A = 1 or B = '2' or C or D <> null or length(E) > 5 or F = {f: 6} or G = '7' or H like '8%' or I > 9 or J % 10 = 0) and @Timestamp >= now() - 30d",
65+
"query": "select count(*) from stream where (A = 1 or B = '2' or C or D <> null or length(E) > 5 or F = {f: 6} or G = '7' or H like '8%' or I > 9 or J % 10 = 0) and @Timestamp >= now() - 30d for no_cache",
6666
"notes": "Tests expression evaluation performance."
6767
}
6868
]

0 commit comments

Comments
 (0)