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

Compare against experiment as well #2

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

chriskrycho
Copy link

  • add a comparison for local fork of @glimmer/compiler
  • avoid holding onto templates so we can push on actual memory behavior using the same basic infrastructure: load them for each compiler pass, and 'forget' them by consuming them from the array of template strings while doing compilation

- add a comparison for local fork of @glimmer/compiler
- avoid holding onto templates so we can push on actual memory
  behavior using the same basic infrastructure: load them for
  each compiler pass, and 'forget' them by consuming them from
  the array of template strings while doing compilation
package.json Outdated Show resolved Hide resolved
There's something not working here and it doesn't matter enough to dig
into it at this point in time for this little repro repo.
There's no particular value in having it visible; it's just noise when
working here -- it's really only needed for the sake of easy comparison
with the experiment, in fact.
Previously, we saw issues where the results were ending up varying
wildly for some cases, likely because we were ending up with a dirty
heap, triggering GC, and so on. Now, run in a new process each time;
this produces much more consistent results. Curiously, it also shows
much higher run times, but the proportions are consistent with those
from previous analyses.

Combined with the changes in a previous commit to generate a table, and
adding in min and max values, the results currently look like this when
averaged over five separate runs for each source we care about:

|           variant            | average |  min  |  max  |
| ---------------------------- | ------- | ----- | ----- |
| ember-source@3.24.5          | 14381.6 | 13538 | 14790 |
| ember-source@3.25.4          | 44363.6 | 43375 | 45090 |
| ember-source@3.28.1          | 45368.2 | 45224 | 45484 |
| @glimmer/compiler@0.65.3     | 14493.8 | 14353 | 14600 |
| @glimmer/compiler@0.80.0     | 44395   | 44018 | 44679 |
| @glimmer/compiler@experiment | 20633.8 | 20523 | 20777 |
| @glimmer/compiler@latest     | 20751.4 | 20569 | 20864 |
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.

3 participants