Large values
Transferring a 500MB file
Transferring a 500MB file with kotlin-valkey
(LargeValueStreamingTest)
and with Jedis 8.0.1
(JedisLargeValueTest).
Median of 3 runs on an Apple M5 Pro, Valkey valkey/valkey:9.2.0-rc1-alpine3.24 in a local container. The times include
reading the value from a file on disk (upload) and writing it to a file (download).
| Approach | Library | Upload | Download | Note |
|---|---|---|---|---|
SET / GET of the whole value |
kotlin-valkey | 2224 ms | 199 ms | |
| Jedis | 2364 ms | 294 ms | Requires 1GB heap | |
SETRANGE / GETRANGE in 16KB chunks |
kotlin-valkey | 6828 ms | 4161 ms | |
| Jedis | 7007 ms | 4238 ms |
- Whole file: kotlin-valkey is slightly faster for upload and about 30% faster for download.
- 16KB chunks: both libraries perform about the same.