Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Issue 2300323003: Adding performance tests for HQP that represent importance of optimising HistoryItemsForTerms method (Closed)

Created:
4 years, 3 months ago by dyaroshev
Modified:
4 years, 1 month ago
CC:
Alexei Svitkine (slow), chromium-reviews, nednguyen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Performance tests for HistoryQuickProvider. This CL adds performance test for HQP: typing and erasing a popular url (10000 similar entries). Based on HQP unittests. BUG=643668 Committed: https://crrev.com/7d7c15ee9c7481355f4b42315d386b0eccc9fd75 Cr-Commit-Position: refs/heads/master@{#429835}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Browser perftest -> unit perftest #

Patch Set 3 : Keeping generated profile in a repo #

Patch Set 4 : Getting perf test simpler and smaller #

Patch Set 5 : Creating a separate main for perf tests #

Total comments: 2

Patch Set 6 : Rebasing on prepared components perftests. #

Total comments: 71

Patch Set 7 : Review, round 1. #

Patch Set 8 : Review, round 2. #

Total comments: 14

Patch Set 9 : Review, round 3. #

Total comments: 12

Patch Set 10 : Rebase + small clean up. #

Total comments: 1

Patch Set 11 : Review, round 4. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -228 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M components/history/core/browser/history_database.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M components/history/core/browser/history_service.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/omnibox/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -2 lines 0 comments Download
A components/omnibox/browser/fake_autocomplete_provider_client.h View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
A components/omnibox/browser/fake_autocomplete_provider_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +58 lines, -0 lines 0 comments Download
A components/omnibox/browser/history_quick_provider_performance_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +213 lines, -0 lines 0 comments Download
M components/omnibox/browser/history_quick_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 19 chunks +148 lines, -225 lines 0 comments Download
A components/omnibox/browser/history_test_util.h View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A components/omnibox/browser/history_test_util.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
M components/omnibox/browser/in_memory_url_index.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 115 (36 generated)
dyaroshev
On 2016/09/02 15:16:10, dyaroshev wrote: > mailto:dyaroshev@yandex-team.ru changed reviewers: > + mailto:phajdan.jr@chromium.org, mailto:pkasting@google.com This cl ...
4 years, 3 months ago (2016-09-02 15:55:52 UTC) #3
Peter Kasting
Seems like running the whole browser is going to make the perf pretty noisy. Can ...
4 years, 3 months ago (2016-09-02 20:00:07 UTC) #5
dyaroshev
On 2016/09/02 20:00:07, Peter Kasting wrote: > Seems like running the whole browser is going ...
4 years, 3 months ago (2016-09-05 14:33:00 UTC) #6
Peter Kasting
On 2016/09/05 14:33:00, dyaroshev wrote: > On 2016/09/02 20:00:07, Peter Kasting wrote: > > Seems ...
4 years, 3 months ago (2016-09-05 15:29:49 UTC) #7
dyaroshev
On 2016/09/05 15:29:49, Peter Kasting wrote: > On 2016/09/05 14:33:00, dyaroshev wrote: > > On ...
4 years, 3 months ago (2016-09-05 16:53:05 UTC) #8
dyaroshev
> Is running AutocompleteController in isolation small enough to be a good perf > test? ...
4 years, 3 months ago (2016-09-05 17:21:59 UTC) #9
Paweł Hajdan Jr.
https://codereview.chromium.org/2300323003/diff/1/chrome/test/base/ui_test_utils.cc File chrome/test/base/ui_test_utils.cc (right): https://codereview.chromium.org/2300323003/diff/1/chrome/test/base/ui_test_utils.cc#newcode323 chrome/test/base/ui_test_utils.cc:323: content::WindowedNotificationObserver ready_observer( Shouldn't the observer be instantiated before any ...
4 years, 3 months ago (2016-09-06 14:22:11 UTC) #10
dyaroshev
On 2016/09/06 14:22:11, Paweł Hajdan Jr. wrote: > https://codereview.chromium.org/2300323003/diff/1/chrome/test/base/ui_test_utils.cc#newcode323 > chrome/test/base/ui_test_utils.cc:323: content::WindowedNotificationObserver > ready_observer( > ...
4 years, 3 months ago (2016-09-06 14:27:22 UTC) #11
dyaroshev
On 2016/09/06 14:22:11, Paweł Hajdan Jr. wrote: > https://codereview.chromium.org/2300323003/diff/1/chrome/test/base/ui_test_utils.cc > File chrome/test/base/ui_test_utils.cc (right): > > ...
4 years, 3 months ago (2016-09-06 16:37:40 UTC) #12
dyaroshev
On 2016/09/05 15:29:49, Peter Kasting wrote: I've changed the test to the unit one. Even ...
4 years, 3 months ago (2016-09-06 16:44:51 UTC) #14
Peter Kasting
In principle, this seems like a better design. Can we avoid building up the profile ...
4 years, 3 months ago (2016-09-06 19:44:16 UTC) #15
dyaroshev
On 2016/09/06 19:44:16, Peter Kasting wrote: > Can we avoid building up the profile inside ...
4 years, 3 months ago (2016-09-06 20:40:30 UTC) #16
Peter Kasting
On 2016/09/06 20:40:30, dyaroshev wrote: > On 2016/09/06 19:44:16, Peter Kasting wrote: > > Can ...
4 years, 3 months ago (2016-09-06 20:44:07 UTC) #17
dyaroshev
On 2016/09/06 20:44:07, Peter Kasting wrote: > On 2016/09/06 20:40:30, dyaroshev wrote: > > On ...
4 years, 3 months ago (2016-09-07 18:43:10 UTC) #18
Peter Kasting
On 2016/09/07 18:43:10, dyaroshev wrote: > On 2016/09/06 20:44:07, Peter Kasting wrote: > > On ...
4 years, 3 months ago (2016-09-07 19:46:33 UTC) #19
dyaroshev
On Peter Kasting wrote: > I don't know. You may want to hold off a ...
4 years, 3 months ago (2016-09-07 21:23:41 UTC) #21
Peter Kasting
On 2016/09/07 21:23:41, dyaroshev wrote: > On Peter Kasting wrote: > > I don't know. ...
4 years, 3 months ago (2016-09-07 21:26:32 UTC) #22
Nico
I think erikchen wrote a profile generator a while ago, maybe that could be used ...
4 years, 3 months ago (2016-09-12 14:16:23 UTC) #25
dyaroshev
On 2016/09/12 14:16:23, Nico wrote: > I think erikchen wrote a profile generator a while ...
4 years, 3 months ago (2016-09-12 14:30:19 UTC) #26
erikchen
On 2016/09/12 14:30:19, dyaroshev wrote: > On 2016/09/12 14:16:23, Nico wrote: > > I think ...
4 years, 3 months ago (2016-09-12 16:50:16 UTC) #27
dyaroshev
> If your goal is to create a Chrome profile with populated history, take a ...
4 years, 3 months ago (2016-09-12 16:52:32 UTC) #28
erikchen
On 2016/09/12 16:52:32, dyaroshev wrote: > > If your goal is to create a Chrome ...
4 years, 3 months ago (2016-09-12 16:55:48 UTC) #29
dyaroshev
On 2016/09/12 16:55:48, erikchen wrote: > profile_creator is a python script that generates a Chrome ...
4 years, 3 months ago (2016-09-12 17:09:36 UTC) #30
dyaroshev
On 2016/09/07 19:46:33, Peter Kasting wrote: > Ultimately if we agree on an approach, you'll ...
4 years, 3 months ago (2016-09-12 17:49:32 UTC) #31
Peter Kasting
On 2016/09/12 17:49:32, dyaroshev wrote: > On 2016/09/07 19:46:33, Peter Kasting wrote: > > Ultimately ...
4 years, 3 months ago (2016-09-13 05:56:58 UTC) #32
dyaroshev
On 2016/09/13 05:56:58, Peter Kasting wrote: > I'm going to repeat what I said earlier ...
4 years, 3 months ago (2016-09-13 09:34:25 UTC) #33
nednguyen
On 2016/09/13 09:34:25, dyaroshev wrote: > On 2016/09/13 05:56:58, Peter Kasting wrote: > > I'm ...
4 years, 3 months ago (2016-09-14 17:10:42 UTC) #34
dyaroshev
On 2016/09/14 17:10:42, nednguyen wrote: > Does performance of suggestion depends on network condition? If ...
4 years, 3 months ago (2016-09-14 17:16:52 UTC) #35
Alexei Svitkine (slow)
On Mon, Sep 12, 2016 at 1:09 PM, <dyaroshev@yandex-team.ru> wrote: > > Thanks. As far ...
4 years, 3 months ago (2016-09-14 17:25:09 UTC) #36
dyaroshev
On 2016/09/14 17:25:09, Alexei Svitkine (very slow) wrote: > On Mon, Sep 12, 2016 at ...
4 years, 3 months ago (2016-09-14 17:37:38 UTC) #37
dyaroshev
What's the purpose of this CL? - There is a component HistoryQuickProvider (HQP) which is ...
4 years, 3 months ago (2016-09-15 18:15:23 UTC) #38
nduca
Doing a bit of a drive by because I was asked to offer a broad ...
4 years, 3 months ago (2016-09-15 23:31:55 UTC) #40
dyaroshev
Facinating reading! I'm sorry, it's almost 4am here, I'd have to reread when my eyes ...
4 years, 3 months ago (2016-09-16 01:18:27 UTC) #41
dyaroshev
About Patch Set 4. 1) Saving/loading profile (especially after @nduca comment) seems to be unnecessary. ...
4 years, 3 months ago (2016-09-16 17:44:52 UTC) #42
Peter Kasting
On 2016/09/16 17:44:52, dyaroshev wrote: > 5) I still do not know how to enable ...
4 years, 3 months ago (2016-09-16 18:58:48 UTC) #45
dyaroshev
On 2016/09/16 18:58:48, Peter Kasting wrote: > Take a look at the cc_perftests target ...
4 years, 3 months ago (2016-09-19 16:39:29 UTC) #46
dyaroshev
On 2016/09/19 16:39:29, dyaroshev wrote: I think I've managed to factor out a reasonable solution, ...
4 years, 3 months ago (2016-09-20 18:02:59 UTC) #47
nduca
I am uncertain about when to use which perf unit testing framework. I think we ...
4 years, 3 months ago (2016-09-21 00:41:00 UTC) #48
dyaroshev
On 2016/09/21 00:41:00, nduca wrote: > I am uncertain about when to use which perf ...
4 years, 3 months ago (2016-09-21 12:08:29 UTC) #49
dyaroshev
https://codereview.chromium.org/2300323003/diff/80001/components/test/components_test_suit.h File components/test/components_test_suit.h (right): https://codereview.chromium.org/2300323003/diff/80001/components/test/components_test_suit.h#newcode5 components/test/components_test_suit.h:5: #ifndef COMPONENTS_TEST_COMPONENTS_TEST_SUIT_H_ On 2016/09/21 00:41:00, nduca wrote: > nit: ...
4 years, 3 months ago (2016-09-21 12:10:56 UTC) #50
dyaroshev
On 2016/09/21 12:08:29, dyaroshev wrote: > On 2016/09/21 00:41:00, nduca wrote: > > - some ...
4 years, 3 months ago (2016-09-21 16:13:46 UTC) #52
Peter Kasting
On 2016/09/21 12:08:29, dyaroshev wrote: > On 2016/09/21 00:41:00, nduca wrote: > > And by ...
4 years, 3 months ago (2016-09-21 17:35:17 UTC) #53
nduca
> I've asked smth like this in https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/mV-Wp0i5Iek Great! When we know more from that ...
4 years, 3 months ago (2016-09-21 23:42:06 UTC) #54
Alexei Svitkine (slow)
I'm just curious what the status of this is? It would be a shame to ...
4 years, 2 months ago (2016-10-21 18:43:55 UTC) #57
Peter Kasting
On 2016/10/21 18:43:55, Alexei Svitkine (slow) wrote: > I'm just curious what the status of ...
4 years, 2 months ago (2016-10-21 18:51:06 UTC) #58
Alexei Svitkine (slow)
Ah great - I missed the other CL - thanks for pointing me to it. ...
4 years, 2 months ago (2016-10-21 19:00:27 UTC) #59
dyaroshev
On 2016/10/21 19:00:27, Alexei Svitkine (slow) wrote: > Ah great - I missed the other ...
4 years, 1 month ago (2016-10-24 16:35:29 UTC) #60
dyaroshev
Nits to be fixed with next patch. https://codereview.chromium.org/2300323003/diff/100001/components/omnibox/browser/BUILD.gn File components/omnibox/browser/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/omnibox/browser/BUILD.gn#newcode190 components/omnibox/browser/BUILD.gn:190: "//base/test:test_support", Remove ...
4 years, 1 month ago (2016-10-24 17:07:08 UTC) #64
Peter Kasting
https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn#newcode465 components/BUILD.gn:465: "omnibox/browser/history_quick_provider_performance_unittest.cc", Nit: For cleanliness, it may make sense to ...
4 years, 1 month ago (2016-10-24 22:28:29 UTC) #65
dyaroshev
https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn#newcode465 components/BUILD.gn:465: "omnibox/browser/history_quick_provider_performance_unittest.cc", On 2016/10/24 22:28:28, Peter Kasting wrote: > Nit: ...
4 years, 1 month ago (2016-10-25 18:11:35 UTC) #66
Peter Kasting
https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn#newcode465 components/BUILD.gn:465: "omnibox/browser/history_quick_provider_performance_unittest.cc", On 2016/10/25 18:11:34, dyaroshev wrote: > On 2016/10/24 ...
4 years, 1 month ago (2016-10-25 18:27:56 UTC) #67
dyaroshev
https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn#newcode465 components/BUILD.gn:465: "omnibox/browser/history_quick_provider_performance_unittest.cc", On 2016/10/25 18:27:56, Peter Kasting wrote: > On ...
4 years, 1 month ago (2016-10-25 23:06:46 UTC) #69
rohitrao (ping after 24h)
https://codereview.chromium.org/2300323003/diff/100001/components/omnibox/browser/fake_autocomplete_provider_client.cc File components/omnibox/browser/fake_autocomplete_provider_client.cc (right): https://codereview.chromium.org/2300323003/diff/100001/components/omnibox/browser/fake_autocomplete_provider_client.cc#newcode16 components/omnibox/browser/fake_autocomplete_provider_client.cc:16: : pool_owner_(3, "Background Pool") { On 2016/10/25 23:06:46, dyaroshev ...
4 years, 1 month ago (2016-10-25 23:12:24 UTC) #70
dyaroshev
Do with the next patch https://codereview.chromium.org/2300323003/diff/140001/components/history/core/browser/history_database.h File components/history/core/browser/history_database.h (right): https://codereview.chromium.org/2300323003/diff/140001/components/history/core/browser/history_database.h#newcode172 components/history/core/browser/history_database.h:172: friend class HQPPerfTestOnePopularURL; Friendship ...
4 years, 1 month ago (2016-10-26 22:16:04 UTC) #71
dyaroshev
I think, I've cleaned the vast majority of issues up (everything, except gn where I ...
4 years, 1 month ago (2016-10-26 22:29:13 UTC) #72
brettw
https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2300323003/diff/100001/components/BUILD.gn#newcode465 components/BUILD.gn:465: "omnibox/browser/history_quick_provider_performance_unittest.cc", This could go either way. If we're going ...
4 years, 1 month ago (2016-10-27 00:11:54 UTC) #73
Peter Kasting
I don't see anything major still outstanding. LGTM when existing issues are all resolved. https://codereview.chromium.org/2300323003/diff/100001/components/omnibox/browser/history_quick_provider_performance_unittest.cc ...
4 years, 1 month ago (2016-10-27 00:59:39 UTC) #74
Peter Kasting
(BTW, don't actually submit this until I get the go-ahead on using <random>... still arguing ...
4 years, 1 month ago (2016-10-27 01:04:25 UTC) #75
dyaroshev
@pkasting - can you please point me to the discussion about <random>? Other than that, ...
4 years, 1 month ago (2016-10-27 06:09:21 UTC) #76
jochen (gone - plz use gerrit)
can you please replace HQP with HistoryQuickProvider in the CL description? The CL overall looks ...
4 years, 1 month ago (2016-10-27 07:44:30 UTC) #84
Peter Kasting
The <random> discussion is at https://groups.google.com/a/chromium.org/forum/#!topic/cxx/MLgK9vCE4BA . I'm just waiting to see what the style ...
4 years, 1 month ago (2016-10-27 09:00:56 UTC) #85
dyaroshev
@pkasting - I fixed what you've pointed out. There is more to be done, but ...
4 years, 1 month ago (2016-10-27 13:04:23 UTC) #89
dyaroshev
On 2016/10/27 07:44:30, jochen wrote: > can you please replace HQP with HistoryQuickProvider in the ...
4 years, 1 month ago (2016-10-27 14:11:32 UTC) #94
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-10-27 14:13:04 UTC) #95
dyaroshev
@nduca, @pkasting We might have a problem. I redid measurements of "flat_sets/flat_maps without optimising insertions ...
4 years, 1 month ago (2016-10-28 08:25:18 UTC) #96
Peter Kasting
On 2016/10/28 08:25:18, dyaroshev wrote: > @nduca, @pkasting > > We might have a problem. ...
4 years, 1 month ago (2016-10-28 08:51:26 UTC) #97
dyaroshev
On 2016/10/28 08:51:26, Peter Kasting wrote: > On 2016/10/28 08:25:18, dyaroshev wrote: > > @nduca, ...
4 years, 1 month ago (2016-10-28 09:50:42 UTC) #98
Peter Kasting
On 2016/10/28 09:50:42, dyaroshev wrote: > On 2016/10/28 08:51:26, Peter Kasting wrote: > > On ...
4 years, 1 month ago (2016-10-28 10:01:10 UTC) #99
dyaroshev
On 2016/10/28 10:01:10, Peter Kasting wrote: > That would explain the spiky outliers. I am ...
4 years, 1 month ago (2016-10-28 11:55:07 UTC) #100
Mark P
I'm not sure what you want to be performance testing here but would it make ...
4 years, 1 month ago (2016-10-28 16:57:56 UTC) #102
dyaroshev
On 2016/10/28 16:57:56, Mark P (sick) wrote: > I'm not sure what you want to ...
4 years, 1 month ago (2016-10-28 17:36:08 UTC) #103
dyaroshev
On 2016/10/28 16:57:56, Mark P (sick) wrote: > I'm not sure what you want to ...
4 years, 1 month ago (2016-10-28 17:36:16 UTC) #104
Peter Kasting
I'm going to see if I can get the <random> issue resolved today. In the ...
4 years, 1 month ago (2016-10-31 17:26:00 UTC) #105
dyaroshev
On 2016/10/31 17:26:00, Peter Kasting wrote: > I'm going to see if I can get ...
4 years, 1 month ago (2016-10-31 21:57:23 UTC) #106
dyaroshev
On 2016/10/31 21:57:23, dyaroshev wrote: > On 2016/10/31 17:26:00, Peter Kasting wrote: > > I'm ...
4 years, 1 month ago (2016-11-03 23:19:30 UTC) #107
Peter Kasting
On 2016/11/03 23:19:30, dyaroshev wrote: > On 2016/10/31 21:57:23, dyaroshev wrote: > > On 2016/10/31 ...
4 years, 1 month ago (2016-11-03 23:43:59 UTC) #108
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2300323003/200001
4 years, 1 month ago (2016-11-04 07:02:18 UTC) #111
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-11-04 08:51:33 UTC) #113
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 08:55:55 UTC) #115
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7d7c15ee9c7481355f4b42315d386b0eccc9fd75
Cr-Commit-Position: refs/heads/master@{#429835}

Powered by Google App Engine
This is Rietveld 408576698