diff options
Diffstat (limited to 'research/experiments/041-batches/costs/adds.aup')
| -rw-r--r-- | research/experiments/041-batches/costs/adds.aup | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/research/experiments/041-batches/costs/adds.aup b/research/experiments/041-batches/costs/adds.aup new file mode 100644 index 0000000..9dcf3df --- /dev/null +++ b/research/experiments/041-batches/costs/adds.aup @@ -0,0 +1,15 @@ +record Cell { + at = 0 + v = 0 +} +state out = 0 +input go = message { + n: u32 +} +on go { + let table: list of Cell by at + for c in 0 .. go.n * 50 { + table.add(Cell { at: c }) + } + out = table.count +} |
