tusharmath / observable-air

Observable for the calorie conscious
MIT License
34 stars 3 forks source link

chore(build): add js-cpa integration #196

Open tusharmath opened 7 years ago

tusharmath commented 7 years ago

observable-air@ benchmark /home/travis/build/tusharmath/observable-air tsc && node ./benchmarks/run

Node: v8.1.3 V8: 5.8.283.41

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 769 (±4.51%)    │ 69      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 388 (±9.55%)    │ 38      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 32,724 (±6.47%) │ 55      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 38 (±7.25%)     │ 60      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 15 (±3.81%)     │ 68      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 262 (±2.33%)    │ 72      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,583 (±7.23%)  │ 49      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 942 (±3.38%)    │ 64      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
tusharmath commented 7 years ago

observable-air@ js-cpa /home/travis/build/tusharmath/observable-air js-cpa .dist/observable-air.js

Printing matches for - /home/travis/build/tusharmath/observable-air/.dist/observable-air.js

Found 3 matches

Loc - 6 : 6
va => new qa(va)

Loc - 6 : 6
va => new ra(va)

Loc - 16 : 16
ta => new sa(ta)

Found 3 matches

Loc - 6 : 6
() => new ua()

Loc - 6 : 6
() => new ta()

Loc - 12 : 12
() => new va()

Found 2 matches

Loc - 6 : 6
constructor(va) {
  this.f = va;
}

Loc - 8 : 8
constructor(ua) {
  this.f = ua;
}

Found 13 matches

Loc - 8 : 8
error(ra) {
  this.sink.error(ra);
}

Loc - 8 : 8
error(sa) {
  this.sink.error(sa);
}

Loc - 10 : 10
error(sa) {
  this.sink.error(sa);
}

Loc - 12 : 12
error(sa) {
  this.sink.error(sa);
}

Loc - 12 : 12
error(ua) {
  this.sink.error(ua);
}

Loc - 12 : 12
error(ua) {
  this.sink.error(ua);
}

Loc - 12 : 12
error(ta) {
  this.sink.error(ta);
}

Loc - 14 : 14
error(sa) {
  this.sink.error(sa);
}

Loc - 18 : 18
error(ta) {
  this.sink.error(ta);
}

Loc - 18 : 18
error(sa) {
  this.sink.error(sa);
}

Loc - 18 : 18
error(sa) {
  this.sink.error(sa);
}

Loc - 20 : 20
error(ua) {
  this.sink.error(ua);
}

Loc - 20 : 20
error(ua) {
  this.sink.error(ua);
}

Found 5 matches

Loc - 8 : 8
complete() {
  this.sink.complete();
}

Loc - 10 : 10
complete() {
  this.sink.complete();
}

Loc - 12 : 12
complete() {
  this.sink.complete();
}

Loc - 18 : 18
complete() {
  this.sink.complete();
}

Loc - 18 : 18
complete() {
  this.sink.complete();
}

Found 4 matches

Loc - 10 : 10
function (sa, ta) {
  return new ra(sa, ta);
}

Loc - 12 : 12
function (sa, ta) {
  return new ra(sa, ta);
}

Loc - 12 : 12
function (sa, ta) {
  return new ra(ta, sa);
}

Loc - 18 : 18
function (sa, ta) {
  return new ra(sa, ta);
}

Found 2 matches

Loc - 12 : 12
() => {
  this.closed || this.task();
}

Loc - 12 : 12
() => {
  this.closed || this.task();
}

Found 2 matches

Loc - 12 : 12
unsubscribe() {
  !1 === this.closed && (this.closed = !0);
}

Loc - 12 : 12
unsubscribe() {
  !1 === this.closed && (this.closed = !0);
}

Found 4 matches

Loc - 8 : 8
function (ua) {
  return new ta(ua);
}

Loc - 12 : 12
function (ta) {
  return new sa(ta);
}

Loc - 12 : 12
function (ta) {
  return new sa(ta);
}

Loc - 12 : 12
function (ua) {
  return new ta(ua);
}

Found 3 matches

Loc - 12 : 12
wa => qa(va, wa)

Loc - 12 : 12
wa => ra(va, wa)

Loc - 12 : 12
va => sa(ua, va)

Found 3 matches

Loc - 12 : 12
next(ua) {
  this.sink.next(ua);
}

Loc - 12 : 12
next(ta) {
  this.sink.next(ta);
}

