Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tusharmath
Copy link
Owner

No description provided.

@tusharmath
Copy link
Owner Author

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
Copy link
Owner Author

tusharmath commented Jul 10, 2017

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
Copy link

Coverage Status

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

@tusharmath
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link

Coverage Status

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants