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:uhCAk2vpWdR8bj1ctp32DVobVMM8_kzrTppymgx_mBTn8wGd0iCKD
agent:uhCAkXH0h3oVny4JUTYId1Xpgg7HOPVdEPcgt660AVNqiUURal2G-
agent:uhCAkYLt2itm_fZI9nfHooY6K5-ATJkB0wh2XFp2w4_KJh6c4wDnX
agent:uhCAki1ZBUqlwG7XG_9ZGinQhnKLcxfLawB9uCNuTeFRZj5_S_FM7
agent:uhCAkuYjAfzNzm1_sHaPzjxf-qLmOCn6akPsqJzYdo2jtAEFkCuXo
agent:uhCAk86fTcZ55Kn2G6JlMgJc_kN6cc8aENIwWRTI5xDa2M3ntgNL5
agent:uhCAkBB0G7LpwxclptTogtgkxckVwUCnyH6YK-q4fKseTmxEedcR1
agent:uhCAkiZirP2sTEAGcYVaxtmCVMZtjkPkmvPp4uGieNahkpVUzA4Dn
agent:uhCAkjBW8hKeCcT2XjDnE5TubFF_Ifwjrmj97WXRAlwnqGLC5tZZp
agent:uhCAkkDRauGlDIiJ7rVE-jGEpVNhI3sMOVTeF1BGwfkmqi-EoVTjg
agent:uhCAk86fTcZ55Kn2G6JlMgJc_kN6cc8aENIwWRTI5xDa2M3ntgNL5
agent:uhCAkBB0G7LpwxclptTogtgkxckVwUCnyH6YK-q4fKseTmxEedcR1
agent:uhCAkiZirP2sTEAGcYVaxtmCVMZtjkPkmvPp4uGieNahkpVUzA4Dn
agent:uhCAkjBW8hKeCcT2XjDnE5TubFF_Ifwjrmj97WXRAlwnqGLC5tZZp
agent:uhCAkkDRauGlDIiJ7rVE-jGEpVNhI3sMOVTeF1BGwfkmqi-EoVTjg
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_get_agent_activity!
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:uhCAk7EL7sN1YT805uLljnAUUqxroQ65Gz9g4jsot8xyFZE24T4Vu
agent:uhCAkga2U7bNlFY_2AwstLomWRDUP4TO6iJ0bKe1ZoVcukKrG_dc9
agent:uhCAk7EL7sN1YT805uLljnAUUqxroQ65Gz9g4jsot8xyFZE24T4Vu
agent:uhCAkga2U7bNlFY_2AwstLomWRDUP4TO6iJ0bKe1ZoVcukKrG_dc9
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:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:RegisterAgentActivity
agent:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:StoreEntry
agent:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:StoreRecord
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:RegisterAgentActivity
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:StoreEntry
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:StoreRecord
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:RegisterAgentActivity
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:StoreEntry
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:StoreRecord
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:RegisterAgentActivity
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:StoreEntry
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:StoreRecord
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:RegisterAgentActivity
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:StoreEntry
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:StoreRecord
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:RegisterAgentActivity
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:StoreEntry
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:StoreRecord
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:RegisterAgentActivity
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:StoreEntry
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:StoreRecord
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:RegisterAgentActivity
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:StoreEntry
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:StoreRecord
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:RegisterAgentActivity
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:StoreEntry
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:StoreRecord
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_type:RegisterAgentActivity
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_type:StoreEntry
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_type:StoreRecord
agent:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:RegisterAgentActivity
agent:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:StoreEntry
agent:uhCAkAqxZ1VeaKPtip29CM5zBkTNhHvmVX8kqK4J51QjOdYSMzrvJop_type:StoreRecord
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:RegisterAgentActivity
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:StoreEntry
agent:uhCAkBWpQbE32cpyRPMSvyaup013-gT6ELrLG4pnYm25pA95dq6kuop_type:StoreRecord
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:RegisterAgentActivity
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:StoreEntry
agent:uhCAkDQA4cgvQhBJ4fo4xjseMd_A1_P_kl7dzROscDeZk56NO0t9pop_type:StoreRecord
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:RegisterAgentActivity
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:StoreEntry
agent:uhCAkDbkO6FkoKiMnHEFTjs6IyNvJwbUfI6pp-VWRbsOX8s_H6tLLop_type:StoreRecord
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:RegisterAgentActivity
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:StoreEntry
agent:uhCAkJ-WdBHDyQQuRCNzrRy_WXVTCH2npd9o_JEVg_6nkBMyqiheSop_type:StoreRecord
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:RegisterAgentActivity
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:StoreEntry
agent:uhCAkMXtg4ucwbkCqdJtzGoZUEqdXIC8xDdo4XFyT5SveCAWK9UaRop_type:StoreRecord
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:RegisterAgentActivity
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:StoreEntry
agent:uhCAkR-m7eKDod3PpuLOJXn6omQFn9HPxzYv6x7ZqO9oZZejVrfQNop_type:StoreRecord
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:RegisterAgentActivity
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:StoreEntry
agent:uhCAkTkLBfIMKG50QT8TzztKUmMg_juJA1pFUCORcAGEbttFMhWtHop_type:StoreRecord
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:RegisterAgentActivity
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:StoreEntry
agent:uhCAkoeA4A8wfZezEclTxSicksP-9FLJcUF7HDk_MQAce-rIFPkNGop_type:StoreRecord
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_type:RegisterAgentActivity
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_type:StoreEntry
agent:uhCAktdnbDNCg03Fwh-ZDq77UC5UnieI7L8aaUxWn6Y7_K7L5hpXgop_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:uhCAkgNuKFaDIyyMZ7cW4PEwZNDJAcF04JUxnfJVGMSgrc1g5StOm
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:uhCAkrT9fwvz9L9fHzenmGNy_SH_odQaarfj5lHMa3wa9kE7MkNOU
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:uhCAk6jAmQYZJVZLPAsO5WKQSc-BK-GUxb1yGpl6vsEQAH0w5AmIN
agent:uhCAknxca3VQrudqs1Pua1HXpNsteEoToRHced9AJDZER6LmYPfnV
agent:uhCAkymAeFkYvD3Zpb_q7AWMgeyims3X0_ScAFA-kPt6E-Lc9d6N2
get_timed_local_entries zome function.agent:uhCAkDcNo33IcwshC8C9kuAr7_l4mT9P_7h_VjoCXG6I_SftnVGft
agent:uhCAkb62o82Tm0scluvQUprMuslE3a-qWU5AzkSeuI45HafXDRB9B
agent:uhCAkdLdj_Zh5zJctg9AnRhRZI70xbCyZz87Imq7Ius-PH--B_kHh
agent:uhCAkDcNo33IcwshC8C9kuAr7_l4mT9P_7h_VjoCXG6I_SftnVGft
agent:uhCAkb62o82Tm0scluvQUprMuslE3a-qWU5AzkSeuI45HafXDRB9B
agent:uhCAkdLdj_Zh5zJctg9AnRhRZI70xbCyZz87Imq7Ius-PH--B_kHh
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:uhCAk2Me6O7qT-W8gnzNan-MOoFavrE-GqK5HC9DhtwY0phbPZAZq
agent:uhCAk9IRXHNeJOojbpaa4bVJMLQ25OTp4LFxJyHLUCWjGu_od00Wh
agent:uhCAkEf6Z9ivnlSS7RcRRXlz7Ij2WjYeBXDvhUMwavmxsVZL9_gBT
agent:uhCAkO3Uc4J-Yrg4oSxHEIg4GkhQNQhDTS0ywcBX6NMGqBrKtRsFg
agent:uhCAkYVJgsYqZk9TNgfA1JjNBxnMVkFFbm4mC7eHUQZBwXH8HcIvg
agent:uhCAkfluGhXNMmtPYuqUIJlAOUFXP5Ir2T6NTh-uPm9lU2qwPGN5k
get_timed_local_entries zome function.agent:uhCAk1sUpPHYerWKkmVZ9umfkkY6BOpgodXkxxMYAGig_nFPWJKeN
agent:uhCAkAiDFXUIztu_QRvtzvYqP8_KQbNPy4WOXyQvTbFlaS3ZWBG3Z
agent:uhCAkKDLFNDtfr3DRl2U6mVYlneIyJMujEEZkQQQg2HhoONAa9sWP
agent:uhCAkXlF8LY0HycyRdK4wBfeuLpBaCnic1Q7f5U_y1g1BKJrwaW9a
agent:uhCAk1sUpPHYerWKkmVZ9umfkkY6BOpgodXkxxMYAGig_nFPWJKeN
agent:uhCAkAiDFXUIztu_QRvtzvYqP8_KQbNPy4WOXyQvTbFlaS3ZWBG3Z
agent:uhCAkKDLFNDtfr3DRl2U6mVYlneIyJMujEEZkQQQg2HhoONAa9sWP
agent:uhCAkXlF8LY0HycyRdK4wBfeuLpBaCnic1Q7f5U_y1g1BKJrwaW9a
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:uhCAk8HJtJRGPy2JBciWcBBTGFz4zv8M64EpNXBmYFAj372z0gE1f
agent:uhCAkCRoh18mpuVk5h_9_MqVzzWQhRpn4347R39M5vv3GrCVkVURM
agent:uhCAkHqqcINr-2912ZVG8cA4cEp9qZgIB4m1IleVjQtwuzgVauK1b
agent:uhCAkUzOAgIpcYeGW1GvePelGQrKicspVQEt71st6HMJnbnr5wDlM
agent:uhCAkj6IiBOsUh4eOH9VsBgYzwOEsw7JeYFLZUHQ4yFGrHqgKbxlZ
agent:uhCAkuhFUq8QvVSKUuU1YyHEv7oLzbDY-3vJRA5QKGBH1ibg1MvIz
get_timed_local_entries zome function.agent:uhCAk1cjh43_A0dAnlDt6dGeswCMvhV0rCt_TUV-EWdEzUo_ohCfl
agent:uhCAk7HtDcAmkRYsGbUem_BlnzW70-FGz81tccQSj1UjVQrxdEmR2
agent:uhCAkEXvYrnxP967aOg8KI5I2DEEiBNol0UZ4dbVPxb-lCrDgcTEA
agent:uhCAkMwkzjm1XmXdFSlaPUYvER7VihEZqHwbQeg_D5P-TWBIDo19k
agent:uhCAk1cjh43_A0dAnlDt6dGeswCMvhV0rCt_TUV-EWdEzUo_ohCfl
agent:uhCAk7HtDcAmkRYsGbUem_BlnzW70-FGz81tccQSj1UjVQrxdEmR2
agent:uhCAkEXvYrnxP967aOg8KI5I2DEEiBNol0UZ4dbVPxb-lCrDgcTEA
agent:uhCAkMwkzjm1XmXdFSlaPUYvER7VihEZqHwbQeg_D5P-TWBIDo19k
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)