Compare commits
5 Commits
Implement-
...
orderby-wo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf31496b0f | ||
|
|
1f5a6e5057 | ||
|
|
115e7d87fc | ||
|
|
067387df10 | ||
|
|
646fd8b6da |
8
.github/workflows/daily_benchmark.yaml
vendored
8
.github/workflows/daily_benchmark.yaml
vendored
@@ -75,6 +75,8 @@ jobs:
|
|||||||
|
|
||||||
./benchmark.py vendor-native --num-workers-for-benchmark 12 --export-results cartesian.json cartesian
|
./benchmark.py vendor-native --num-workers-for-benchmark 12 --export-results cartesian.json cartesian
|
||||||
|
|
||||||
|
./benchmark.py vendor-native --num-workers-for-benchmark 12 --export-results order_by.json order_by
|
||||||
|
|
||||||
- name: Upload mgbench results
|
- name: Upload mgbench results
|
||||||
run: |
|
run: |
|
||||||
cd tools/bench-graph-client
|
cd tools/bench-graph-client
|
||||||
@@ -104,3 +106,9 @@ jobs:
|
|||||||
--github-run-id "${{ github.run_id }}" \
|
--github-run-id "${{ github.run_id }}" \
|
||||||
--github-run-number "${{ github.run_number }}" \
|
--github-run-number "${{ github.run_number }}" \
|
||||||
--head-branch-name "${{ env.BRANCH_NAME }}"
|
--head-branch-name "${{ env.BRANCH_NAME }}"
|
||||||
|
|
||||||
|
./main.py --benchmark-name "order_by" \
|
||||||
|
--benchmark-results "../../tests/mgbench/order_by.json" \
|
||||||
|
--github-run-id "${{ github.run_id }}" \
|
||||||
|
--github-run-number "${{ github.run_number }}" \
|
||||||
|
--head-branch-name "${{ env.BRANCH_NAME }}"
|
||||||
|
|||||||
46
tests/mgbench/workloads/order_by.py
Normal file
46
tests/mgbench/workloads/order_by.py
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 2023 Memgraph Ltd.
|
||||||
|
#
|
||||||
|
# Use of this software is governed by the Business Source License
|
||||||
|
# included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||||
|
# License, and you may not use this file except in compliance with the Business Source License.
|
||||||
|
#
|
||||||
|
# As of the Change Date specified in that file, in accordance with
|
||||||
|
# the Business Source License, use of this software will be governed
|
||||||
|
# by the Apache License, Version 2.0, included in the file
|
||||||
|
# licenses/APL.txt.
|
||||||
|
|
||||||
|
from workloads.base import Workload
|
||||||
|
|
||||||
|
|
||||||
|
class OrderBy(Workload):
|
||||||
|
NAME = "order_by"
|
||||||
|
CARDINALITY = 10000
|
||||||
|
|
||||||
|
def indexes_generator(self):
|
||||||
|
return [
|
||||||
|
("CREATE INDEX ON :Node;", {}),
|
||||||
|
("CREATE INDEX ON :Node(prop1);", {}),
|
||||||
|
("CREATE INDEX ON :Node(prop2);", {}),
|
||||||
|
("CREATE INDEX ON :Node(prop3);", {}),
|
||||||
|
]
|
||||||
|
|
||||||
|
def dataset_generator(self):
|
||||||
|
queries = []
|
||||||
|
for i in range(0, OrderBy.CARDINALITY):
|
||||||
|
queries.append(
|
||||||
|
(
|
||||||
|
"""CREATE
|
||||||
|
(:Node {prop1: $id, prop2: $id, prop3: $id
|
||||||
|
});
|
||||||
|
""",
|
||||||
|
{"id": i},
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
return queries
|
||||||
|
|
||||||
|
def benchmark__test__order_by(self):
|
||||||
|
return (
|
||||||
|
"MATCH (n:Node) RETURN n ORDER BY n.prop1",
|
||||||
|
{},
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user