lora-database 0.2.0

LoraDB — embeddable in-memory graph database with Cypher query support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
//! Benchmarks for temporal operations, spatial operations, and shortest paths.
//!
//! Run with: `cargo bench -p lora-server --bench temporal_spatial_benchmarks`
//!
//! Categories:
//!   1. temporal_creation — date/time/datetime/duration constructor performance
//!   2. temporal_filtering — filtering graph data by temporal predicates
//!   3. temporal_arithmetic — date/duration arithmetic operations
//!   4. spatial_creation — point constructor performance
//!   5. spatial_distance — distance calculations (cartesian & geographic)
//!   6. spatial_filtering — filtering by spatial predicates
//!   7. shortest_path — shortestPath and allShortestPaths

mod fixtures;

use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use fixtures::*;
use lora_database::{ExecuteOptions, ResultFormat};
use std::hint::black_box;
use std::time::Duration;

fn opts() -> Option<ExecuteOptions> {
    Some(ExecuteOptions {
        format: ResultFormat::Rows,
    })
}

/// Same trimming as the other bench binaries: defaults cost ~8s per bench for
/// no extra signal.
fn bench_config() -> Criterion {
    Criterion::default()
        .warm_up_time(Duration::from_millis(500))
        .measurement_time(Duration::from_millis(2_000))
        .sample_size(50)
}

// ===================================================================
// 1. TEMPORAL CREATION — date/time/datetime/duration constructors
// ===================================================================