Loc - 20 : 20
next(ua) {
  this.sink.next(ua);
}

Found 4 matches

Loc - 14 : 14
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Loc - 18 : 18
function (ta, ua, va) {
  return new sa(ta, ua, va);
}

Loc - 18 : 18
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Loc - 20 : 20
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Found 2 matches

Loc - 14 : 14
constructor(sa, ta, ua) {
  this.reducer = sa, this.value = ta, this.sink = ua;
}

Loc - 18 : 18
constructor(sa, ta, ua) {
  this.reducer = sa, this.value = ta, this.sink = ua;
}

Found 2 matches

Loc - 14 : 14
constructor(sa, ta, ua) {
  this.reducer = sa, this.seed = ta, this.source = ua;
}

Loc - 18 : 18
constructor(sa, ta, ua) {
  this.reducer = sa, this.seed = ta, this.source = ua;
}

Found 2 matches

Loc - 14 : 14
subscribe(sa, ta) {
  return this.source.subscribe(new qa(this.reducer, this.seed, sa), ta);
}

Loc - 18 : 18
subscribe(sa, ta) {
  return this.source.subscribe(new qa(this.reducer, this.seed, sa), ta);
}

Found 2 matches

Loc - 12 : 12
function qa(ua) {
  return new ta(ua);
}

Loc - 20 : 20
function qa(ua) {
  return new ta(ua);
}

Found 2 matches

Loc - 12 : 12
constructor(ua) {
  this.source = ua;
}

Loc - 20 : 20
constructor(ua) {
  this.source = ua;
}

Found 2 matches

Loc - 12 : 12
(ua, va) => {
  return qa(u.map(ua, va));
}

Loc - 20 : 20
(ua, va) => {
  return qa(u.map(ua, va));
}
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 85.736% when pulling 04e1bf34e86fee3f24b08b3f6b5287da589ea622 on remove-duplicates into 07e3efe26fe7df0c3bc2bcbe4e8ccead613a7156 on master.

tusharmath commented 7 years ago

observable-air@ benchmark /home/travis/build/tusharmath/observable-air tsc && node ./benchmarks/run

Node: v8.1.3 V8: 5.8.283.41

┌─────────────────────────────────────────────────────┬─────────────────┬─────────┐
│ name                                                │ ops/sec         │ samples │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ create                                              │ 872 (±1.18%)    │ 76      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> debounce                                    │ 342 (±6.43%)    │ 38      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> combine(sum3, [a, b, c]) -> reduce(sum2, 0) │ 30,452 (±7.15%) │ 48      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> map -> reduce                               │ 23 (±6.64%)     │ 51      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> scan -> reduce                              │ 15 (±1.72%)     │ 71      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ file -> takeN(0, n/10)                              │ 243 (±2.15%)    │ 73      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ array(2) -> array(i) -> switchLatest                │ 1,590 (±5.44%)  │ 45      │
├─────────────────────────────────────────────────────┼─────────────────┼─────────┤
│ tryCatch                                            │ 995 (±11.47%)   │ 52      │
└─────────────────────────────────────────────────────┴─────────────────┴─────────┘
tusharmath commented 7 years ago

observable-air@ js-cpa /home/travis/build/tusharmath/observable-air echo '';js-cpa .dist/observable-air.js;echo ''


Printing matches for - /home/travis/build/tusharmath/observable-air/.dist/observable-air.js

Found 3 matches

Loc - 6 : 6
va => new qa(va)

Loc - 6 : 6
va => new ra(va)

Loc - 16 : 16
ta => new sa(ta)

Found 3 matches

Loc - 6 : 6
() => new ua()

Loc - 6 : 6
() => new ta()

Loc - 12 : 12
() => new va()

Found 2 matches

Loc - 6 : 6
constructor(va) {
  this.f = va;
}

Loc - 8 : 8
constructor(ua) {
  this.f = ua;
}

Found 13 matches

Loc - 8 : 8
error(ra) {
  this.sink.error(ra);
}

Loc - 8 : 8
error(sa) {
  this.sink.error(sa);
}

Loc - 10 : 10
error(sa) {
  this.sink.error(sa);
}

Loc - 12 : 12
error(sa) {
  this.sink.error(sa);
}

Loc - 12 : 12
error(ua) {
  this.sink.error(ua);
}

Loc - 12 : 12
error(ua) {
  this.sink.error(ua);
}

