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

Various improvements to benchmark mode, plus a glyph stress benchmark. #1514

Merged
merged 1 commit into from Jul 26, 2017

Conversation

@glennw
Copy link
Member

glennw commented Jul 25, 2017

  • Track the CPU backend time in benchmark mode.
  • Add a glyph rendering stress test.
  • Make subpixel AA default text mode in wrench.
  • Rebuild display lists every frame in benchmark mode.

This change is Reviewable

@glennw
Copy link
Member Author

glennw commented Jul 25, 2017

r? @kvark

@glennw glennw force-pushed the glennw:benchmarks-text branch 2 times, most recently from 4104bdd to 3d5e4a8 Jul 25, 2017
@glennw
Copy link
Member Author

glennw commented Jul 26, 2017

Rebased.

@kvark
kvark approved these changes Jul 26, 2017
Copy link
Member

kvark left a comment

A few nits, otherwise gold to go

@@ -24,10 +24,10 @@ args:
long: save
help: 'Save frames, one of: yaml, json, or binary'
takes_value: true
- subpixel_aa:
- disable_subpixel_aa:

This comment has been minimized.

@kvark

kvark Jul 26, 2017

Member

I think it should be no_subpixel_aa for consistency with other options

@@ -320,7 +320,7 @@ fn main() {
save_type,
size,
args.is_present("rebuild"),
args.is_present("subpixel_aa"),
!args.is_present("disable_subpixel_aa"),

This comment has been minimized.

@kvark

kvark Jul 26, 2017

Member

similarly, we might want to move the inversion ! later down the pipe in order to be consistent with the other options


TestProfile {
name: filename.to_str().unwrap().to_string(),
composite_time_ns: composite_time / cpu_samples.len() as u64,
paint_time_ns: paint_time / gpu_samples.len() as u64,
composite_time_ns: composite_time_ns,

This comment has been minimized.

@kvark

kvark Jul 26, 2017

Member

nit: looks like you haven't gotten used to the new shiny Rust 1.16 features yet :)

draw_calls,
}
}
}

fn extract_sample<F, T>(profiles: &mut [T], f: F) -> u64 where F: Fn(&T) -> u64 {

This comment has been minimized.

@kvark

kvark Jul 26, 2017

Member

I like this one 👍

* Track the CPU backend time in benchmark mode.
* Add a glyph rendering stress test.
* Make subpixel AA default text mode in wrench.
* Rebuild display lists every frame in benchmark mode.
@glennw glennw force-pushed the glennw:benchmarks-text branch from 3d5e4a8 to a7cce69 Jul 26, 2017
@glennw
Copy link
Member Author

glennw commented Jul 26, 2017

@kvark Thanks, fixed those nits.

@kvark
Copy link
Member

kvark commented Jul 26, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jul 26, 2017

📌 Commit a7cce69 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 26, 2017

Testing commit a7cce69 with merge 82ac4fb...

bors-servo added a commit that referenced this pull request Jul 26, 2017
Various improvements to benchmark mode, plus a glyph stress benchmark.

* Track the CPU backend time in benchmark mode.
* Add a glyph rendering stress test.
* Make subpixel AA default text mode in wrench.
* Rebuild display lists every frame in benchmark mode.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1514)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 26, 2017

☀️ Test successful - status-travis
Approved by: kvark
Pushing 82ac4fb to master...

@bors-servo bors-servo merged commit a7cce69 into servo:master Jul 26, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.