redis-benchmarks-specification 0.1.307__py3-none-any.whl → 0.1.308__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of redis-benchmarks-specification might be problematic. Click here for more details.

@@ -0,0 +1,107 @@
1
+ version: 0.4
2
+ name: memtier_benchmark-session-caching-hash-100k-sessions
3
+ description: |
4
+ Runs memtier_benchmark to simulate a session caching workload for a SaaS application.
5
+ This benchmark focuses exclusively on hash-based session storage, where each session
6
+ is stored in a Redis hash (`session:<id>`) with fields like user ID, timestamps, device info,
7
+ and metadata (total ~400–600B).
8
+
9
+ The benchmark models a typical read-heavy cache usage pattern, with an approximate
10
+ **read:write ratio of 90:10**, reflecting session retrievals and infrequent updates.
11
+
12
+ Command groups:
13
+ - Session cache reads (`HGETALL`): ~90%
14
+ - Session cache writes (`HSET`): ~10%
15
+
16
+ To better approximate real-world access patterns, the benchmark uses a **Zipfian key distribution**
17
+ (`--command-key-pattern=Z`). This simulates **skewed access** where a small subset of sessions (hot keys)
18
+ receives a majority of reads — a common pattern in production workloads.
19
+
20
+ While Zipfian is technically a power-law distribution, it effectively mimics **Poisson-like behavior**
21
+ in large-scale systems, where access frequency is uneven but statistically predictable.
22
+ This access skew mirrors real-life scenarios such as:
23
+ - Frequently accessed or "sticky" user sessions
24
+ - Popular user accounts or active devices
25
+ - Hot caches for trending or recently used resources
26
+
27
+ Using Zipfian distribution allows this benchmark to capture **contention**, **cache pressure**, and
28
+ **read amplification** effects that occur in real SaaS applications under load.
29
+
30
+
31
+ dbconfig:
32
+ configuration-parameters:
33
+ save: '""'
34
+ resources:
35
+ requests:
36
+ memory: 1g
37
+ init_lua: |
38
+ local seed = 12345
39
+ math.randomseed(seed)
40
+ local now = tonumber(redis.call('TIME')[1])
41
+ local function rand_str(len)
42
+ local chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
43
+ local res = ''
44
+ for i = 1, len do
45
+ local idx = math.random(#chars)
46
+ res = res .. chars:sub(idx, idx)
47
+ end
48
+ return res
49
+ end
50
+ for i = 1, 100000 do
51
+ local session_id = 'session:' .. i
52
+ local user_id = 'user-' .. i
53
+ local org_id = 'org-' .. i
54
+ redis.call('HSET', session_id,
55
+ 'userId', user_id,
56
+ 'organizationId', org_id,
57
+ 'role', 'member',
58
+ 'createdAt', tostring(now - math.random(3600)),
59
+ 'lastAccessed', tostring(now),
60
+ 'ipAddress', '192.168.1.' .. (i % 255),
61
+ 'device', 'device-' .. rand_str(8),
62
+ 'authMethod', 'password',
63
+ 'status', 'active',
64
+ 'metadata', rand_str(200 + (i % 100))
65
+ )
66
+ end
67
+ return 'OK'
68
+
69
+ tested-groups:
70
+ - hash
71
+
72
+ tested-commands:
73
+ - hgetall
74
+ - hset
75
+
76
+ redis-topologies:
77
+ - oss-standalone
78
+
79
+ build-variants:
80
+ - gcc:8.5.0-amd64-debian-buster-default
81
+ - dockerhub
82
+
83
+ clientconfig:
84
+ run_image: redislabs/memtier_benchmark:edge
85
+ tool: memtier_benchmark
86
+ arguments: >
87
+ --key-prefix ""
88
+ --key-minimum 1
89
+ --key-maximum 100000
90
+ --data-size-range=400-600
91
+ --pipeline=1
92
+ --print-percentiles=50,90,95,99
93
+ --run-count=1
94
+ --test-time=120
95
+ --command="HGETALL session:__key__"
96
+ --command-key-pattern=Z
97
+ --command-ratio=90
98
+ --command="HSET session:__key__ userId user-__key__ organizationId org-__key__ role admin email user__key__@example.com name \"User __key__\" permissions \"[\\\"read\\\",\\\"write\\\"]\" lastActivity __key__ ipAddress 192.168.1.__key__ userAgent \"Mozilla/5.0\" createdAt __key__"
99
+ --command-key-pattern=Z
100
+ --command-ratio=10
101
+ --hide-histogram
102
+ resources:
103
+ requests:
104
+ cpus: '4'
105
+ memory: 2g
106
+
107
+ priority: 150
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.307
3
+ Version: 0.1.308
4
4
  Summary: The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute.
5
5
  Author: filipecosta90
6
6
  Author-email: filipecosta.90@gmail.com
@@ -271,12 +271,13 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-mixed
271
271
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-mixed-100-channels-128B-100-publishers-50K-subscribers-5k-conns.yml,sha256=mh_cAomSjsU4WL2l9gt0dhyWdSwfXTrEZgnRz6gzSQE,1144
272
272
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publish-1K-channels-10B-no-subscribers.yml,sha256=zwb27Jmg0mwcthbmdUe0KuzqRzAPs7OHcK2gc9-5VBE,779
273
273
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=7G_J8kUFay7jXhZvsZK5jvVHSLZvhMV0uuDMkZBbeSQ,675
274
+ redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-caching-hash-100k-sessions.yml,sha256=ASQVpVvqwIRFmQYVI8xRf-mvg9nZYYc7ps6259Jb7gk,3600
274
275
  redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-storage-100k-sessions.yml,sha256=FNy157KK1Vmru9xervxuu_A9qOqzwrq9iRLUVJRWiRs,6950
275
276
  redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-storage-1k-sessions.yml,sha256=W6HnNaVhm6qcoEuwkT1Bv_o9hV0r55W58NLKwtlsjhM,6944
276
277
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
277
278
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
278
- redis_benchmarks_specification-0.1.307.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
279
- redis_benchmarks_specification-0.1.307.dist-info/METADATA,sha256=KN91I2NWKvrfOaIv9uclbBlLUGxktFOKZEWSqLCsDBw,22726
280
- redis_benchmarks_specification-0.1.307.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
281
- redis_benchmarks_specification-0.1.307.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
282
- redis_benchmarks_specification-0.1.307.dist-info/RECORD,,
279
+ redis_benchmarks_specification-0.1.308.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
280
+ redis_benchmarks_specification-0.1.308.dist-info/METADATA,sha256=5Kl4V4DJX8m_yvx_v0LUoXIoDmmE1odbua5XNcgjMEk,22726
281
+ redis_benchmarks_specification-0.1.308.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
282
+ redis_benchmarks_specification-0.1.308.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
283
+ redis_benchmarks_specification-0.1.308.dist-info/RECORD,,