Loc - 12 : 12
error(ta) {
  this.sink.error(ta);
}

Loc - 14 : 14
error(sa) {
  this.sink.error(sa);
}

Loc - 18 : 18
error(ta) {
  this.sink.error(ta);
}

Loc - 18 : 18
error(sa) {
  this.sink.error(sa);
}

Loc - 18 : 18
error(sa) {
  this.sink.error(sa);
}

Loc - 20 : 20
error(ua) {
  this.sink.error(ua);
}

Loc - 20 : 20
error(ua) {
  this.sink.error(ua);
}

Found 5 matches

Loc - 8 : 8
complete() {
  this.sink.complete();
}

Loc - 10 : 10
complete() {
  this.sink.complete();
}

Loc - 12 : 12
complete() {
  this.sink.complete();
}

Loc - 18 : 18
complete() {
  this.sink.complete();
}

Loc - 18 : 18
complete() {
  this.sink.complete();
}

Found 4 matches

Loc - 10 : 10
function (sa, ta) {
  return new ra(sa, ta);
}

Loc - 12 : 12
function (sa, ta) {
  return new ra(sa, ta);
}

Loc - 12 : 12
function (sa, ta) {
  return new ra(ta, sa);
}

Loc - 18 : 18
function (sa, ta) {
  return new ra(sa, ta);
}

Found 2 matches

Loc - 12 : 12
() => {
  this.closed || this.task();
}

Loc - 12 : 12
() => {
  this.closed || this.task();
}

Found 2 matches

Loc - 12 : 12
unsubscribe() {
  !1 === this.closed && (this.closed = !0);
}

Loc - 12 : 12
unsubscribe() {
  !1 === this.closed && (this.closed = !0);
}

Found 4 matches

Loc - 8 : 8
function (ua) {
  return new ta(ua);
}

Loc - 12 : 12
function (ta) {
  return new sa(ta);
}

Loc - 12 : 12
function (ta) {
  return new sa(ta);
}

Loc - 12 : 12
function (ua) {
  return new ta(ua);
}

Found 3 matches

Loc - 12 : 12
wa => qa(va, wa)

Loc - 12 : 12
wa => ra(va, wa)

Loc - 12 : 12
va => sa(ua, va)

Found 3 matches

Loc - 12 : 12
next(ua) {
  this.sink.next(ua);
}

Loc - 12 : 12
next(ta) {
  this.sink.next(ta);
}

Loc - 20 : 20
next(ua) {
  this.sink.next(ua);
}

Found 4 matches

Loc - 14 : 14
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Loc - 18 : 18
function (ta, ua, va) {
  return new sa(ta, ua, va);
}

Loc - 18 : 18
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Loc - 20 : 20
function (sa, ta, ua) {
  return new ra(sa, ta, ua);
}

Found 2 matches

Loc - 14 : 14
constructor(sa, ta, ua) {
  this.reducer = sa, this.value = ta, this.sink = ua;
}

Loc - 18 : 18
constructor(sa, ta, ua) {
  this.reducer = sa, this.value = ta, this.sink = ua;
}

Found 2 matches

Loc - 14 : 14
constructor(sa, ta, ua) {
  this.reducer = sa, this.seed = ta, this.source = ua;
}

Loc - 18 : 18
constructor(sa, ta, ua) {
  this.reducer = sa, this.seed = ta, this.source = ua;
}

Found 2 matches

Loc - 14 : 14
subscribe(sa, ta) {
  return this.source.subscribe(new qa(this.reducer, this.seed, sa), ta);
}

Loc - 18 : 18
subscribe(sa, ta) {
  return this.source.subscribe(new qa(this.reducer, this.seed, sa), ta);
}

Found 2 matches

Loc - 12 : 12
function qa(ua) {
  return new ta(ua);
}

Loc - 20 : 20
function qa(ua) {
  return new ta(ua);
}

Found 2 matches

Loc - 12 : 12
constructor(ua) {
  this.source = ua;
}

Loc - 20 : 20
constructor(ua) {
  this.source = ua;
}

Found 2 matches

Loc - 12 : 12
(ua, va) => {
  return qa(u.map(ua, va));
}

Loc - 20 : 20
(ua, va) => {
  return qa(u.map(ua, va));
}
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 85.736% when pulling 004765b8f08f4b9a9384bafc6e60871d03f6e893 on remove-duplicates into 87d0f62287ad450a8487511f89e13dd97a1950ff on master.