Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgraph-io/dgraph-benchmarks
/ functions
Functions
1,693 in github.com/dgraph-io/dgraph-benchmarks
⨍
Functions
1,693
◇
Types & classes
167
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:21952
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22038
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22166
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22273
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22361
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22462
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22781
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22865
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:22966
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:23253
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:23386
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:23576
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:23865
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:24034
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
bitmap/pb.pb.go:24103
↓ 1 callers
Method
batch_vector_search
Perform batch vector search. Args: query_embeddings: Dictionary mapping query_id to embedding top_k:
vector/beir/dgraph_client.py:236
↓ 1 callers
Function
body
(rdf string)
scripts/mutations/mutation.go:35
↓ 1 callers
Method
close
Close the Dgraph client connection.
vector/beir/dgraph_client.py:274
↓ 1 callers
Function
compare
(srcl, dstl []R)
scripts/verify/main.go:113
↓ 1 callers
Function
convertTypes
(path, outputPath string)
scripts/add-types/convertTypes.go:93
↓ 1 callers
Function
dataframe_to_rdf
(data, filehandle = sys.stdout)
data/social/generate.py:19
↓ 1 callers
Function
doGen
()
indextest/forward/forward.go:218
↓ 1 callers
Function
doGood
()
indextest/backward/backward.go:151
↓ 1 callers
Function
doWork
(id int, c *y.Closer, work <-chan string, outDir string)
twitterdata/postprocess/postprocess.go:154
↓ 1 callers
Function
doWork
(id int, c *y.Closer, work <-chan interface{}, outDir string)
twitterdata/stream/stream.go:73
↓ 1 callers
Method
embed_corpus
Generate embeddings for BEIR corpus. Args: corpus: BEIR corpus dictionary {doc_id: {"title": ..., "text": ...}}
vector/beir/embeddings.py:93
↓ 1 callers
Method
embed_queries
Generate embeddings for BEIR queries. Args: queries: BEIR queries dictionary {query_id: query_text}
vector/beir/embeddings.py:139
↓ 1 callers
Function
equal
(a, b R)
scripts/verify/main.go:49
↓ 1 callers
Function
fetch_cache_metrics
Fetch posting list cache metrics from Dgraph Prometheus endpoint.
vector/beir/evaluate.py:113
↓ 1 callers
Function
findAndWrite
(idx int, tr trie.Trie, ch chan string, sw *SyncWriter, wg *sync.WaitGroup)
finder/entity.go:71
↓ 1 callers
Function
findFeatureArray
(dec *json.Decoder)
geofreebase/main.go:38
↓ 1 callers
Function
findFeatureArray
(dec *json.Decoder)
geotordf/main.go:25
↓ 1 callers
Function
generate_data
(size=500)
data/social/generate.py:11
↓ 1 callers
Function
getBenchCaches
getBenchCaches() returns a slice of benchCache's depending on the value of the include params (which is the cache/suite flags passed from main).
cachebench/ristretto/bench.go:139
↓ 1 callers
Function
getRatio
(q string, hc *http.Client, c graph.DGraphClient)
pbbenchmark/main.go:49
↓ 1 callers
Function
getReader
(fname string)
data/neo4j/main.go:46
↓ 1 callers
Function
getResponse
(q string)
regression/replay/main.go:46
↓ 1 callers
Function
getStrVal
(rnq graph.NQuad)
data/neo4j/main.go:60
↓ 1 callers
Function
get_config
Get the default configuration.
vector/beir/config.py:122
↓ 1 callers
Function
get_dgraph_version
Get Dgraph version from health endpoint. Args: host: Dgraph alpha host port: Dgraph alpha HTTP port Returns
vector/beir/evaluate.py:53
↓ 1 callers
Function
grep
(tr *trie.Trie)
finder/entity.go:111
↓ 1 callers
Method
handleNQuads
(db *neoism.Database, wg *sync.WaitGroup)
neo/loader.go:135
↓ 1 callers
Function
insert_benchmark
Insert a benchmark JSON file as the first data row in the CSV.
vector/beir/insert_benchmark.py:11
↓ 1 callers
Method
insert_documents
Insert documents with embeddings into Dgraph. Args: corpus: BEIR corpus dictionary embeddings: Dicti
vector/beir/dgraph_client.py:71
↓ 1 callers
Function
isRequired
(nq protos.NQuad)
convert/main.go:23
↓ 1 callers
Function
load_beir_dataset
Load BEIR dataset, downloading if necessary. Args: dataset_name: Name of the BEIR dataset (e.g., 'scifact') data_dir: Di
vector/beir/evaluate.py:18
↓ 1 callers
Function
load_csv_results
Load results from CSV file.
vector/beir/view_results.py:43
↓ 1 callers
Function
main
()
vector/beir/view_results.py:247
↓ 1 callers
Function
main
()
vector/beir/generate_test_query.py:13
↓ 1 callers
Function
main
()
vector/beir/insert_benchmark.py:84
↓ 1 callers
Function
main
Main evaluation pipeline.
vector/beir/evaluate.py:197
↓ 1 callers
Function
makeRequest
(mutation chan string, c *uint64, wg *sync.WaitGroup)
scripts/mutations/mutation.go:47
↓ 1 callers
Function
makeRequests
(d bolt.DriverPool, wg *sync.WaitGroup, rc chan request)
data/neo4j/main.go:83
↓ 1 callers
Function
match32MSB
(num1, num2 uint64)
bitmap/codec.go:439
↓ 1 callers
Function
newList
()
bitmap/main_test.go:320
↓ 1 callers
Function
newTwitterClient
(creds *twitterCreds)
twitterdata/stream/stream.go:125
↓ 1 callers
Function
numChildren
(node *graph.Node)
pbbenchmark/main.go:41
↓ 1 callers
Function
oneKeyList
()
cachebench/cache_bench_test.go:84
↓ 1 callers
Function
parseMessage
(message string)
twitterdata/postprocess/postprocess.go:219
↓ 1 callers
Method
parseStream
(done chan error)
neo/loader.go:98
↓ 1 callers
Function
printCounters
(ticker *time.Ticker)
data/neo4j/main.go:127
↓ 1 callers
Method
printCounters
(ticker *time.Ticker)
neo/loader.go:49
↓ 1 callers
Function
printTypePreds
typeName should include the escaped quotes, e.g "\"Person\""
scripts/add-types/lists_preds.go:14
↓ 1 callers
Function
printTypes
(path string)
scripts/add-types/types.go:13
↓ 1 callers
Function
print_summary_table
Print a compact summary table.
vector/beir/view_results.py:205
↓ 1 callers
Function
print_table
Print results as a formatted table.
vector/beir/view_results.py:83
↓ 1 callers
Function
processFile
(path string, work chan<- string)
twitterdata/postprocess/postprocess.go:131
↓ 1 callers
Function
processMessage
(writer io.Writer, message string)
twitterdata/postprocess/postprocess.go:205
↓ 1 callers
Function
readCredentials
(path string)
twitterdata/stream/stream.go:108
↓ 1 callers
Function
readLine
Reads a single line from a buffered reader. The line is read into the passed in buffer to minimize allocations. This is the preferred method for loadi
scripts/mutations/mutation.go:78
↓ 1 callers
Method
readLines
(r io.Reader)
neo/loader.go:71
↓ 1 callers
Method
reset_database
Drop all data and schema.
vector/beir/dgraph_client.py:64
↓ 1 callers
Function
runCacheBenchmark
======================================================================== Benchmark Code ==============================================================
cachebench/cache_bench_test.go:329
↓ 1 callers
Function
runQuery
(qch chan Query, wg *sync.WaitGroup)
regression/replay/main.go:71
↓ 1 callers
Function
runUser
(wg *sync.WaitGroup)
loadtest/throughPut.go:35
↓ 1 callers
Function
runUser
(wg *sync.WaitGroup)
loadtest/pinger.go:35
↓ 1 callers
Function
save
save writes all logs to the PATH file in CSV format.
cachebench/ristretto/bench.go:205
↓ 1 callers
Function
save_results_to_csv
Append evaluation results to CSV file.
vector/beir/evaluate.py:145
↓ 1 callers
Method
setup_schema
Set up the Dgraph schema for BEIR documents. Args: hnsw_config: HNSW index configuration
vector/beir/dgraph_client.py:37
↓ 1 callers
Function
tweetToJSON
(writer io.Writer, tweet *anaconda.Tweet)
twitterdata/postprocess/postprocess.go:232
↓ 1 callers
Function
typeValFrom
(val *api.Value)
orientdb/transform/main.go:30
↓ 1 callers
Method
vector_search
Perform vector similarity search with computed similarity scores. Args: query_embedding: Query embedding vector
vector/beir/dgraph_client.py:118
↓ 1 callers
Function
zipfKeyList
======================================================================== Possible workloads ==========================================================
cachebench/cache_bench_test.go:67
Method
ApproxLen
ApproxLen returns the approximate number of UIDs in the UidPack object.
bitmap/codec.go:226
Method
AssignIds
(ctx context.Context, in *Num, opts ...grpc.CallOption)
bitmap/pb.pb.go:5819
Method
AssignIds
(context.Context, *Num)
bitmap/pb.pb.go:5863
Method
AssignIds
(ctx context.Context, req *Num)
bitmap/pb.pb.go:5888
Method
Backup
(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption)
bitmap/pb.pb.go:6215
Method
Backup
(context.Context, *BackupRequest)
bitmap/pb.pb.go:6334
Method
Backup
(ctx context.Context, req *BackupRequest)
bitmap/pb.pb.go:6362
Function
BenchmarkAnd
This is taking 16ms. Clone itself takes ~4ms. So, ~12ms for AND.
bitmap/main_test.go:342
Function
BenchmarkCaches
(b *testing.B)
cachebench/cache_bench_test.go:360
Function
BenchmarkCardinality
This is taking 60 microseconds over 1M entries.
bitmap/main_test.go:39
Function
BenchmarkClone
Clone is taking ~5ms.
bitmap/main_test.go:178
Function
BenchmarkContains
Bitmap runs in 177 ns/op. List search in 252 ns/op. UidPack search is 3024 ns/op.
bitmap/main_test.go:269
Function
BenchmarkCopyOnWrite
(b *testing.B)
bitmap/main_test.go:240
Function
BenchmarkDgraph
(b *testing.B)
data/neo4j/query_test.go:42
Function
BenchmarkFromArray
This is taking 22ms for 1M entries.
bitmap/main_test.go:59
Function
BenchmarkList
Each add is 24ns.
bitmap/main_test.go:16
Function
BenchmarkMarshal
Marshal bitmap is taking 3.2ms. pack is taking <1ms.
bitmap/main_test.go:72
← previous
next →
301–400 of 1,693, ranked by callers