Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
DCS Websocket Streaming Load Test
Usage
- define a config.json
{
"num_connections": 20,
"request_per_connection": 1,
"base_url": "dev-gateway.macro.com/cognition",
"connection_timeout": 60, // seconds
"ramp_up_duration": 15, // seconds
"delay_between_connections": 50 //miliseconds
}
- set your
macro-tokenas an env variableTOKEN
export TOKEN="<your_token"
- run command with your config
cargo run -- config.json
Understanding the output
Here is an example output for the config above:
Load test report:
Ran 20 connections, across 20 chats, sending up to 20 messages over 53.04606425s
Ramp-up duration: 15s
Delay between connections: 50ms
Messages sent: 20 # how many messages where sent to the server
Messages received: 240 # how many messages where received by the client
Messages acknowledged: 20 # how many messages started streaming
Messages finished: 20 # how many messages finished streaming
Average time to acknowledge message: 89.15ms # average time that a message starts streaming back
Average time to finish message: 708.40ms # average time that a message finished streaming