Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f273591

Browse files
ryanfoxtylerharshil-goel
authored andcommittedMar 4, 2025·
chore: update benchmark paths (#9305)
**Description** Update benchmarks paths with recent repo move. **Checklist** - [X] Code compiles correctly and linting passes locally
1 parent f84c9ab commit f273591

File tree

11 files changed

+43
-43
lines changed

11 files changed

+43
-43
lines changed
 

‎CHANGELOG.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ adhere to [Semantic Versioning](https://semver.org) starting `v22.0.0`.
911911
https://github.com/hypermodeinc/dgraph/pull/8479
912912
https://github.com/hypermodeinc/dgraph/pull/8488
913913
https://github.com/hypermodeinc/dgraph/pull/8433)
914-
- [Coveralls](https://coveralls.io/github/dgraph-io/dgraph?branch=main) on CI is enhanced to
914+
- [Coveralls](https://coveralls.io/github/hypermodeinc/dggraph?branch=main) on CI is enhanced to
915915
measure code coverage for integration tests (https://github.com/hypermodeinc/dgraph/pull/8494)
916916
- [**LDBC Benchmarking**](https://ldbcouncil.org) in enabled on
917917
[CI](https://github.com/hypermodeinc/dgraph/actions/workflows/ci-dgraph-ldbc-tests.yml)
@@ -1415,7 +1415,7 @@ https://discuss.dgraph.io/t/dgraph-v22-0-0-rc1-20221003-release-candidate/17839
14151415
- Enabled
14161416
[Load Tests](https://github.com/hypermodeinc/dgraph/actions/workflows/ci-dgraph-load-tests.yml)
14171417
- Enabled [Linters](https://github.com/hypermodeinc/dgraph/actions/workflows/ci-golang-lint.yml)
1418-
- Enabled [Code Coverage](https://coveralls.io/github/dgraph-io/dgraph?branch=main)
1418+
- Enabled [Code Coverage](https://coveralls.io/github/hypermodeinc/dggraph?branch=main)
14191419
- **CI Security**
14201420
- Configured to run with
14211421
[Github Actions](https://github.com/hypermodeinc/dgraph/blob/main/.github/workflows/ci-aqua-security-trivy-tests.yml)
@@ -4813,8 +4813,8 @@ Users can set `port_offset` flag, to modify these fixed ports.
48134813

48144814
- Facets response structure has been modified and is a lot flatter. Facet key is now
48154815
`predicate|facet_name`. Examples for
4816-
[Go client](https://godoc.org/github.com/dgraph-io/dgraph/client#example-Txn-Mutate-Facets) and
4817-
[HTTP](https://dgraph.io/docs/query-language/#facets-edge-attributes).
4816+
[Go client](https://godoc.org/github.com/hypermodeinc/dggraph/client#example-Txn-Mutate-Facets)
4817+
and [HTTP](https://dgraph.io/docs/query-language/#facets-edge-attributes).
48184818
- Query latency is now returned as numeric (ns) instead of string.
48194819
- [`Recurse`](https://dgraph.io/docs/query-language/#recurse-query) is now a directive. So queries
48204820
with `recurse` keyword at root won't work anymore.
@@ -4855,10 +4855,10 @@ Users can set `port_offset` flag, to modify these fixed ports.
48554855
`client.Unmarshal` method also goes away from the Go client. Users can use `json.Unmarshal` for
48564856
unmarshalling the response.
48574857
- Response for predicate of type `geo` can be unmarshalled into a struct. Example
4858-
[here](https://godoc.org/github.com/dgraph-io/dgraph/client#example-package--SetObject).
4858+
[here](https://godoc.org/github.com/hypermodeinc/dggraph/client#example-package--SetObject).
48594859
- `Node` and `Edge` structs go away along with the `SetValue...` methods. We recommend using
4860-
[`SetJson`](https://godoc.org/github.com/dgraph-io/dgraph/client#example-package--SetObject) and
4861-
`DeleteJson` fields to do mutations.
4860+
[`SetJson`](https://godoc.org/github.com/hypermodeinc/dggraph/client#example-package--SetObject)
4861+
and `DeleteJson` fields to do mutations.
48624862
- Examples of how to use transactions using the client can be found at
48634863
https://dgraph.io/docs/clients/#go.
48644864

‎algo/benchmarks

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ BenchmarkListIntersectRatio/compressed:IntersectWithLin:ratio=1:size=1000000:ove
167167
BenchmarkListIntersectRatio/compressed:IntersectWithBin:ratio=1:size=1000000:overlap=0.01:-4 30 38617011 ns/op
168168

169169
PASS
170-
ok github.com/dgraph-io/dgraph/algo 206.835s
170+
ok github.com/hypermodeinc/dgraph/algo 206.835s

‎chunker/README.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ go tool pprof --alloc_objects uidassigner heap.prof
55
Dropped 41 nodes (cum <= 1039438)
66
Showing top 10 nodes out of 31 (cum >= 8566234)
77
flat flat% sum% cum cum%
8-
55529704 26.71% 26.71% 55529704 26.71% github.com/dgraph-io/dgraph/rdf.Parse
9-
28255068 13.59% 40.30% 30647245 14.74% github.com/dgraph-io/dgraph/posting.(*List).getPostingList
8+
55529704 26.71% 26.71% 55529704 26.71% github.com/hypermodeinc/dggraph/rdf.Parse
9+
28255068 13.59% 40.30% 30647245 14.74% github.com/hypermodeinc/dggraph/posting.(*List).getPostingList
1010
20406729 9.82% 50.12% 20406729 9.82% github.com/zond/gotomic.newRealEntryWithHashCode
1111
17777182 8.55% 58.67% 17777182 8.55% strings.makeCutsetFunc
12-
17582839 8.46% 67.13% 17706815 8.52% github.com/dgraph-io/dgraph/loader.(*state).readLines
13-
15139047 7.28% 74.41% 88445933 42.55% github.com/dgraph-io/dgraph/loader.(*state).parseStream
12+
17582839 8.46% 67.13% 17706815 8.52% github.com/hypermodeinc/dggraph/loader.(*state).readLines
13+
15139047 7.28% 74.41% 88445933 42.55% github.com/hypermodeinc/dggraph/loader.(*state).parseStream
1414
12927366 6.22% 80.63% 12927366 6.22% github.com/zond/gotomic.(*element).search
15-
10789028 5.19% 85.82% 66411362 31.95% github.com/dgraph-io/dgraph/posting.GetOrCreate
15+
10789028 5.19% 85.82% 66411362 31.95% github.com/hypermodeinc/dggraph/posting.GetOrCreate
1616
9453856 4.55% 90.37% 9453856 4.55% github.com/zond/gotomic.(*hashHit).search
17-
8566234 4.12% 94.49% 8566234 4.12% github.com/dgraph-io/dgraph/uid.stringKey
17+
8566234 4.12% 94.49% 8566234 4.12% github.com/hypermodeinc/dggraph/uid.stringKey
1818

1919

2020
(pprof) list rdf.Parse
2121
Total: 207887723
22-
ROUTINE ======================== github.com/dgraph-io/dgraph/rdf.Parse in /home/mrjn/go/src/github.com/dgraph-io/dgraph/rdf/parse.go
22+
ROUTINE ======================== github.com/hypermodeinc/dggraph/rdf.Parse in /home/mrjn/go/src/github.com/hypermodeinc/dggraph/rdf/parse.go
2323
55529704 55529704 (flat, cum) 26.71% of Total
2424
. . 118: }
2525
. . 119: return val[1 : len(val)-1]
@@ -43,14 +43,14 @@ Showing top 10 nodes out of 62 (cum >= 18180150)
4343
flat flat% sum% cum cum%
4444
103445194 18.46% 18.46% 103445194 18.46% github.com/Sirupsen/logrus.(*Entry).WithFields
4545
65448918 11.68% 30.14% 163184489 29.12% github.com/Sirupsen/logrus.(*Entry).WithField
46-
48366300 8.63% 38.77% 203838187 36.37% github.com/dgraph-io/dgraph/posting.(*List).get
47-
39789719 7.10% 45.87% 49276181 8.79% github.com/dgraph-io/dgraph/posting.(*List).getPostingList
48-
36642638 6.54% 52.41% 36642638 6.54% github.com/dgraph-io/dgraph/lex.NewLexer
46+
48366300 8.63% 38.77% 203838187 36.37% github.com/hypermodeinc/dggraph/posting.(*List).get
47+
39789719 7.10% 45.87% 49276181 8.79% github.com/hypermodeinc/dggraph/posting.(*List).getPostingList
48+
36642638 6.54% 52.41% 36642638 6.54% github.com/hypermodeinc/dggraph/lex.NewLexer
4949
35190301 6.28% 58.69% 35190301 6.28% github.com/google/flatbuffers/go.(*Builder).growByteBuffer
5050
31392455 5.60% 64.29% 31392455 5.60% github.com/zond/gotomic.newRealEntryWithHashCode
5151
25895676 4.62% 68.91% 25895676 4.62% github.com/zond/gotomic.(*element).search
52-
18546971 3.31% 72.22% 72863016 13.00% github.com/dgraph-io/dgraph/loader.(*state).parseStream
53-
18090764 3.23% 75.45% 18180150 3.24% github.com/dgraph-io/dgraph/loader.(*state).readLines
52+
18546971 3.31% 72.22% 72863016 13.00% github.com/hypermodeinc/dggraph/loader.(*state).parseStream
53+
18090764 3.23% 75.45% 18180150 3.24% github.com/hypermodeinc/dggraph/loader.(*state).readLines
5454

5555
After a few more discussions, I realized that lexer didn't need to be allocated on the heap.
5656
So, I switched it to be allocated on stack. These are the results.
@@ -62,14 +62,14 @@ Entering interactive mode (type "help" for commands)
6262
Dropped 73 nodes (cum <= 8.48MB)
6363
Showing top 10 nodes out of 52 (cum >= 161.50MB)
6464
flat flat% sum% cum cum%
65-
304.56MB 17.95% 17.95% 304.56MB 17.95% github.com/dgraph-io/dgraph/posting.NewList
65+
304.56MB 17.95% 17.95% 304.56MB 17.95% github.com/hypermodeinc/dggraph/posting.NewList
6666
209.55MB 12.35% 30.30% 209.55MB 12.35% github.com/Sirupsen/logrus.(*Entry).WithFields
6767
207.55MB 12.23% 42.54% 417.10MB 24.58% github.com/Sirupsen/logrus.(*Entry).WithField
68-
108MB 6.37% 48.90% 108MB 6.37% github.com/dgraph-io/dgraph/uid.(*lockManager).newOrExisting
68+
108MB 6.37% 48.90% 108MB 6.37% github.com/hypermodeinc/dggraph/uid.(*lockManager).newOrExisting
6969
88MB 5.19% 54.09% 88MB 5.19% github.com/zond/gotomic.newMockEntry
7070
85.51MB 5.04% 59.13% 85.51MB 5.04% github.com/google/flatbuffers/go.(*Builder).growByteBuffer
71-
78.01MB 4.60% 63.73% 78.01MB 4.60% github.com/dgraph-io/dgraph/posting.Key
72-
78.01MB 4.60% 68.32% 78.51MB 4.63% github.com/dgraph-io/dgraph/uid.stringKey
71+
78.01MB 4.60% 63.73% 78.01MB 4.60% github.com/hypermodeinc/dggraph/posting.Key
72+
78.01MB 4.60% 68.32% 78.51MB 4.63% github.com/hypermodeinc/dggraph/uid.stringKey
7373
76MB 4.48% 72.80% 76MB 4.48% github.com/zond/gotomic.newRealEntryWithHashCode
7474
73.50MB 4.33% 77.14% 161.50MB 9.52% github.com/zond/gotomic.(*Hash).getBucketByIndex
7575

‎contrib/manual_tests/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ readonly ENCRYPTION_KEY_PATH="${DGRAPH_PATH}/encryption_key_file"
1414
readonly ACL_SECRET_PATH="${DGRAPH_PATH}/acl_secret_file"
1515
readonly TLS_PATH="${DGRAPH_PATH}/tls"
1616

17-
readonly DATASET_1MILLION_FILE_URL='https://github.com/dgraph-io/benchmarks/blob/master/data/1million.rdf.gz?raw=true'
17+
readonly DATASET_1MILLION_FILE_URL='https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.rdf.gz?raw=true'
1818
readonly DATASET_1MILLION_FILE_PATH="${DATA_PATH}/1million.rdf.gz"
1919

20-
readonly DATASET_1MILLION_SCHEMA_URL='https://github.com/dgraph-io/benchmarks/blob/master/data/1million.schema?raw=true'
20+
readonly DATASET_1MILLION_SCHEMA_URL='https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.schema?raw=true'
2121
readonly DATASET_1MILLION_SCHEMA_PATH="${DATA_PATH}/1million.schema"
2222

2323
source "log.sh"

‎graphql/bench/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Command: go test -bench=. -benchtime=60s
3232
go test -bench=. -benchtime=60s
3333
goos: linux
3434
goarch: amd64
35-
pkg: github.com/dgraph-io/dgraph/graphql/e2e/auth/bench
35+
pkg: github.com/hypermodeinc/dgraph/graphql/e2e/auth/bench
3636
Auth
3737
BenchmarkNestedQuery-8 88 815315761 ns/op
3838
BenchmarkOneLevelQuery-8 4357 15626384 ns/op

‎graphql/testdata/custom_bench/profiling/graphql_profiler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const (
6161
baseDir = "."
6262
dataDir = baseDir + "/__data"
6363
resultsDir = baseDir + "/results"
64-
benchmarksDir = baseDir + "/benchmarks"
64+
benchmarksDir = baseDir + "/dgraph-benchmarks"
6565
benchQueriesDirName = "queries"
6666
benchSchemaFileName = "schema.graphql"
6767
tempDir = baseDir + "/temp"

‎paper/dgraph.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ \section{Acknowledgments}
990990
core dev team and extended community. This work also wouldn't have been possible
991991
without funding from our investors. A full list of contributors is present here:
992992
\begin{center}
993-
{\tt github.com/dgraph-io/dgraph/graphs/contributors}
993+
{\tt github.com/hypermodeinc/dgraph/graphs/contributors}
994994
\end{center}
995995

996996
Dgraph is an open source software, available on

‎systest/1million/test-reindex.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44
readonly SRCDIR=$(dirname "$0")
55

6-
BENCHMARKS_REPO="$(pwd)/benchmarks"
6+
BENCHMARKS_REPO="$(pwd)/dgraph-benchmarks"
77
NO_INDEX_SCHEMA_FILE="${BENCHMARKS_REPO}/data/1million-noindex.schema"
88
SCHEMA_FILE="${BENCHMARKS_REPO}/data/1million.schema"
99
DATA_FILE="${BENCHMARKS_REPO}/data/1million.rdf.gz"
@@ -17,7 +17,7 @@ function DockerCompose {
1717
}
1818

1919
Info "cloning benchmarks repo"
20-
BENCHMARKS_URL=https://github.com/dgraph-io/benchmarks/blob/master/data
20+
BENCHMARKS_URL=https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data
2121
rm -rf "${BENCHMARKS_REPO}"
2222
mkdir -p "${BENCHMARKS_REPO}"/data
2323
wget -O "${NO_INDEX_SCHEMA_FILE}" "${BENCHMARKS_URL}"/1million-noindex.schema?raw=true

‎systest/21million/test-21million.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
readonly ME=${0##*/}
55
readonly SRCDIR=$(dirname "$0")
66

7-
BENCHMARKS_REPO="${BENCHMARKS_REPO:-$(go env GOPATH)/src/github.com/dgraph-io/benchmarks}"
7+
BENCHMARKS_REPO="${BENCHMARKS_REPO:-$(go env GOPATH)/src/github.com/hypermodeinc/dgraph-benchmarks}"
88
SCHEMA_FILE="${BENCHMARKS_REPO}/data/21million.schema"
99
DATA_FILE="${BENCHMARKS_REPO}/data/21million.rdf.gz"
1010

‎systest/loader-benchmark/loader-benchmark.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -e
44
readonly ME=${0##*/}
55
readonly SRCDIR=$(dirname "$0")
66

7-
BENCHMARKS_REPO="https://github.com/dgraph-io/benchmarks"
7+
BENCHMARKS_REPO="https://github.com/hypermodeinc/dgraph-benchmarks"
88
BENCHMARK_SIZE=${BENCHMARK_SIZE:=big}
9-
SCHEMA_URL="${BENCHMARKS_REPO}/blob/master/data/21million.schema?raw=true"
9+
SCHEMA_URL="${BENCHMARKS_REPO}/blob/main/data/21million.schema?raw=true"
1010
DGRAPH_LOADER=${DGRAPH_LOADER:=bulk}
1111

1212
function Info {
@@ -23,9 +23,9 @@ if [[ ${BENCHMARK_SIZE} != small && ${BENCHMARK_SIZE} != big ]]; then
2323
fi
2424

2525
if [[ ${BENCHMARK_SIZE} == small ]]; then
26-
DATA_URL="${BENCHMARKS_REPO}/blob/master/data/1million.rdf.gz?raw=true"
26+
DATA_URL="${BENCHMARKS_REPO}/blob/main/data/1million.rdf.gz?raw=true"
2727
else
28-
DATA_URL="${BENCHMARKS_REPO}/blob/master/data/21million.rdf.gz?raw=true"
28+
DATA_URL="${BENCHMARKS_REPO}/blob/main/data/21million.rdf.gz?raw=true"
2929
fi
3030

3131
if [[ ${DGRAPH_LOADER} != bulk && ${DGRAPH_LOADER} != live ]]; then

‎t/t.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -884,14 +884,14 @@ func isVectorPackage(pkg string) bool {
884884
}
885885

886886
var datafiles = map[string]string{
887-
"1million-noindex.schema": "https://github.com/dgraph-io/benchmarks/blob/master/data/1million-noindex.schema?raw=true",
888-
"1million.schema": "https://github.com/dgraph-io/benchmarks/blob/master/data/1million.schema?raw=true",
889-
"1million.rdf.gz": "https://github.com/dgraph-io/benchmarks/blob/master/data/1million.rdf.gz?raw=true",
890-
"21million.schema": "https://github.com/dgraph-io/benchmarks/blob/master/data/21million.schema?raw=true",
891-
"21million.rdf.gz": "https://github.com/dgraph-io/benchmarks/blob/master/data/21million.rdf.gz?raw=true",
887+
"1million-noindex.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million-noindex.schema?raw=true",
888+
"1million.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.schema?raw=true",
889+
"1million.rdf.gz": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/1million.rdf.gz?raw=true",
890+
"21million.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/21million.schema?raw=true",
891+
"21million.rdf.gz": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/data/21million.rdf.gz?raw=true",
892892
}
893893

894-
var baseUrl = "https://github.com/dgraph-io/benchmarks/blob/master/ldbc/sf0.3/ldbc_rdf_0.3/"
894+
var baseUrl = "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/ldbc/sf0.3/ldbc_rdf_0.3/"
895895
var suffix = "?raw=true"
896896

897897
var rdfFileNames = [...]string{
@@ -921,7 +921,7 @@ var rdfFileNames = [...]string{
921921
"workAt_0.rdf"}
922922

923923
var ldbcDataFiles = map[string]string{
924-
"ldbcTypes.schema": "https://github.com/dgraph-io/benchmarks/blob/master/ldbc/sf0.3/ldbcTypes.schema?raw=true",
924+
"ldbcTypes.schema": "https://github.com/hypermodeinc/dgraph-benchmarks/blob/main/ldbc/sf0.3/ldbcTypes.schema?raw=true",
925925
}
926926

927927
func downloadDataFiles() {

0 commit comments

Comments
 (0)
Please sign in to comment.