Software / code / prosody-modules
Annotate
mod_benchmark_storage/mod_benchmark_storage.lua @ 6301:fa45ae704b79
mod_cloud_notify: Update Readme
diff --git a/mod_cloud_notify/README.md b/mod_cloud_notify/README.md
--- a/mod_cloud_notify/README.md
+++ b/mod_cloud_notify/README.md
@@ -1,109 +1,106 @@
----
-labels:
-- 'Stage-Beta'
-summary: 'XEP-0357: Cloud push notifications'
----
+# Introduction
-Introduction
-============
+This module enables support for sending "push notifications" to clients
+that need it, typically those running on certain mobile devices.
-This module enables support for sending "push notifications" to clients that
-need it, typically those running on certain mobile devices.
+As well as this module, your client must support push notifications (the
+apps that need it generally do, of course) and the app developer's push
+gateway must be reachable from your Prosody server (this happens over a
+normal XMPP server-to-server 's2s' connection).
-As well as this module, your client must support push notifications (the apps
-that need it generally do, of course) and the app developer's push gateway
-must be reachable from your Prosody server (this happens over a normal XMPP
-server-to-server 's2s' connection).
-
-Details
-=======
+# Details
Some platforms, notably Apple's iOS and many versions of Android, impose
-limits that prevent applications from running or accessing the network in the
-background. This makes it difficult or impossible for an XMPP application to
-remain reliably connected to a server to receive messages.
-
-In order for messaging and other apps to receive notifications, the OS vendors
-run proprietary servers that their OS maintains a permanent connection to in
-the background. Then they provide APIs to application developers that allow
-sending notifications to specific devices via those servers.
+limits that prevent applications from running or accessing the network
+in the background. This makes it difficult or impossible for an XMPP
+application to remain reliably connected to a server to receive
+messages.
-When you connect to your server with an app that requires push notifications,
-it will use this module to set up a "push registration". When you receive
-a message but your device is not connected to the server, this module will
-generate a notification and send it to the push gateway operated by your
-application's developers). Their gateway will then connect to your device's
-OS vendor and ask them to forward the notification to your device. When your
-device receives the notification, it will display it or wake up the app so it
-can connect to XMPP and receive any pending messages.
+In order for messaging and other apps to receive notifications, the OS
+vendors run proprietary servers that their OS maintains a permanent
+connection to in the background. Then they provide APIs to application
+developers that allow sending notifications to specific devices via
+those servers.
-This protocol is described for developers in [XEP-0357: Push Notifications].
+When you connect to your server with an app that requires push
+notifications, it will use this module to set up a "push registration".
+When you receive a message but your device is not connected to the
+server, this module will generate a notification and send it to the push
+gateway operated by your application's developers). Their gateway will
+then connect to your device's OS vendor and ask them to forward the
+notification to your device. When your device receives the notification,
+it will display it or wake up the app so it can connect to XMPP and
+receive any pending messages.
-For this module to work reliably, you must have [mod_smacks], [mod_mam] and
-[mod_carbons] also enabled on your server.
+This protocol is described for developers in \[XEP-0357: Push
+Notifications\].
+
+For this module to work reliably, you must have \[mod_smacks\],
+\[mod_mam\] and \[mod_carbons\] also enabled on your server.
-Some clients, notably Siskin and Snikket iOS need some additional extensions
-that are not currently defined in a standard XEP. To support these clients,
-see [mod_cloud_notify_extensions].
+Some clients, notably Siskin and Snikket iOS need some additional
+extensions that are not currently defined in a standard XEP. To support
+these clients, see \[mod_cloud_notify_extensions\].
-Configuration
-=============
+# Configuration
- Option Default Description
- ------------------------------------ ----------------- -------------------------------------------------------------------------------------------------------------------
- `push_notification_important_body` `New Message!` The body text to use when the stanza is important (see above), no message body is sent if this is empty
- `push_max_errors` `16` How much persistent push errors are tolerated before notifications for the identifier in question are disabled
- `push_max_devices` `5` The number of allowed devices per user (the oldest devices are automatically removed if this threshold is reached)
- `push_max_hibernation_timeout` `259200` (72h) Number of seconds to extend the smacks timeout if no push was triggered yet (default: 72 hours)
- `push_notification_with_body` (\*) `false` Whether or not to send the real message body to remote pubsub node. Without end-to-end encryption, enabling this may expose your message contents to your client developers and OS vendor. Not recommended.
- `push_notification_with_sender` (\*) `false` Whether or not to send the real message sender to remote pubsub node. Enabling this may expose your contacts to your client developers and OS vendor. Not recommended.
+ Option Default Description
+ -------------------------------------- ---------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+ `push_notification_important_body` `New Message!` The body text to use when the stanza is important (see above), no message body is sent if this is empty
+ `push_max_errors` `16` How much persistent push errors are tolerated before notifications for the identifier in question are disabled
+ `push_max_devices` `5` The number of allowed devices per user (the oldest devices are automatically removed if this threshold is reached)
+ `push_max_hibernation_timeout` `259200` (72h) Number of seconds to extend the smacks timeout if no push was triggered yet (default: 72 hours)
+ `push_notification_with_body` (\*) `false` Whether or not to send the real message body to remote pubsub node. Without end-to-end encryption, enabling this may expose your message contents to your client developers and OS vendor. Not recommended.
+ `push_notification_with_sender` (\*) `false` Whether or not to send the real message sender to remote pubsub node. Enabling this may expose your contacts to your client developers and OS vendor. Not recommended.
-(\*) There are privacy implications for enabling these options.
+(\*) There are privacy implications for enabling these options.[^1]
-Internal design notes
-=====================
+# Internal design notes
-App servers are notified about offline messages, messages stored by [mod_mam]
-or messages waiting in the smacks queue.
-The business rules outlined [here](//mail.jabber.org/pipermail/standards/2016-February/030925.html) are all honored[^2].
+App servers are notified about offline messages, messages stored by
+\[mod_mam\] or messages waiting in the smacks queue. The business rules
+outlined
+[here](//mail.jabber.org/pipermail/standards/2016-February/030925.html)
+are all honored[^2].
-To cooperate with [mod_smacks] this module consumes some events:
-`smacks-ack-delayed`, `smacks-hibernation-start` and `smacks-hibernation-end`.
-These events allow this module to send out notifications for messages received
-while the session is hibernated by [mod_smacks] or even when smacks
-acknowledgements for messages are delayed by a certain amount of seconds
-configurable with the [mod_smacks] setting `smacks_max_ack_delay`.
+To cooperate with \[mod_smacks\] this module consumes some events:
+`smacks-ack-delayed`, `smacks-hibernation-start` and
+`smacks-hibernation-end`. These events allow this module to send out
+notifications for messages received while the session is hibernated by
+\[mod_smacks\] or even when smacks acknowledgements for messages are
+delayed by a certain amount of seconds configurable with the
+\[mod_smacks\] setting `smacks_max_ack_delay`.
-The `smacks_max_ack_delay` setting allows to send out notifications to clients
-which aren't already in smacks hibernation state (because the read timeout or
-connection close didn't already happen) but also aren't responding to acknowledgement
-request in a timely manner. This setting thus allows conversations to be smoother
-under such circumstances.
+The `smacks_max_ack_delay` setting allows to send out notifications to
+clients which aren't already in smacks hibernation state (because the
+read timeout or connection close didn't already happen) but also aren't
+responding to acknowledgement request in a timely manner. This setting
+thus allows conversations to be smoother under such circumstances.
-The new event `cloud-notify-ping` can be used by any module to send out a cloud
-notification to either all registered endpoints for the given user or only the endpoints
-given in the event data.
+The new event `cloud-notify-ping` can be used by any module to send out
+a cloud notification to either all registered endpoints for the given
+user or only the endpoints given in the event data.
-The config setting `push_notification_important_body` can be used to specify an alternative
-body text to send to the remote pubsub node if the stanza is encrypted or has a body.
-This way the real contents of the message aren't revealed to the push appserver but it
-can still see that the push is important.
-This is used by Chatsecure on iOS to send out high priority pushes in those cases for example.
+The config setting `push_notification_important_body` can be used to
+specify an alternative body text to send to the remote pubsub node if
+the stanza is encrypted or has a body. This way the real contents of the
+message aren't revealed to the push appserver but it can still see that
+the push is important. This is used by Chatsecure on iOS to send out
+high priority pushes in those cases for example.
-Compatibility
-=============
-
-**Note:** This module should be used with Lua 5.2 and higher. Using it with
-Lua 5.1 may cause push notifications to not be sent to some clients.
+# Compatibility
------- -----------------------------------------------------------------------------
- trunk Works
- 0.12 Works
- 0.11 Works
- 0.10 Works
- 0.9 Support dropped, use last supported version [675726ab06d3](//hg.prosody.im/prosody-modules/raw-file/675726ab06d3/mod_cloud_notify/mod_cloud_notify.lua)
------- -----------------------------------------------------------------------------
+**Note:** This module should be used with Lua 5.2 and higher. Using it
+with Lua 5.1 may cause push notifications to not be sent to some
+clients.
+ ------- -----------------------------------------------------------------
+ trunk Works as of 25-06-13
+ 13 Works
+ 0.12 Works
+ ------- -----------------------------------------------------------------
-[^1]: The service which is expected to forward notifications to something like Google Cloud Messaging or Apple Notification Service
-[^2]: [business_rules.markdown](//hg.prosody.im/prosody-modules/file/tip/mod_cloud_notify/business_rules.markdown)
+[^1]: The service which is expected to forward notifications to
+ something like Google Cloud Messaging or Apple Notification Service
+
+[^2]: [business_rules.md](//hg.prosody.im/prosody-modules/file/tip/mod_cloud_notify/business_rules.md)
| author | Menel <menel@snikket.de> |
|---|---|
| date | Fri, 13 Jun 2025 10:36:52 +0200 |
| parent | 2195:967ba20e1202 |
| rev | line source |
|---|---|
|
1769
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 -- mod_benchmark_storage |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 -- Copyright (C) 2015 Kim Alvefur |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 -- |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 -- Prime numbers are pretty cool |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 local gettime = require"socket".gettime; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
8 local sm = require"core.storagemanager"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 local um = require"core.usermanager"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 local mm = require"core.modulemanager"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
11 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 local test_data, test_users; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
14 function module.command(arg) |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 local test_driver = arg[1]; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
16 if not test_driver then |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
17 return print("Usage: prosodyctl mod_"..module.name.." <storage driver>"); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 |
|
2195
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
20 local hostname = "benchmark.invalid"; |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
21 prosody.hosts[hostname] = { |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
22 type = "local", |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
23 events = prosody.events, |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
24 modules = {}, |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
25 sessions = {}, |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
26 users = require "core.usermanager".new_null_provider(hostname) |
|
967ba20e1202
mod_benchmark_storage: Switch to an invalid host and inject a stub host object
Kim Alvefur <zash@zash.se>
parents:
2194
diff
changeset
|
27 }; |
|
2194
136497948bf0
mod_benchmark_storage: Put hostname in a variable
Kim Alvefur <zash@zash.se>
parents:
1769
diff
changeset
|
28 |
|
136497948bf0
mod_benchmark_storage: Put hostname in a variable
Kim Alvefur <zash@zash.se>
parents:
1769
diff
changeset
|
29 sm.initialize_host(hostname); |
|
136497948bf0
mod_benchmark_storage: Put hostname in a variable
Kim Alvefur <zash@zash.se>
parents:
1769
diff
changeset
|
30 um.initialize_host(hostname); |
|
1769
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 local start_time = gettime(); |
|
2194
136497948bf0
mod_benchmark_storage: Put hostname in a variable
Kim Alvefur <zash@zash.se>
parents:
1769
diff
changeset
|
33 local storage = assert(sm.load_driver(hostname, test_driver)); |
|
1769
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
34 storage = assert(storage:open("benchmark")); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
35 -- for i = 1, 23 do |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
36 -- storage:set(test_users[i], test_data); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 -- end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
38 local floor, sin, random, pi = math.floor, math.sin, math.random, math.pi; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
39 for i = 1, 10079 do |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
40 if i % 11 == 1 then |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 storage:set(test_users[i%23+1], test_data[3-floor(sin(random()*pi)*3)]); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
42 else |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 storage:get(test_users[i%23+1]); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 if i % 151 == 0 then |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
46 -- Give indication of progress |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
47 io.write("*"); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
48 io.flush(); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
49 end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 -- Cleanup |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
52 for i = 1, 23 do |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
53 storage:set(test_users[i], nil); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 end |
|
2194
136497948bf0
mod_benchmark_storage: Put hostname in a variable
Kim Alvefur <zash@zash.se>
parents:
1769
diff
changeset
|
55 mm.unload(hostname, "storage_"..test_driver); |
|
1769
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
56 local time_taken = gettime() - start_time; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
57 io.write("\27[0G\27[K"); -- Clear current line |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
58 io.flush(); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
59 print(("Took %fs with mod_storage_%s"):format(time_taken, test_driver)); |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
60 end |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
61 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
62 -- 23 usernames |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
63 test_users = { |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
64 "tritonymph"; "ankylotomy"; "tron"; "barbaric"; "twiddler"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
65 "spiritful"; "unmollifiably"; "suggestion"; "presubsistence"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
66 "unneeded"; "taxemic"; "teloteropathic"; "nonbending"; "mev"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
67 "septifragally"; "clame"; "obsolescent"; "unconceivable"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
68 "foolishly"; "conjunctur"; "precirculation"; "bethump"; "vermivorous"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
69 }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
70 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
71 test_data = { |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
72 { some_data = "tiny data" }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
73 -- |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
74 { [false] = { version = 1; pending = {}; }; -- Medium data |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
75 ["user@example.com"] = { subscription = "both"; groups = {}; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
76 name = "My Best Friend"; }; }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
77 -- |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
78 { attr = { xmlns = "vcard-temp"; }; name = "vCard"; -- The largest data |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
79 { attr = { xmlns = "vcard-temp"; }; name = "NICKNAME"; "Buster"; }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
80 { attr = { xmlns = "vcard-temp"; }; name = "PHOTO"; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
81 { attr = { xmlns = "vcard-temp"; }; name = "TYPE"; "image/jpeg"; }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
82 { attr = { xmlns = "vcard-temp"; }; name = "BINVAL"; [[ |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
83 /9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAgFBQUGBQgGBggLBwYHCw0JCAgJDQ8MDA0MDA8RDAwM |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
84 DAwMEQ4RERIREQ4XFxgYFxcgICAgICQkJCQkJCQkJCT/2wBDAQgICA8ODxwTExwfGRQZHyQkJCQk |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
85 JCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCT/wAARCAA8ADwDAREA |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
86 AhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAABgcDBAUCCAH/xAA9EAACAQIEAgcECAMJAAAAAAAB |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
87 AgMEEQAFEhMGIQcUFSIxQWEWQlFSIyQyM2JxgZElcqEXJjSCksHR8PH/xAAbAQACAwEBAQAAAAAA |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
88 AAAAAAAEBQECAwYAB//EADcRAAEDAwIDBAcGBwAAAAAAAAEAAgMEESESMQUTQSJRYYEUIzJCcaGx |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
89 BhUWkdHhQ1JyguLw8f/aAAwDAQACEQMRAD8ASI+7+N8WVuiNuiPgaHinPXkr115TloWWpjvbedj9 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
90 FCT8psS3py88I+N8SNPHZvtu28PFFU0Oo36L0dDTxQxrHGqpEgCoigBVUCwVQPADHz3ckndMLr7M |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
91 jFOSsR5BL3v5eF8edfyUtOVVENZJGdcDR8ySTc8v1APP8sYPjwStg9oO4Q/xTw9Q5vl0tFXw7tPI |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
92 De47ynyeNvJlPhgrhde6CQOBROlkjdLsrzdnuUVGS5rUZdMdbQN3HHLWh7ySf5hj6pTzCWMOHVc3 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
93 U05ikLCtn2Io/Z/tb2goetbe92bt1O9f5NW3bV6/Z9cNfQJe76IH0lurT1Q2SAAPMW/fABRCe3Qx |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
94 VZTkHR1NnOZTLBHU1U88jEd5khAiXSPMDSccPx1jp6oMbkiw/PKa0rDowF1WdN1bXTCDhnLN0yoX |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
95 p5ahlJYKdLu8at9GB64Y0/2TcGa538pned/7R1+irzoydLQZHnoNvNRTZX0wZs9LHX522XmoLt9T |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
96 coAttY1CFUChF5ePPDWGHhkJNo3yfGwVHU8zhu1nzWPmfB3FsGtn4nlnZH0d+pqFu37thjFW8L2d |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
97 TWHkVmeHVNrtkCxIuMOKOF8x6pm01RW09jqp3nOvTf7cU3zC3g3LFa/g/DauAupWiOUdLdPgoiqq |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
98 mnktN2gUW5VT8L9IeTisraI9YS8bM9hUR3J0MtRGAWB9bj0xw9VUT8PkDWnsnPh44KdiOOoZqIsV |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
99 H7B/xzsrqw7F7H6v2htpu9Y3b7mrw3f08MdP+MYvRuZ/GvbR0+P9KTfc/rbe7/N1S94A4Upc4qJc |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
100 wzQfwjLyokiuVM8zi6QBhzC6RqcjnbkPHE8TrHQtsz23fLx/RTQUnNdn2QmHxBmdJSw9dEKTjJaM |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
101 V9PlunRTjVMtHTRugt3AXJCjCOkhc+9zhxsT73endTM2Fmlu9v2WnwzlVJQrvbcSq4NTU7UQTvzW |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
102 dFVie5Gt7KnwwyqaySZ3bJdpwL9yygp2xts0Wvv8UV5jmQy+lgaaHflq20qVIVIkK+99oryGLOYA |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
103 FlHcu+CG6+uylsygo2BV6lC1OyhQZGI0hQ7EBrfDA7Wbohzu9LvjzKnjqDVTqeqzsqxsCCUdVb7X |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
104 vDVYXwbTPLSC3BQk7bjOy2OhbOqOKnqcvkUpNNMDAefejIY6fTSfP1wg+0tM95D77Bb0J7Fk1ttd |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
105 Gry8NXnji7m9kTqzZJ/oyhgm4fenYrv0dXJJIoN+7KiaHP8Aotj6FxcHnA9C36IbhQAYR1uiLP8A |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
106 Kes09VVkkQHL5oKgAXcbbrVQuL8vvIrH88C0lSGENPU4+OyIqog4X7ltUCRPC7ogfbQM8Xk1vPu+ |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
107 PLwwYQQVAVyWET00FNX6o1XvtMshu4t9jkb4uXEhZWAKAeO4+J1qsqroI1jyennLUYbuyGfUBNqa |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
108 2pbe76LgiHSGm9wSsJy4vxYhUukfMkMSQ1ZEk4QmBxbS5va/L4c+eLU7SThRUOACFcizJsvzGmrI |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
109 320hdST4DTf/AIxaqh1tLd16B+mxKOv7Wq7tbrOz/dnb2tuw39Wr/Ffv7vy+uFv4Vj9Hvq9be/8A |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
110 j+XXvWP3l6/bsXt+6EujGvShzmvrqmfaoaeglecM+hJJSQlLGxseZlbl+uH89G2dug+XgUJBVGN5 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
111 cPNM3hXijhXO/qy1iR1UwKSUVQQshZu6Ql+7IOdhpxxXFeH1ULhZhIHvNz/xOo66OQYPkVUycV2X |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
112 b2W1p2amgdo5ApIYpq0o128mW2HQkbI0OHX5KGHFlvFlo6VElmeZRJs07HuoEc8t1m8VXnfzONGG |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
113 4K84ZCq8SxVJlaQSUppRCqQrI5GmUkWEZJa48efni7g3os2uN8pa9IUqyUdEyrZigEiGxMTrzZBb |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
114 /pwVSElxCHqh2boUjnhnpmgiRmmCXkcgWVQRaw/Owwy5QAuN0tM5dvsp+v0/Z+ru7ttvZ1jXq1ad |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
115 O14288a2wsrqLPKCfKn7NDnZ1a3Ye/KnK7eig90Y20aQFlqvcKjHLIJNcTFZVIkjYeKuDcMPUHFg |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
116 dwFByE/qrN8v4ioEz+gbXVMIap0FwplmiiWupVY/JIobl4N+eAK2mBjvbI/3zR1FOQ8C+DhQHiPI |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
117 aQOssgklj70lMQ17Hlq0WZmJIwh0OOU7Lhm6EuOeIcizuJJjRyRadRWfQ0NlB069txpbkLchywXC |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
118 Xg4shJtJGboPXMUrqzQokmpaaJ2LSNbmsZRZG8Od8MaKHt3KAqpbtsLrKy/UpdlJ740HSbGwZSPH |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
119 8QGGDWAtv3lBA2KKOq5R7H9V00/a3aHZe7Ybu1q67v6v5vor/LimnOi3vfJX1Y1eF1qcTcMVWdTu |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
120 Mqp5KqS4cGEalWS3NWfkouPXGr5GgZKzDCThQ5J0KcYVFZEayNKLLzpMs+oO4QgkiKLlqceHPlgR |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
121 9cGG7QSUTHSFxuSAEzJOG5svyJMiyWjqI48vjaahqHkR92WRvpon1FbO9tXwGFj5ZnG56ppHHC0W |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
122 wh7hzgfj6nk6zWwxrK8gLJJUoymJjeUMoDd/4G/jiksOqw2XoZw0G+Vu1XAtZNUsyU1DHSSRhZIp |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
123 JJJZNY99e6EA/DjI0thg5WjasXyMIO4n6MeJp2bs9KRouYKrJtWJFvAp/vguik5TruyhascwdnGU |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
124 LwcB8Y5ejCoyiWUchqj0TAWcNrXaZz5fDDZtVGWAXF/1S407wdlW9m8+7T6x1Gv1bm7t9Xkte9/l |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
125 +OCdcHN16wsOXLy9NvBOCo9tesL2L1Ps+30PVvufDuatvnb+mF8mr3UXHy/e+eyYUduqQ733mga/ |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
126 5rDVb9cCZstha+FC+1c2v62xGFJXA2vO/pbFQpXMmzbz8fPwxBspCoVWzq5f0xkVqFnyaNR29Wr8 |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
127 FsQtGrr65p97R/X/ANxCn6r/2Q==]]; }; }; }; |
|
f2705465cab4
mod_benchmark_storage: A storage benchmark run through prosodyctl
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
128 }; |