This directory contains tools for profiling ockam.
Two scenarios for performance profiling:
portal.perf
- local portal, within one nodeportal_two_nodes.perf
- two nodes, one inlet and outletrelay_port.perf
- one node, one inlet and outlet passing through a relay
And one scenario for heap profiling:
portal.valgrind.dhat
- local portal, within one node
To run the performance tests, simply run tools/profile/SCRIPT
from the ockam
git root.
The performance scripts are currently compatible only with Linux since they use perf
.
On MacOS, a similar approach should be doable with dtrace
, but is not yet implemented.
Heap profiling with valgrind is compatible with both Linux and MacOS.