fn bench_temporal_creation(c: &mut Criterion) {
    let mut group = c.benchmark_group("temporal_creation");

    // Throughput unit: *one temporal constructor per query*. Composite
    // queries that construct several values override with their count.
    group.throughput(Throughput::Elements(1));

    // --- date from string ---
    group.bench_function("date_from_string", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN date('2024-06-15') AS d", opts())
                    .unwrap(),
            );
        });
    });

    // --- date from map ---
    group.bench_function("date_from_map", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN date({year: 2024, month: 6, day: 15}) AS d", opts())
                    .unwrap(),
            );
        });
    });

    // --- time from string ---
    group.bench_function("time_from_string", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN time('14:30:00') AS t", opts())
                    .unwrap(),
            );
        });
    });

    // --- datetime from string ---
    group.bench_function("datetime_from_string", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN datetime('2024-06-15T14:30:00Z') AS dt", opts())
                    .unwrap(),
            );
        });
    });

    // --- datetime from map ---
    group.bench_function("datetime_from_map", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN datetime({year: 2024, month: 6, day: 15, hour: 14, minute: 30}) AS dt",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- duration from string ---
    group.bench_function("duration_from_string", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN duration('P1Y2M3DT4H') AS dur", opts())
                    .unwrap(),
            );
        });
    });

    // --- duration from map ---
    group.bench_function("duration_from_map", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN duration({years: 1, months: 2, days: 3, hours: 4}) AS dur",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- multiple temporal values in one query --- 4 constructors/query
    group.throughput(Throughput::Elements(4));
    group.bench_function("multi_temporal_creation", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN date('2024-01-01') AS d, \
                         time('10:30:00') AS t, \
                         datetime('2024-06-15T14:30:00Z') AS dt, \
                         duration('P30D') AS dur",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- temporal component access --- 5 property reads in date_component_access
    group.throughput(Throughput::Elements(5));
    group.bench_function("date_component_access", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "WITH date('2024-06-15') AS d \
                         RETURN d.year AS y, d.month AS m, d.day AS day, \
                                d.dayOfWeek AS dow, d.dayOfYear AS doy",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- datetime component access --- 6 property reads
    group.throughput(Throughput::Elements(6));
    group.bench_function("datetime_component_access", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "WITH datetime('2024-06-15T14:30:45Z') AS dt \
                         RETURN dt.year AS y, dt.month AS m, dt.day AS d, \
                                dt.hour AS h, dt.minute AS min, dt.second AS s",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.finish();
}

// ===================================================================
// 2. TEMPORAL FILTERING — filtering graph data by temporal predicates
// ===================================================================

fn bench_temporal_filtering(c: &mut Criterion) {
    let mut group = c.benchmark_group("temporal_filtering");

    // Throughput unit: *events filtered per query*.

    // build_temporal_graph has a heavy per-row CASE expression, so we build
    // each size once and reuse across every bench in this group.
    let temporal: Vec<(usize, BenchDb)> = [100usize, 500, 1000]
        .iter()
        .map(|&s| (s, build_temporal_graph(s)))
        .collect();
    let db_500 = temporal
        .iter()
        .find(|(s, _)| *s == 500)
        .map(|(_, d)| d)
        .unwrap();

    // --- filter events by date comparison ---
    for (size, db) in &temporal {
        group.throughput(Throughput::Elements(*size as u64));
        group.bench_with_input(BenchmarkId::new("date_greater_than", size), size, |b, _| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "MATCH (e:Event) \
                             WHERE e.event_date > date('2024-01-14') \
                             RETURN e.id, e.event_date",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    // The remaining _500 benches all run on the 500-event fixture.
    group.throughput(Throughput::Elements(500));

    group.bench_function("date_range_500", |b| {
        b.iter(|| {
            black_box(
                db_500
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         WHERE e.event_date >= date('2024-01-05') \
                           AND e.event_date <= date('2024-01-20') \
                         RETURN e.id, e.name",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.bench_function("date_equality_500", |b| {
        b.iter(|| {
            black_box(
                db_500
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         WHERE e.event_date = date('2024-01-15') \
                         RETURN e.id",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.bench_function("order_by_date_500", |b| {
        b.iter(|| {
            black_box(
                db_500
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         RETURN e.id, e.event_date \
                         ORDER BY e.event_date DESC LIMIT 20",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.bench_function("group_by_priority_500", |b| {
        b.iter(|| {
            black_box(
                db_500
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         RETURN e.priority AS prio, count(e) AS cnt \
                         ORDER BY prio",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- temporal component access on inline values --- 28 dates unwound.
    {
        let db = BenchDb::new();
        group.throughput(Throughput::Elements(28));
        group.bench_function("date_component_inline", |b| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "UNWIND range(1, 28) AS d \
                             WITH date('2024-01-' + CASE WHEN d < 10 THEN '0' + toString(d) ELSE toString(d) END) AS dt \
                             RETURN dt.year AS y, dt.month AS m, dt.day AS day",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    group.finish();
}

// ===================================================================
// 3. TEMPORAL ARITHMETIC — date/duration arithmetic operations
// ===================================================================

fn bench_temporal_arithmetic(c: &mut Criterion) {
    let mut group = c.benchmark_group("temporal_arithmetic");

    // Throughput unit: *one temporal arithmetic op per iteration* for scalar
    // benches; graph benches override with row count.
    group.throughput(Throughput::Elements(1));

    // --- date + duration ---
    group.bench_function("date_plus_duration", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN date('2024-01-15') + duration('P30D') AS future_date",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- date - duration ---
    group.bench_function("date_minus_duration", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN date('2024-06-15') - duration('P2M') AS past_date",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- duration between dates ---
    group.bench_function("duration_between", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN duration.between(date('2024-01-01'), date('2024-12-31')) AS span",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- duration arithmetic ---
    group.bench_function("duration_add", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN duration('P1Y') + duration('P6M') AS total", opts())
                    .unwrap(),
            );
        });
    });

    // Share the 200-node temporal graph across the two graph-bound benches
    // in this group (previously rebuilt twice).
    let db_graph = build_temporal_graph(200);
    group.throughput(Throughput::Elements(200));

    group.bench_function("date_arithmetic_on_graph_200", |b| {
        b.iter(|| {
            black_box(
                db_graph
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         RETURN e.id, e.event_date + duration('P7D') AS next_week",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.bench_function("datetime_plus_duration_200", |b| {
        b.iter(|| {
            black_box(
                db_graph
                    .service
                    .execute(
                        "MATCH (e:Event) \
                         RETURN e.id, e.created_at + duration('P30D') AS expiry",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.finish();
}

// ===================================================================
// 4. SPATIAL CREATION — point constructor performance
// ===================================================================

fn bench_spatial_creation(c: &mut Criterion) {
    let mut group = c.benchmark_group("spatial_creation");

    // Throughput unit: *one point construction per iteration*.
    group.throughput(Throughput::Elements(1));

    // --- cartesian point ---
    group.bench_function("point_cartesian", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute("RETURN point({x: 3.0, y: 4.0}) AS p", opts())
                    .unwrap(),
            );
        });
    });

    // --- geographic point ---
    group.bench_function("point_geographic", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN point({latitude: 48.8566, longitude: 2.3522}) AS p",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- point component access --- 3 property reads
    group.throughput(Throughput::Elements(3));
    group.bench_function("point_component_access", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "WITH point({latitude: 48.8566, longitude: 2.3522}) AS p \
                         RETURN p.latitude AS lat, p.longitude AS lon, p.srid AS srid",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- multiple point creation --- 3 constructions/query
    group.throughput(Throughput::Elements(3));
    group.bench_function("multi_point_creation", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN point({x: 1.0, y: 2.0}) AS p1, \
                                point({x: 3.0, y: 4.0}) AS p2, \
                                point({latitude: 51.5, longitude: -0.1}) AS p3",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.finish();
}

// ===================================================================
// 5. SPATIAL DISTANCE — distance calculations
// ===================================================================

fn bench_spatial_distance(c: &mut Criterion) {
    let mut group = c.benchmark_group("spatial_distance");

    // Throughput unit: *one distance calculation per iteration* for scalar
    // benches; graph benches override with the number of edges they traverse.
    group.throughput(Throughput::Elements(1));

    // --- cartesian distance ---
    group.bench_function("distance_cartesian", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN distance(point({x: 0.0, y: 0.0}), point({x: 3.0, y: 4.0})) AS d",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- geographic distance (haversine) ---
    group.bench_function("distance_geographic", |b| {
        let db = BenchDb::new();
        b.iter(|| {
            black_box(
                db.service
                    .execute(
                        "RETURN distance(\
                           point({latitude: 48.8566, longitude: 2.3522}), \
                           point({latitude: 51.5074, longitude: -0.1278})\
                         ) AS d",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    // --- distance on graph data ---
    for &size in &[100usize, 500] {
        let db = build_spatial_graph(size);
        group.throughput(Throughput::Elements(size as u64));
        group.bench_with_input(
            BenchmarkId::new("pairwise_distance_graph", size),
            &size,
            |b, _| {
                b.iter(|| {
                    black_box(
                        db.service
                            .execute(
                                "MATCH (a:Location)-[:CONNECTS_TO]->(b:Location) \
                                 RETURN a.id, b.id, distance(a.pos, b.pos) AS dist",
                                opts(),
                            )
                            .unwrap(),
                    );
                });
            },
        );
    }

    // --- geographic distance on graph --- 200 CONNECTS_TO edges.
    {
        let db = build_spatial_graph(200);
        group.throughput(Throughput::Elements(200));
        group.bench_function("geo_distance_graph_200", |b| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "MATCH (a:Location)-[:CONNECTS_TO]->(b:Location) \
                             RETURN a.id, b.id, distance(a.geo, b.geo) AS meters",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    group.finish();
}

// ===================================================================
// 6. SPATIAL FILTERING — filtering by spatial predicates
// ===================================================================

fn bench_spatial_filtering(c: &mut Criterion) {
    let mut group = c.benchmark_group("spatial_filtering");

    // Throughput unit: *Location nodes scanned per query*.

    // 200-node spatial graph was previously built twice; share it.
    let db_200 = build_spatial_graph(200);
    let db_500 = build_spatial_graph(500);

    group.throughput(Throughput::Elements(200));
    group.bench_function("distance_threshold_200", |b| {
        b.iter(|| {
            black_box(
                db_200
                    .service
                    .execute(
                        "MATCH (a:Location {id: 0}), (b:Location) \
                         WHERE a <> b AND distance(a.pos, b.pos) < 20.0 \
                         RETURN b.id, b.name",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.throughput(Throughput::Elements(200));
    group.bench_function("nearest_sorted_200", |b| {
        b.iter(|| {
            black_box(
                db_200
                    .service
                    .execute(
                        "MATCH (a:Location {id: 0}), (b:Location) \
                         WHERE a <> b \
                         RETURN b.id, distance(a.pos, b.pos) AS dist \
                         ORDER BY dist ASC LIMIT 10",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.throughput(Throughput::Elements(500));
    group.bench_function("category_distance_filter_500", |b| {
        b.iter(|| {
            black_box(
                db_500
                    .service
                    .execute(
                        "MATCH (a:Location {id: 0}), (b:Location) \
                         WHERE b.category = 'restaurant' \
                           AND distance(a.pos, b.pos) < 30.0 \
                         RETURN b.id, b.name",
                        opts(),
                    )
                    .unwrap(),
            );
        });
    });

    group.finish();
}

// ===================================================================
// 7. SHORTEST PATH — shortestPath and allShortestPaths
// ===================================================================

fn bench_shortest_path(c: &mut Criterion) {
    let mut group = c.benchmark_group("shortest_path");
    // Shortest-path iterations are by far the slowest in this binary.
    // Fewer samples at this level still give enough statistical power because
    // per-iteration variance is low on deterministic graphs.
    group.sample_size(30);
    group.measurement_time(Duration::from_millis(2_500));

    // Throughput unit: *one shortest-path query per iteration* (a single path
    // is produced). Reported as "paths/sec".
    group.throughput(Throughput::Elements(1));

    // --- shortestPath on chain (trivial: only one path) ---
    for &size in &[100usize, 500] {
        let db = build_chain(size);
        group.bench_with_input(
            BenchmarkId::new("shortest_chain", size),
            &size,
            |b, _| {
                b.iter(|| {
                    black_box(
                        db.service
                            .execute(
                                "MATCH p = shortestPath((a:Chain {idx:0})-[:NEXT*]->(b:Chain {idx:10})) \
                                 RETURN length(p) AS len",
                                opts(),
                            )
                            .unwrap(),
                    );
                });
            },
        );
    }

    // --- shortestPath on social graph (bounded to prevent explosion) ---
    for &size in &[100usize, 200] {
        let db = build_social_graph(size, 3);
        group.bench_with_input(
            BenchmarkId::new("shortest_social_bounded", size),
            &size,
            |b, _| {
                b.iter(|| {
                    black_box(
                        db.service
                            .execute(
                                "MATCH p = shortestPath((a:Person {id:0})-[:KNOWS*1..6]->(b:Person {id:10})) \
                                 RETURN length(p) AS len",
                                opts(),
                            )
                            .unwrap(),
                    );
                });
            },
        );
    }

    // --- allShortestPaths on social graph (bounded) ---
    {
        let db = build_social_graph(100, 3);
        group.bench_function("all_shortest_social_100", |b| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "MATCH p = allShortestPaths((a:Person {id:0})-[:KNOWS*1..6]->(b:Person {id:10})) \
                             RETURN length(p) AS len",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    // --- shortestPath on tree (well-defined depth) ---
    {
        let db = build_tree(4, 3);
        group.bench_function("shortest_tree_depth4_branch3", |b| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "MATCH p = shortestPath((root:Tree {id:0})-[:CHILD*1..4]->(leaf:Tree {depth:4})) \
                             RETURN length(p) AS len",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    // --- shortestPath on dependency graph (bounded) ---
    {
        let db = build_dependency_graph(100);
        group.bench_function("shortest_dep_graph_100", |b| {
            b.iter(|| {
                black_box(
                    db.service
                        .execute(
                            "MATCH p = shortestPath((a:Package {id:99})-[:DEPENDS_ON*1..10]->(b:Package {id:0})) \
                             RETURN length(p) AS len",
                            opts(),
                        )
                        .unwrap(),
                );
            });
        });
    }

    group.finish();
}

// ===================================================================
// Criterion harness
// ===================================================================

criterion_group! {
    name = benches;
    config = bench_config();
    targets =
        bench_temporal_creation,
        bench_temporal_filtering,
        bench_temporal_arithmetic,
        bench_spatial_creation,
        bench_spatial_distance,
        bench_spatial_filtering,
        bench_shortest_path,
}
criterion_main!(benches);