feat(perf): port table scrolling benchmark to Angular 2

This commit is contained in:
Yegor Jbanov
2015-02-05 18:33:57 -08:00
parent 93c18f5396
commit fcbdf02767
21 changed files with 1119 additions and 11 deletions

View File

@ -2,7 +2,6 @@ library common.stuff;
import 'dart:async';
import 'dart:collection';
import 'package:fixnum/fixnum.dart';
import 'package:observe/observe.dart';
const ITEMS = 1000;
@ -204,8 +203,8 @@ class Opportunity extends RawEntity {
}
class Account extends RawEntity {
Int64 get accountId => this['accountId'];
set accountId(Int64 val) {
int get accountId => this['accountId'];
set accountId(int val) {
this['accountId'] = val;
}
}

View File

@ -1,7 +1,6 @@
library random_data;
import 'common.dart';
import 'package:fixnum/fixnum.dart';
List<Offering> generateOfferings(int count) =>
new List.generate(count, generateOffering);
@ -34,7 +33,7 @@ Opportunity generateOpportunity(int seed) {
Account generateAccount(int seed) {
return new Account()
..accountId = new Int64(seed);
..accountId = seed;
}
String generateName(int seed) {