aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/ops0.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/041-batches/costs/ops0.aup')
-rw-r--r--research/experiments/041-batches/costs/ops0.aup12
1 files changed, 12 insertions, 0 deletions
diff --git a/research/experiments/041-batches/costs/ops0.aup b/research/experiments/041-batches/costs/ops0.aup
new file mode 100644
index 0000000..280f4e2
--- /dev/null
+++ b/research/experiments/041-batches/costs/ops0.aup
@@ -0,0 +1,12 @@
+state out = 0
+input go = message {
+ n: u32
+}
+on go {
+ let total = 0
+ for i in 0 .. go.n * 20 {
+ let f = i + 1
+ total = max(total, f)
+ }
+ out = total
+}