HGET
Syntax
HGET key field
Time complexity: O(1)
ACL categories: @read, @hash, @fast
Returns the value associated with field in the hash stored at key.
Return
Bulk string reply: the value associated with field, or nil when field is not
present in the hash or key does not exist.
Examples
dragonfly> HSET myhash field1 "foo"
(integer) 1
dragonfly> HGET myhash field1
"foo"
dragonfly> HGET myhash field2
(nil)
Benchmark
Sustained throughput for HGET on a single instance, measured against Redis and Valkey on identical hardware. Higher is better.
Dragonfly9,310,000OPS
Valkey791,80011.8× OPS
Redis744,40012.5× OPS
02.38M4.75M7.13M9.5M
operations / second
| Engine | Throughput | p50 | p99 | p99.9 | Avg Latency |
|---|---|---|---|---|---|
| Dragonfly | 9.31M ops/s | 0.468 ms | 0.875 ms | 1.163 ms | 0.489 ms |
| Valkey | 791.8K ops/s | 6.483 ms | 6.990 ms | 6.999 ms | 6.044 ms |
| Redis | 744.4K ops/s | 6.522 ms | 9.979 ms | 13.329 ms | 6.429 ms |
Methodology
| Hardware | Server: m7g.8xlarge (arm64) · Client: c6gn.8xlarge (arm64) |
| Client | 32 threads, 5 connections, pipeline 30 |
| Dataset | 100M keys, 128B values, uniform key distribution |
| Duration | 60s (10s warmup), 1 trial |
| Measured | 2026-07-29 |
Ran through dfly_bench until throughput stabilized; the reported figure is the median throughput sampled during the run. Harness and raw output: dragonflydb/benchmarking.