Skip to content

Commit 0d15c97

Browse files
committed
fix sample
1 parent 95c3b61 commit 0d15c97

File tree

3 files changed

+178
-5
lines changed

3 files changed

+178
-5
lines changed

db-service/bench/cqn4sql/performance-benchmarks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('cqn4sql performance benchmarks', () => {
2727
runBenchmarkFor('expand simple', cds.ql`SELECT from my.Authors { ID, books { title } }`)
2828
runBenchmarkFor('expand recursive (depth 3)', cds.ql`SELECT from my.Genres { ID, parent { parent { parent { name }}} }`)
2929

30-
runBenchmarkFor('exists simple', cds.ql`SELECT from my.Genres { ID, parent { parent { parent { name }}} }`)
30+
runBenchmarkFor('exists simple', cds.ql`SELECT from my.Genres { ID } where exists parent`)
3131
runBenchmarkFor('exists recursive (depth 3)', cds.ql`SELECT from my.Genres { ID } where exists parent.parent.parent`)
3232

3333
runBenchmarkFor('assoc2join simple', cds.ql`SELECT from my.Books { ID, author.name }`)

db-service/bench/cqn4sql/results/cqn4sql-benchmarks.json

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,5 +344,178 @@
344344
"sent": 137312
345345
}
346346
}
347+
},
348+
"95c3b619": {
349+
"date": "2025-08-27T15:21:15.094Z",
350+
"benchmarks": {
351+
"select simple": {
352+
"average": 88224,
353+
"mean": 88224,
354+
"stddev": 256,
355+
"min": 87958,
356+
"max": 88496,
357+
"total": 264485,
358+
"p0_001": 87999,
359+
"p0_01": 87999,
360+
"p0_1": 87999,
361+
"p1": 87999,
362+
"p2_5": 87999,
363+
"p10": 87999,
364+
"p25": 87999,
365+
"p50": 87999,
366+
"p75": 88511,
367+
"p90": 88511,
368+
"p97_5": 88511,
369+
"p99": 88511,
370+
"p99_9": 88511,
371+
"p99_99": 88511,
372+
"p99_999": 88511,
373+
"sent": 264485
374+
},
375+
"expand simple": {
376+
"average": 20280,
377+
"mean": 20280,
378+
"stddev": 320,
379+
"min": 19963,
380+
"max": 20592,
381+
"total": 61170,
382+
"p0_001": 19967,
383+
"p0_01": 19967,
384+
"p0_1": 19967,
385+
"p1": 19967,
386+
"p2_5": 19967,
387+
"p10": 19967,
388+
"p25": 19967,
389+
"p50": 19967,
390+
"p75": 20607,
391+
"p90": 20607,
392+
"p97_5": 20607,
393+
"p99": 20607,
394+
"p99_9": 20607,
395+
"p99_99": 20607,
396+
"p99_999": 20607,
397+
"sent": 61170
398+
},
399+
"expand recursive (depth 3)": {
400+
"average": 8213,
401+
"mean": 8213,
402+
"stddev": 199,
403+
"min": 8012,
404+
"max": 8409,
405+
"total": 24668,
406+
"p0_001": 8015,
407+
"p0_01": 8015,
408+
"p0_1": 8015,
409+
"p1": 8015,
410+
"p2_5": 8015,
411+
"p10": 8015,
412+
"p25": 8015,
413+
"p50": 8015,
414+
"p75": 8415,
415+
"p90": 8415,
416+
"p97_5": 8415,
417+
"p99": 8415,
418+
"p99_9": 8415,
419+
"p99_99": 8415,
420+
"p99_999": 8415,
421+
"sent": 24668
422+
},
423+
"exists simple": {
424+
"average": 8199,
425+
"mean": 8199,
426+
"stddev": 181,
427+
"min": 8017,
428+
"max": 8377,
429+
"total": 24403,
430+
"p0_001": 8019,
431+
"p0_01": 8019,
432+
"p0_1": 8019,
433+
"p1": 8019,
434+
"p2_5": 8019,
435+
"p10": 8019,
436+
"p25": 8019,
437+
"p50": 8019,
438+
"p75": 8383,
439+
"p90": 8383,
440+
"p97_5": 8383,
441+
"p99": 8383,
442+
"p99_9": 8383,
443+
"p99_99": 8383,
444+
"p99_999": 8383,
445+
"sent": 24403
446+
},
447+
"exists recursive (depth 3)": {
448+
"average": 45408,
449+
"mean": 45408,
450+
"stddev": 144,
451+
"min": 45256,
452+
"max": 45553,
453+
"total": 137346,
454+
"p0_001": 45279,
455+
"p0_01": 45279,
456+
"p0_1": 45279,
457+
"p1": 45279,
458+
"p2_5": 45279,
459+
"p10": 45279,
460+
"p25": 45279,
461+
"p50": 45279,
462+
"p75": 45567,
463+
"p90": 45567,
464+
"p97_5": 45567,
465+
"p99": 45567,
466+
"p99_9": 45567,
467+
"p99_99": 45567,
468+
"p99_999": 45567,
469+
"sent": 137346
470+
},
471+
"assoc2join simple": {
472+
"average": 53680,
473+
"mean": 53680,
474+
"stddev": 288,
475+
"min": 53400,
476+
"max": 53983,
477+
"total": 162826,
478+
"p0_001": 53407,
479+
"p0_01": 53407,
480+
"p0_1": 53407,
481+
"p1": 53407,
482+
"p2_5": 53407,
483+
"p10": 53407,
484+
"p25": 53407,
485+
"p50": 53407,
486+
"p75": 53983,
487+
"p90": 53983,
488+
"p97_5": 53983,
489+
"p99": 53983,
490+
"p99_9": 53983,
491+
"p99_99": 53983,
492+
"p99_999": 53983,
493+
"sent": 162826
494+
},
495+
"assoc2join recursive (depth 3)": {
496+
"average": 45600,
497+
"mean": 45600,
498+
"stddev": 16,
499+
"min": 45589,
500+
"max": 45628,
501+
"total": 134677,
502+
"p0_001": 45599,
503+
"p0_01": 45599,
504+
"p0_1": 45599,
505+
"p1": 45599,
506+
"p2_5": 45599,
507+
"p10": 45599,
508+
"p25": 45599,
509+
"p50": 45599,
510+
"p75": 45631,
511+
"p90": 45631,
512+
"p97_5": 45631,
513+
"p99": 45631,
514+
"p99_9": 45631,
515+
"p99_99": 45631,
516+
"p99_999": 45631,
517+
"sent": 134677
518+
}
519+
}
347520
}
348521
}

