Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions perf/invoke_perf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ main() {
var streamC = new StreamController(sync:true);
var stream = streamC.stream..listen(handleIndirect);

time('direct', () => handleDirect(1, 2, 3) );
time('.call', () => wrap(1, 2, 3) );
time('directNamed', () => handleDirectNamed(a:1, b:2, c:3) );
time('indirect', () => handleIndirect(new Container(1, 2, 3)) );
time('direct', () => handleDirect(1, 2, 3));
time('.call', () => wrap(1, 2, 3));
time('directNamed', () => handleDirectNamed(a:1, b:2, c:3));
time('indirect', () => handleIndirect(new Container(1, 2, 3)));
time('stream', () => streamC.add(new Container(1, 2, 3)));
}

class Container {
var a;
var b;
var c;
final a;
final b;
final c;

Container(this.a, this.b, this.c);
}

class Wrap {
call(a, b, c) => a + b + c;
class Wrap implements Function {
call(a, b, c) => a;
}