From 792b34a127de71abc73f4071e8a7363864eef170 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Thu, 1 Oct 2026 07:05:51 +0100 Subject: Measure sending between two apps of a host: local outlet or link (112) Two apps of one host, src sending one message for each of 1,000 items in a burst event, 2,000 bursts a run, five rounds with the ways in turns: the local outlet stores 1,141,642 sends a second at 1.17 us of the host's CPU each, a loopback pure:// link to the host's own port 578,879 at 2.93 us (1.97 times the sends, 0.40 times the CPU). 017's second stage asked for at least the link's rate at half its CPU or less: it goes in. Every run checks dst's sum: each send came once. --- research/experiments/027-apps-sending/src.aup | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 research/experiments/027-apps-sending/src.aup (limited to 'research/experiments/027-apps-sending/src.aup') diff --git a/research/experiments/027-apps-sending/src.aup b/research/experiments/027-apps-sending/src.aup new file mode 100644 index 0000000..6ec7c4c --- /dev/null +++ b/research/experiments/027-apps-sending/src.aup @@ -0,0 +1,16 @@ +record Item { + k = 0 +} +state items: list of Item +input fill = message { k: u32 } +input burst = message { step: u32 } +output out = message { k: u32 } +on fill { + items.append(Item { k: fill.k }) +} +on burst { + for i in items { + send out { k: i.k + burst.step } + } +} +view count = count(i in items where i.k > 0) -- cgit v1.2.3