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)
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)
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:uhCAk48wIWJj2AzATiDkyDlhJydiZ7JyMm8IVII2M3FS-Jpf2CBmf
agent:uhCAkC_vnIwzMBs8uG3e4EsqHSUAMJVV8S17XzsNcZnIRRyELzaio
agent:uhCAkLZZ_z7zT1reT9qoONGyx2ePLeTtEQxgVgSvfAOuuELe9CywV
agent:uhCAkMje2AU9OYgoxfvHPMs734ltyYdR-HuojAYHN5KLzDPLzbeq4
agent:uhCAksFaTv00iHv26ukIehnAwp2n1nyUhavrnzl8qw9WPQ2N9i_fP
agent:uhCAk6MZDgwgatLBR93GX2M8Jv1dbBa7vf6yl-yZYZ5Xp_r4sFSl5
agent:uhCAk7tjOFMRPDKHlxALceYnj_j3x-qQ4GpyZGGgn7vHbx2dnI57u
agent:uhCAkOFO0il3DlmN1A45BzE02G8g5kt_612519GwVIf4d6G6-EKwP
agent:uhCAkiQFiUuqQbHv3nT2UuVXXV1qEnUf3rGOh8vOkCr7lC0XXbVwy
agent:uhCAkxhGDXEHZCD1lh_dGt6vmV5BVJ3PMeQVPbKl4Znj9ms0uPB_d
agent:uhCAk6MZDgwgatLBR93GX2M8Jv1dbBa7vf6yl-yZYZ5Xp_r4sFSl5
agent:uhCAk7tjOFMRPDKHlxALceYnj_j3x-qQ4GpyZGGgn7vHbx2dnI57u
agent:uhCAkOFO0il3DlmN1A45BzE02G8g5kt_612519GwVIf4d6G6-EKwP
agent:uhCAkiQFiUuqQbHv3nT2UuVXXV1qEnUf3rGOh8vOkCr7lC0XXbVwy
agent:uhCAkxhGDXEHZCD1lh_dGt6vmV5BVJ3PMeQVPbKl4Znj9ms0uPB_d
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.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:uhCAk8xKodwEeqSE225bsOxMKfavqu-y7GAJjzLpyF1C9A2hCjHK6
agent:uhCAkagRPt2I3FXe3FxI53e9bgF4FqfAq2Mld0zFjZHDJ2X0Bbn6V
agent:uhCAk8xKodwEeqSE225bsOxMKfavqu-y7GAJjzLpyF1C9A2hCjHK6
agent:uhCAkagRPt2I3FXe3FxI53e9bgF4FqfAq2Mld0zFjZHDJ2X0Bbn6V
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:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:RegisterAgentActivity
agent:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:StoreEntry
agent:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:StoreRecord
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:RegisterAgentActivity
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:StoreEntry
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:StoreRecord
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:RegisterAgentActivity
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:StoreEntry
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:StoreRecord
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:RegisterAgentActivity
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:StoreEntry
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:StoreRecord
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:RegisterAgentActivity
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:StoreEntry
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:StoreRecord
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:RegisterAgentActivity
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:StoreEntry
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:StoreRecord
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:RegisterAgentActivity
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:StoreEntry
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:StoreRecord
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:RegisterAgentActivity
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:StoreEntry
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:StoreRecord
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:RegisterAgentActivity
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:StoreEntry
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:StoreRecord
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_type:RegisterAgentActivity
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_type:StoreEntry
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_type:StoreRecord
agent:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:RegisterAgentActivity
agent:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:StoreEntry
agent:uhCAkKGWeibR5f8WqyqndZhkWsL5I5idHpBfSzwKF8YYcqMwHBazvop_type:StoreRecord
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:RegisterAgentActivity
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:StoreEntry
agent:uhCAkUMOe0QMLxlRLlKAoiTRZPRE_RF6KIrvpp-8fxylgjMyZfi1hop_type:StoreRecord
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:RegisterAgentActivity
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:StoreEntry
agent:uhCAkWKyjzYKGb2SYxQNjmYLcIjVP6X3_IyERoLZ732xVpClcJrItop_type:StoreRecord
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:RegisterAgentActivity
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:StoreEntry
agent:uhCAkZBaLa3wU8c2IR1bQAG3CYOFvR5lyQ3Y0laZY1RXe3p__yOXpop_type:StoreRecord
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:RegisterAgentActivity
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:StoreEntry
agent:uhCAk_CKduSLeZixWGKKOumNwvuprbJsXfqG5CHFPpGkP379pa_P6op_type:StoreRecord
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:RegisterAgentActivity
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:StoreEntry
agent:uhCAkd12i6atcDHqDVFoY2727KOAdsyQuwDaSeVKDL5sjyOmgL-lfop_type:StoreRecord
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:RegisterAgentActivity
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:StoreEntry
agent:uhCAkgOu9AkFelUZPRBRvqwrDQnqC6dSAz7pHmzeVLllU5Sbd5kagop_type:StoreRecord
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:RegisterAgentActivity
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:StoreEntry
agent:uhCAkk8ABevbiNI4cSCdzUA1zWMbvJ_pP7VVMlEnLrS-48MjrIGK4op_type:StoreRecord
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:RegisterAgentActivity
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:StoreEntry
agent:uhCAkkri2b3X1nlFCYgHALvWGjtJcgwjabE_pehVnjTxJEcZo4DbLop_type:StoreRecord
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_type:RegisterAgentActivity
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_type:StoreEntry
agent:uhCAkt2wpXVk35p0wE1ukLSyhDqbZJziaqSgadxLEGxFSmMcYoFpXop_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:uhCAkJALU9IGeZTfIytkmZG3eVX10TxhMpfsPzzUf2tO7kCO-FjN9
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:uhCAkK5eE9-KJyIvJI4Ez7GoNcXXbZH50dHJfFOIWwXCtB3zFje3G
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:uhCAkDjhN9LTj4a_AeGEBcMaelNL5ufhYIftlmBUJFbkwwHKmAafu
agent:uhCAkMBkdscv4txcqHTqyRDEHvJdzx0NrrwxCEW2hDXriQHYD3OJd
agent:uhCAkXeT1L5xAP4Uq3hXfdj5e45IUKRQpNAlwi25ctBvJt8bmsqvJ
get_timed_local_entries zome function.agent:uhCAkH9iG9XoPeTq6IofLl4EnfsVCb8lPRtfpWwElEGv1XqOuSj2Q
agent:uhCAkwKWhlRXGhA2Y7GW5g27jPXNUcWung_L9gcCJSEH68YjNPc9o
agent:uhCAkH9iG9XoPeTq6IofLl4EnfsVCb8lPRtfpWwElEGv1XqOuSj2Q
agent:uhCAkwKWhlRXGhA2Y7GW5g27jPXNUcWung_L9gcCJSEH68YjNPc9o
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:uhCAkJ36ZOHCQS5xJ7AErYLBkhGd91nx9T48gHM7IgKEVgY7ebqQB
agent:uhCAkJJieoMyj7H4Wxow7sqr3BuJN7X0xSXyx3bzhgJtXlwmgMcB3
agent:uhCAkQD5Rular45qiDrYRM8j2XOAkl6FjAUJ-4IMHjPqFNpp_XoKt
agent:uhCAkSOuA-HEQhrZdCp0Zxd3THYya3sb0iJJJasbsEjWIsh-Ou5Dr
agent:uhCAkZ5mQ3TbQLYmFTXznHHFzupLXfUK4YUTPahZWw4HZ29nO9raN
agent:uhCAkuX06teyFgkaWio7K13YiY8wn8xCfEBF7_hMzi9Nq3nkxkcto
get_timed_local_entries zome function.agent:uhCAkHz1WNQ1CKX2IgwMYwsQUpdjacNgYJEJuM_vYIREJUubXM-r0
agent:uhCAkezETRk7FMd28z8Fa_-YzLHvcf8Y_fisQzXrx19FGKhH-yLg6
agent:uhCAknCqZjqeXMVwTYiLmynSy91c4xAtab8_QzVMd-7DAImtjzzui
agent:uhCAksv1N9RDS00z_6vmOZlUUEu-r9GUFrCegTSfEjLzcz0G60EXp
agent:uhCAkHz1WNQ1CKX2IgwMYwsQUpdjacNgYJEJuM_vYIREJUubXM-r0
agent:uhCAkezETRk7FMd28z8Fa_-YzLHvcf8Y_fisQzXrx19FGKhH-yLg6
agent:uhCAknCqZjqeXMVwTYiLmynSy91c4xAtab8_QzVMd-7DAImtjzzui
agent:uhCAksv1N9RDS00z_6vmOZlUUEu-r9GUFrCegTSfEjLzcz0G60EXp
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:uhCAkaesB-a66J2GIsFnYxHKFb-o9RapkAtIHdMVc_e1ioDXaU1LZ
agent:uhCAkdaMiz5p57YABif6dr2_iHe2fXdKqfHaTY-5_rGT1dUgjazBS
agent:uhCAkgCEtCaLgjEm57-rET2wrCeiLej0tG5n4BaZ9Q8K2XK3kImvu
agent:uhCAktOR6-enFEZN6snkVUwBSBEm8_Ui-z3EodSHurvVZ16j6NVJq
agent:uhCAku4BF4uWYmIRbK1TUx24dzKzfRaEy4h9QA_8LPhwAxD2dKU4b
agent:uhCAkuCWBi_RdBsuX-Z3GuoY91HSSAkZvwQxCTuQVfJfCM5YKwN7c
get_timed_local_entries zome function.agent:uhCAk4bmbhERnWf7p1qErGiiv-ip-pv7Qgsz413lhQbTfd4kjC8Rk
agent:uhCAkdoZCaxhzLRrPzHM-mqEOpVfaGT4b8oAGa4e1474xWkXaRVck
agent:uhCAkixdaJuQRgG5f6oYPQ_dPk0ruYMzbHCMloWrY_QQN1cwVioUG
agent:uhCAkkXtLvoV6v8pQ--Yv5PVFTZBnnOj7vxKxcJFOv_YtV4RxZAAh
agent:uhCAk4bmbhERnWf7p1qErGiiv-ip-pv7Qgsz413lhQbTfd4kjC8Rk
agent:uhCAkdoZCaxhzLRrPzHM-mqEOpVfaGT4b8oAGa4e1474xWkXaRVck
agent:uhCAkixdaJuQRgG5f6oYPQ_dPk0ruYMzbHCMloWrY_QQN1cwVioUG
agent:uhCAkkXtLvoV6v8pQ--Yv5PVFTZBnnOj7vxKxcJFOv_YtV4RxZAAh
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)