nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: update benchs*.nit to have a common default time and an non-linear grow
[nit.git]
/
tests
/
bench_send.nit
diff --git
a/tests/bench_send.nit
b/tests/bench_send.nit
index
03218dc
..
5659ee1
100644
(file)
--- a/
tests/bench_send.nit
+++ b/
tests/bench_send.nit
@@
-97,7
+97,11
@@
b.val = 1
c.val = 2
d.val = 3
var i = 0
-while i < 100000 do
+
+var n = 10
+if args.not_empty then n = args.first.to_i
+
+while i < 1.lshift(n) do
a.hop(b, c, d)
i = i + 1
end