db-service/bench/cqn4sql/results/perf-benchmarks.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</style>
1515
<h1>Perf Benchmarks (requests/second) by Commit</h1>
1616
<div class="meta">
17-
Data: cqn4sql-benchmarks.json • Commits: 2 • Metric: requests.average
17+
Data: cqn4sql-benchmarks.json • Commits: 3 • Metric: requests.average
1818
</div>
1919
<div style="margin:8px 0">
2020
<label for="filter">Filter benchmark:</label>
@@ -24,9 +24,9 @@ <h1>Perf Benchmarks (requests/second) by Commit</h1>
2424

2525
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script>
2626
<script>
27-
const SERIES = [{"name":"select simple","x":["8ea5c2b9","19731f02"],"y":[87328,87520]},{"name":"expand simple","x":["8ea5c2b9","19731f02"],"y":[20440,20016]},{"name":"expand recursive (depth 3)","x":["8ea5c2b9","19731f02"],"y":[7926,8123]},{"name":"exists simple","x":["8ea5c2b9","19731f02"],"y":[8144,8352]},{"name":"exists recursive (depth 3)","x":["8ea5c2b9","19731f02"],"y":[46192,46080]},{"name":"assoc2join simple","x":["8ea5c2b9","19731f02"],"y":[53792,54800]},{"name":"assoc2join recursive (depth 3)","x":["8ea5c2b9","19731f02"],"y":[42480,45888]}];
28-
const COMMITS = ["8ea5c2b9","19731f02"];
29-
const COMMIT_DATES = ["2025-08-27T15:03:45.583Z","2025-08-27T15:06:07.491Z"];
27+
const SERIES = [{"name":"select simple","x":["8ea5c2b9","19731f02","95c3b619"],"y":[87328,87520,88224]},{"name":"expand simple","x":["8ea5c2b9","19731f02","95c3b619"],"y":[20440,20016,20280]},{"name":"expand recursive (depth 3)","x":["8ea5c2b9","19731f02","95c3b619"],"y":[7926,8123,8213]},{"name":"exists simple","x":["8ea5c2b9","19731f02","95c3b619"],"y":[8144,8352,8199]},{"name":"exists recursive (depth 3)","x":["8ea5c2b9","19731f02","95c3b619"],"y":[46192,46080,45408]},{"name":"assoc2join simple","x":["8ea5c2b9","19731f02","95c3b619"],"y":[53792,54800,53680]},{"name":"assoc2join recursive (depth 3)","x":["8ea5c2b9","19731f02","95c3b619"],"y":[42480,45888,45600]}];
28+
const COMMITS = ["8ea5c2b9","19731f02","95c3b619"];
29+
const COMMIT_DATES = ["2025-08-27T15:03:45.583Z","2025-08-27T15:06:07.491Z","2025-08-27T15:21:15.094Z"];
3030

3131
// Populate filter
3232
const filterEl = document.getElementById('filter');

0 commit comments

Comments
 (0)