diff options
Diffstat (limited to 'research/experiments/041-batches/costs')
| -rw-r--r-- | research/experiments/041-batches/costs/recur4.aup | 13 | ||||
| -rw-r--r-- | research/experiments/041-batches/costs/time.c | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/research/experiments/041-batches/costs/recur4.aup b/research/experiments/041-batches/costs/recur4.aup new file mode 100644 index 0000000..53e4650 --- /dev/null +++ b/research/experiments/041-batches/costs/recur4.aup @@ -0,0 +1,13 @@ +state out = 0 +input go = message { + n: u32 +} +on go { + let x = 1 + let total = 0 + for i in 0 .. go.n * 1000 { + x = x * 48271 - floor(x * 48271 / 2147483647) * 2147483647 + total = total + ((x - floor(x / 1000) * 1000) + (x - floor(x / 7) * 7)) + } + out = total + x +} diff --git a/research/experiments/041-batches/costs/time.c b/research/experiments/041-batches/costs/time.c index 621caa6..2fb99ea 100644 --- a/research/experiments/041-batches/costs/time.c +++ b/research/experiments/041-batches/costs/time.c @@ -8,6 +8,8 @@ * nest 200 x 200 x 200, the inner loop's rounds together: 200 lanes * adds 50,000 keys added in order to a DENSE list: an append's call * probes 100,000 keys added to a HASHED list, 1,000,000 found + * recur 1,000 x N rounds of MINSTD: a recurrence ahead of a batch + * recur4 recur and four reads of x into a sum (records of x in the lanes) * ops0, ops12, sum0, sum6, sum12: ops with one or twelve lets, and with * total = total + 1 for the max (n 51200, batches only): what * an instruction costs a batch apart from the reduction */ |
