-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Migrate benchmarks #201
Migrate benchmarks #201
Conversation
Bundle size report: Size Change: +862 B
ℹ️ View Details
|
I will be away for the next 3 weeks but plan to take this up again after that. If anyone wants to take over in the meantime, you're very welcome. |
This might be fixed as part of #209 as we are revisiting the infrastructure of this repo and rewriting things. |
I was waiting on the merge of #209 and plan to pick this up again. If somebody beats me to it the better :-) |
Continue on the discussion here: #76 and reading the relevant readme I don't think there's a need to upload any generated file (I might be wrong). |
Also worth noting that I removed code related to access token in #298 which I hope will be merged to main soon, this will create conflict with this branch. Just giving a heads up... |
What do you suggest we do about this code then? maplibre-gl-js/bench/versions/index.html Lines 25 to 28 in 04ff47d
|
After we solve the "easy" problem of comparing the current version, we can think of a good way to compare older versions. It feels to me like there should be a simpler way to run benchmark test without storing anything besides the released version (maplibre-gl.js of a certain version which is obviously stored already in some CDN places) as it should contain all the needed code to facilitate bench marking, that's at least my gut feeling... |
I think its quite clear, perhaps I'm more used to this functional style...
I believe you are wrong here. But if you're not I'm looking forward to your solution. About the rest of your answer: as I said I'm only interested to do the minimal effort to get the benchmarks running again. If thats not wanted, then somebody else will have to do the deep dive and refactors you are talking about. |
I'm talking about the has(compare) part above the code you sent. I can't understand where the first condition ends and the second begins. In theory, we can currently compare against mapbox versions that have this generated.js file in s3, right? |
Yeah the formatting of the surrounding code is confusing. There is a very well obfuscated extra closing parentheses on this line: maplibre-gl-js/bench/versions/index.html Line 23 in 04ff47d
so the code uses either the given list of versions to compare or fetches the version for the last release from github. the following code which I referenced above ist then used for both cases (so for urls with and without compare parameter). |
Yup :-) that was the part I talked about refactoring :-) the map...reduce... whatever is ok. |
I would like to join this party. What is the status? |
Yeah thats better. I'll close this pull request. I was waiting on the typescript refactor to finish and am currently checking that the render tests run through on my machines. last I checked one regression from this branch was that I could no longer start the benchmark server, which worked here. that will be the first thing to fix if that is still the case. after that we can bring back the commented out benchmarks one-by-one (I think a lot of them just depend on a style containing a layer with a hardcoded id, so it should just be a matter of changing to a suitable public style, have some vector data and using the correct layer id) |
This is a WIP to migrate benchmarks from mapbox infrastructure. Currently I just made the changes necessary so the benchmark pages work again. To finish this PR I need to:
maplibre-gl-js
changelog:<changelog></changelog>