App Install
Measure app installation speed. This scenario has two roles:
minimal: Installs a simple app which implements initialisation callbacks but otherwise doesn't contain a lot of code.large: Installs a larger app that contains some dependencies and some generated data as padding to make the bundle larger.
These are intended to catch a compilation slowdown or issues with copying around large WASMs (e.g. accidental cloning or tracing). In each case, the behaviour will uninstall the app it installed so that it can re-install it on the next iteration.
-
minimal(1 agent)
App Install
Measure app installation speed. This scenario has two roles:
minimal: Installs a simple app which implements initialisation callbacks but otherwise doesn't contain a lot of code.large: Installs a larger app that contains some dependencies and some generated data as padding to make the bundle larger.
These are intended to catch a compilation slowdown or issues with copying around large WASMs (e.g. accidental cloning or tracing). In each case, the behaviour will uninstall the app it installed so that it can re-install it on the next iteration.
-
large(1 agent)
DHT Sync Lag
Measure lag time between an agent publishing data and other peers being able to see it. This scenario has two roles:
write: A simple job that just creates entries with a timestamp field. Those entries are linked to a known base hash. For each write, the metricws.custom.dht_sync_sent_countis incremented.record_lag: A job that repeatedly queries for links from the known base hash. It keeps track of records that it has seen and when a new record is found, and calculates the time difference between the timestamp of the new record and the current time. That time difference is then recorded as a custom metric calledwt.custom.dht_sync_lag.
After each behaviour loop the metric ws.custom.dht_sync_recv_count is incremented.
-
record_lag(5 agents) -
write(5 agents)
agent:uhCAk-QcdM1gcRvL5Q_7RPrTbj_ZbhVvRDSh7c17ftn9QzYzXoIlo
agent:uhCAk8fd5-OVB_3qq5tI6enaSEyHSf0m2QJN5Q1kXes08nEVOzdBj
agent:uhCAkDuoD70ckl1sIcxtf-S1p5Ai4jUxzl8lnVNy8zeKiMqYlE_Uv
agent:uhCAkKsNLVJKltfwEscnxzSYdAoNI29lOA3dVDICaPmAm6H3Ge7xW
agent:uhCAkeqDLEiWHZOmYQcpoGvICV4iebtkE-4dho2ogOpugl_eXm1uT
agent:uhCAkBJ9BA5ea7LYUvYm21EEaG0aGGhMqaY9iJu3TgU74EjozM9NP
agent:uhCAkHqK0b7n1tfRBbTwvjxBTUYcFKawJ3bcC0-uRSLaGCEjr2goC
agent:uhCAkO7d3f_sRM_tVCpkjEPytIQU4hp-T22GPBdvWgCQyQM2V18lJ
agent:uhCAkdcJ9ax5io4c6XYERTqEdxCOo9XguDThsNKi7ZcFhCs3YzQqb
agent:uhCAkosZRkd2NDiuSmwEqoZzHBwp0CKIPHR_q2lajCh-z9SBXYDYq
agent:uhCAkBJ9BA5ea7LYUvYm21EEaG0aGGhMqaY9iJu3TgU74EjozM9NP
agent:uhCAkHqK0b7n1tfRBbTwvjxBTUYcFKawJ3bcC0-uRSLaGCEjr2goC
agent:uhCAkO7d3f_sRM_tVCpkjEPytIQU4hp-T22GPBdvWgCQyQM2V18lJ
agent:uhCAkdcJ9ax5io4c6XYERTqEdxCOo9XguDThsNKi7ZcFhCs3YzQqb
agent:uhCAkosZRkd2NDiuSmwEqoZzHBwp0CKIPHR_q2lajCh-z9SBXYDYq
First Call
This scenario installs a simple app which implements the init callback, and measures the time elapsed between start of install and calling init. It will uninstall the app it installed so that it can re-install it on the next iteration. This is required to re-run the initialisation callback.
- Default (1 agent)
init.No scenario template for full_arc_create_validated_zero_arc_read!
Local Signals
This scenario is for testing the speed and reliability of local signals. It uses a zome with a function that will emit 10,000 signals. The scenario measures how long it takes to send the signals and how many have been received by the time the zome call ends.
- Default (1 agent)
No scenario template for mixed_arc_must_get_agent_activity!
Remote Call Rate
Test the throughput of remote_call operations. Each agent in this scenario waits for a certain number of peers to be available or for up to two minutes, whichever happens first, before starting its behaviour.
- Default (1 agent)
agent:uhCAkCOMxQe4_2GgI6Qu8roDDgkJbxbPRPP0wIckTMnN0EMw3GKGA
agent:uhCAkjyeVJWaZh8XrpBmuF9b2mwCnXaby-p8zh_e_zxcD_n63Ty8N
agent:uhCAkCOMxQe4_2GgI6Qu8roDDgkJbxbPRPP0wIckTMnN0EMw3GKGA
agent:uhCAkjyeVJWaZh8XrpBmuF9b2mwCnXaby-p8zh_e_zxcD_n63Ty8N
Remote Signals
This scenario tests the throughput of remote_signals operations.
- Default (1 agent)
Single-write, many-read
Creates an entry in the agent setup, then read one's own record back. This tests the maximum read performance for reading back local data when the chain is short.
- Default (1 agent)
read call timingread call rate (10s)Validation Receipts
Creates an entry, wait for required validation receipts, then repeat. Records the amount of time it took to accumulate the required number of receipts for all DHT operations. This is measured to the nearest 20ms so that we don't keep the agent too busy checking for receipts.
Each agent in this scenario waits for a certain number of peers to be available or for up to two minutes, whichever happens first, before starting its behaviour.
By default, this scenario will wait for a complete set of validation receipts before committing the next record. If the NO_VALIDATION_COMPLETE environment variable is set, it will instead publish new records on every round, building up an ever-growing list of action hashes to check on.
- Default (1 agent)
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:RegisterAgentActivity
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:StoreEntry
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:StoreRecord
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:RegisterAgentActivity
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:StoreEntry
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:StoreRecord
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:RegisterAgentActivity
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:StoreEntry
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:StoreRecord
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:RegisterAgentActivity
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:StoreEntry
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:StoreRecord
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:RegisterAgentActivity
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:StoreEntry
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:StoreRecord
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:RegisterAgentActivity
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:StoreEntry
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:StoreRecord
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:RegisterAgentActivity
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:StoreEntry
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:StoreRecord
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:RegisterAgentActivity
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:StoreEntry
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:StoreRecord
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:RegisterAgentActivity
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:StoreEntry
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:StoreRecord
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:RegisterAgentActivity
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:StoreEntry
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:StoreRecord
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:RegisterAgentActivity
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:StoreEntry
agent:uhCAk65TxzZNQW9z2NthwOOin-dMwqWcwhGvcs1fleeVI1nWJMxyvop_type:StoreRecord
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:RegisterAgentActivity
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:StoreEntry
agent:uhCAkDh-rnrLKZUJm_GT3Q0ySiUYitPW6B-GBbjBx82HRNBz6G6BZop_type:StoreRecord
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:RegisterAgentActivity
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:StoreEntry
agent:uhCAkIhIDa6iKuGob3xEw-QSmVEqH3iSA7ut-dJ15eEm-Rz9edr3rop_type:StoreRecord
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:RegisterAgentActivity
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:StoreEntry
agent:uhCAkR__0rtfjyMD0pzbBra8sMrgGBqgx2hH4_-oC9C7fbkLZc_Kuop_type:StoreRecord
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:RegisterAgentActivity
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:StoreEntry
agent:uhCAkU8AykPeN7itznUjD-2WmXQTlS5UICRrMYjQ2UIjGd0_74c0hop_type:StoreRecord
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:RegisterAgentActivity
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:StoreEntry
agent:uhCAkW_XaliSXN6HihuVeleV0XW1DKbAcYK9h84-2I2D2rZkUIAUfop_type:StoreRecord
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:RegisterAgentActivity
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:StoreEntry
agent:uhCAkZlpQ5Rw6jei3EHyYQ2JpWlKIgfIsrM6Pdbru2eWNY0iio-hWop_type:StoreRecord
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:RegisterAgentActivity
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:StoreEntry
agent:uhCAkaYNVvhtmjkEqHtC4TTBr9vc9Y5C6zkKYNq24eMI30eVGWJ0_op_type:StoreRecord
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:RegisterAgentActivity
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:StoreEntry
agent:uhCAkoQGVfdAKdD3aK2htT3ldvksIo6CcKx5fOxQLtze2BdIfs33Yop_type:StoreRecord
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:RegisterAgentActivity
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:StoreEntry
agent:uhCAkpn3MlpF3Z0__QjiWh38EXCNJKy71BAlxNHTZV-yvxffcackeop_type:StoreRecord
Write/get_agent_activity
A scenario where write peers write entries, while get_agent_activity peers each query a single write agent's activity with get_agent_activity.
Before a target write peer and the requesting get_agent_activity peer are in sync, this will measure the get_agent_activity call performance over a network. Once a write peer reaches sync with a get_agent_activity peer, the write peer will publish their actions and entries, and so the get_agent_activity calls will likely have most of the data they need locally. At that point this measures the database query performance and code paths through host functions.
-
get_agent_activity(1 agent) -
write(1 agent)
action_seqwrite peer's source chain.get_agent_activity_full zome call timingwrite peer's source chain.agent:uhCAk-zlybq0XJEx17s57tMMwMttR_E3eC-YdvolD9ztWIzJIdio8
Write/Query
Creates an entry, then queries the source chain and performs a simple operation on the entries, then repeats.
- Default (1 agent)
Write/Read
Creates an entry and reads it back, then repeats.
- Default (1 agent)
Write validated
Creates an entry, updates it and links the create to the update, then repeats. Each of the three actions is validated by the included hApp.
- Default (1 agent)
Write Validated must_get_agent_activity
A scenario where write agents create entries, while must_get_agent_activity agents create entries which are validated with a must_get_agent_activity call for a single write agent's activity.
Before a target write peer and the requesting peer are in sync, the must_get_agent_activity request will go over the network. Once a write peer reaches sync with the requesting must_get_agent_activity peer, the write peer will publish their actions and entries, and so the must_get_agent_activity calls will likely have the data it needs locally. At that point this measures the database query performance and code paths through host functions.
-
must_get_agent_activity(1 agent) -
write(1 agent)
action_seqmust_get_agent_activity peer's source chain top over the run.create_validated_sample_entry zome call timingwrite agent's source chain.agent:uhCAkJ84LInk2EeNjxPLWUMzUKdj-o6hPNfqMJmqHeMZ390ZRUH8v
Zero-Arc Create and Read
A zero-arc/full-arc mixed scenario with two types of zero-arc nodes -- ones that create data and ones that read data -- as well as full arc nodes to "relay" the data. The scenario has three roles:
zero_write: A zero-arc conductor that just creates entries with a timestamp field. Those entries are linked to a known base hash so thatzero_readnodes can retrieve them.zero_read: A zero-arc conductor that reads the entries created by the zero-arc node(s) and records the time lag between when the entry had been created and when it was first discovered.full: A full-arc conductor that is just here to serve entries to zero arc nodes.
-
full(3 agents) -
zero_read(3 agents) -
zero_write(3 agents)
agent:uhCAkMoTU07_m7I4Rvsuc9yOye5A_E5cHcKz_RrpaXzEctW0u4hv-
agent:uhCAkedhKpnjXjHnse9gyH3aY-jahslTwdKSzjc5_Vb5mkGz-n5Vy
agent:uhCAkudEpBLehqkQ7RIKbE21wt8eEm7FHkXXjz2W_RGqD7ouRlmlJ
get_timed_local_entries zome function.agent:uhCAkOOTUFg1i0Y5aENrKy0n0xfY0BCP3QZ3arXjkOWaYtLrU-iPn
agent:uhCAkURHi2RY8MzQCDz1RX8KWV_7y1-LdR9H2rFd1ao-pTBZMFLH5
agent:uhCAkaVlTJXb9lwa19_100eyYSJfaLPo4CJ13_AQeT1bi0Vr5gkOt
agent:uhCAkOOTUFg1i0Y5aENrKy0n0xfY0BCP3QZ3arXjkOWaYtLrU-iPn
agent:uhCAkURHi2RY8MzQCDz1RX8KWV_7y1-LdR9H2rFd1ao-pTBZMFLH5
agent:uhCAkaVlTJXb9lwa19_100eyYSJfaLPo4CJ13_AQeT1bi0Vr5gkOt
Zero-Arc Create Data
zero: A zero-arc conductor that just creates entries with a timestamp field. Those entries are linked to a known base hash so that full-arc nodes can retrieve them.full: A full-arc conductor that reads the entries created by the zero-arc node(s) and records the time lag between when the entry had been created and when it was first discovered.
-
full(4 agents) -
zero(6 agents)
agent:uhCAk1hgDm_a4uu6x0Ue0412rxPqNLlgubXdXIkmExCD-6_fktP1_
agent:uhCAk9C3iARk22BHGR1HYjJZQ-ZRVYBJHWJ128ouUviZHUqQoTV4q
agent:uhCAkCEvJ38X5XJXDm19QKfM2KdDXlSFK1aOUY9RdRft8To8UdCKY
agent:uhCAkCHv-aCij8ekHbD2VVGlVTEaWMf1UNT2GXEgkbqSVDzIB9RAN
agent:uhCAkHf2qp2HD0XwSAItPPzrnguTmM70VGbHsLNGtUNpDuOEASQI4
agent:uhCAkk6XXcXtaxyvUYu8TFUsXlKSWrv-TDOVco4tke3XYe0rLsZ2k
get_timed_local_entries zome function.agent:uhCAk-alaQQkK_iXzWSUrKCvcNKCMIWjBTrxiDDuEX9juu-GBX9zz
agent:uhCAkDtAiX65S2JcpZe-4Brykza1wJvRU2dOwxAjid-pi0XfPQDpU
agent:uhCAkX5ngU13hR7t0aDpT73BkatFyawsMMs_GBEpKjCplu1syEjvc
agent:uhCAk_omd1tIFqJhe-B4h23Gie-buzi3rnMNl5VZQNvpY5ZhtTp8w
agent:uhCAk-alaQQkK_iXzWSUrKCvcNKCMIWjBTrxiDDuEX9juu-GBX9zz
agent:uhCAkDtAiX65S2JcpZe-4Brykza1wJvRU2dOwxAjid-pi0XfPQDpU
agent:uhCAkX5ngU13hR7t0aDpT73BkatFyawsMMs_GBEpKjCplu1syEjvc
agent:uhCAk_omd1tIFqJhe-B4h23Gie-buzi3rnMNl5VZQNvpY5ZhtTp8w
Zero-arc Create Data (Validated)
A zero-arc/full-arc mixed scenario where zero-arc nodes create data that gets validated and full-arc nodes read the data. The scenario has two roles:
zero: A zero-arc conductor that just creates entries with a timestamp field. Those entries are linked to a known base hash so that full-arc nodes can retrieve them.full: A full-arc conductor that reads the entries created by the zero-arc node(s) and records the time lag between when the entry had been created and when it was first discovered.
-
full(4 agents) -
zero(6 agents)
agent:uhCAk4_RRF5UM1H4GclesVbBl74bdbtWW1vbuDM-T4ywrYYHUxSa8
agent:uhCAkGBBrfvc3P7mG7seQ5ODqaVpOrenF5sEr7LXbRUG6KbAkHrWC
agent:uhCAkPN2LTLKGJoiXPddmdqv8fJyQieEiQo4VCjM4BrEyMUjNTJcU
agent:uhCAktL0ZYrLRBj_PHDw3wBiM2XIY8uHCMg-b7IWsc4smJbSdlvuL
agent:uhCAkyukSGT8fvFcFdgkckFG1jXcdXJTEKQY-IFf1aynxPtnRM_Mk
get_timed_local_entries zome function.agent:uhCAkFtMWig_fnotoiDQkXh9RfV_QZKOYGz99IWOze1QH1wWLvllI
agent:uhCAkeHQgx1BpirZCL7c5XVao0bc-fU8areZNFtACsVV8pmBAW4g1
agent:uhCAkFtMWig_fnotoiDQkXh9RfV_QZKOYGz99IWOze1QH1wWLvllI
agent:uhCAkeHQgx1BpirZCL7c5XVao0bc-fU8areZNFtACsVV8pmBAW4g1
Zome Call, Single Value
Calls a zome function that returns a fixed value. This tests the maximum performance of zome calls when the zome function is not calling into Holochain other otherwise doing any work.
- Default (1 agent)