nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model_collect: add services for module importation
[nit.git]
/
tests
/
bench_send2.nit
diff --git
a/tests/bench_send2.nit
b/tests/bench_send2.nit
index
3e8853e
..
6e70969
100644
(file)
--- a/
tests/bench_send2.nit
+++ b/
tests/bench_send2.nit
@@
-18,8
+18,9
@@
redef class Object
fun foo do end
end
class A
fun foo do end
end
class A
- redef fun foo do end
+ redef fun foo do i += 1 end
init do end
init do end
+ var i = 0
end
class B
super A
end
class B
super A
@@
-66,9
+67,12
@@
for i in [0..(nb/6)[ do
a[i*6+4] = new E
a[i*6+5] = new F
end
a[i*6+4] = new E
a[i*6+5] = new F
end
-for i in [0..1.lshift(n)[ do
+for i in [0..1 << n[ do
for j in [0..nb[ do
a[j].foo
end
end
for j in [0..nb[ do
a[j].foo
end
end
+for j in [0..nb[ do
+ print a[j].as(A).i
+end