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

Record perf results vs RxJS 4, then drop RxJS 4 from perf testing #2198

Closed
benlesh opened this issue Dec 16, 2016 · 10 comments
Closed

Record perf results vs RxJS 4, then drop RxJS 4 from perf testing #2198

benlesh opened this issue Dec 16, 2016 · 10 comments

Comments

@benlesh
Copy link
Member

benlesh commented Dec 16, 2016

It's time to move on. Future versions of this library need to be compared against previous versions of itself, not Rx4.

We need to

  1. Record and keep the perf results vs RxJS 4, if for no other reason than documentation purposes.
  2. Fix the perf tests to target a previous version of RxJS 5.
@benlesh
Copy link
Member Author

benlesh commented Dec 16, 2016

cc @kwonoj @jayphelps

@manekinekko
Copy link
Contributor

Hi @Blesh are you still planning to use Benchpress for future perf tests? I'm actually building a tool called Perfy, on top of Benchpress which allows to keep track of previous tests campaign, which is exactly what you need. The tool lives here :https:/manekinekko/perfy.

If this is something you wanna try out, I can prepare a POC for RxJS.

@benlesh
Copy link
Member Author

benlesh commented Dec 22, 2016

@manekinekko that sounds awesome. I'd love to see it in action. I have a feeling our benchpress tests have probably fallen into disrepair.

Do note, though, that we have both micro perf and macro perf tests.

@manekinekko
Copy link
Contributor

alright. I'll begin working on that just right after christmas 🎅

@manekinekko
Copy link
Contributor

manekinekko commented Dec 24, 2016

@Blesh here is a quick POC for the macro perfs... tell if this is what you had in mind?
image

@kwonoj
Copy link
Member

kwonoj commented Dec 24, 2016

@manekinekko I'm curious if we could create github webhooks to display some critical info per each PR (let's not think about ergonomics like where to run server, etcs for now)

@manekinekko
Copy link
Contributor

@kwonoj yep I think it's doable.

Here are some facts about Perfy:

  • It runs after protractor/benchpress has ended executing specs tests.
  • It overrides benchpress config in order to make benchpress outputs JSON files.
  • It reads those JSON files and merges them into a single JSON file which serves as a database.
  • It has a CLI interface.

Here is the complete workflow:

npm run tests --> protractor --> benchpress --> perfy --> charts

One thing I'm missing here is how we'll be able to provide a subset of spec tests to benchpress. Typically, we will need to:

  1. run only the tests that are affected by the specific PR that is being created.
  2. Or do we need to run the whole tests?

I think 2) would be a good approach 🤔

@claudiordgz
Copy link
Contributor

claudiordgz commented Mar 4, 2018

Is benchpress still being supported? I don't see it in the latest modules in angular, it's supposed to be @angular/benchpress, but it's missing after angular 2.4. Seems like we need to overhaul all protractor and benchpress test code too if we want to move forward with this.

@benlesh
Copy link
Member Author

benlesh commented Aug 18, 2020

This is just old now.

@benlesh benlesh closed this as completed Aug 18, 2020
@manekinekko
Copy link
Contributor

Haha! I totally forgot about this experiment 😁

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

No branches or pull requests

4 participants