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

Issue 13855007: Add --threads to tests binary, to run non-GPU tests on multiple cores. (Closed)

Created:
7 years, 8 months ago by mtklein
Modified:
7 years, 8 months ago
Reviewers:
scroggo, borenet, djsollen, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add --threads to tests binary, to run non-GPU tests on multiple cores. On my quad-core laptop I can get about a 3x speedup: Debug, --threads 0 40.99s Debug, --threads 8 14.39s Release, --threads 0 8.24s Release, --threads 8 2.80s I also removed some unused Test.{h,cpp} APIs and refactored a little to make things thread-safer. BUG= Committed: http://code.google.com/p/skia/source/detail?r=8763

Patch Set 1 #

Patch Set 2 : Lint #

Patch Set 3 : set default to 8 #

Total comments: 8

Patch Set 4 : updates from scroggo's review #

Patch Set 5 : SkTScopedPtr -> SkAutoTDelete, and clean up merge conflicts with codereview.chromium.org/14002007 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -78 lines) Patch
M tests/GrContextFactoryTest.cpp View 1 chunk +9 lines, -7 lines 0 comments Download
M tests/Test.h View 1 2 3 4 7 chunks +7 lines, -23 lines 0 comments Download
M tests/Test.cpp View 1 2 3 3 chunks +39 lines, -28 lines 0 comments Download
M tests/skia_test.cpp View 1 2 3 4 5 chunks +56 lines, -20 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
mtklein
7 years, 8 months ago (2013-04-17 14:14:42 UTC) #1
borenet
This LGTM but adding more reviewers who might be more familiar with this code.
7 years, 8 months ago (2013-04-17 16:23:48 UTC) #2
scroggo
https://codereview.chromium.org/13855007/diff/8001/tests/Test.cpp File tests/Test.cpp (right): https://codereview.chromium.org/13855007/diff/8001/tests/Test.cpp#newcode82 tests/Test.cpp:82: this->onRun(&local); Does anyone depend on the ordering between onRun ...
7 years, 8 months ago (2013-04-17 17:34:52 UTC) #3
mtklein
Please take another look? https://codereview.chromium.org/13855007/diff/8001/tests/Test.cpp File tests/Test.cpp (right): https://codereview.chromium.org/13855007/diff/8001/tests/Test.cpp#newcode82 tests/Test.cpp:82: this->onRun(&local); On 2013/04/17 17:34:52, scroggo ...
7 years, 8 months ago (2013-04-17 18:13:59 UTC) #4
scroggo
On 2013/04/17 18:13:59, mtklein wrote: > Please take another look? > > https://codereview.chromium.org/13855007/diff/8001/tests/Test.cpp > File ...
7 years, 8 months ago (2013-04-17 18:20:28 UTC) #5
reed1
I bow to the pressure of the mob
7 years, 8 months ago (2013-04-18 19:39:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-18 19:42:22 UTC) #7
commit-bot: I haz the power
Retried try job too often on Skia_MacMiniLion_Float_Compile_Release_32_Trybot for step(s) BuildBench, BuildGM, BuildMost, BuildSkiaBaseLibs, BuildTests, BuildTools ...
7 years, 8 months ago (2013-04-18 20:15:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-18 21:44:41 UTC) #9
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/d92c0660-15e5-47a9-890b-4453b135b66c': authorization ...
7 years, 8 months ago (2013-04-19 01:22:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 02:01:10 UTC) #11
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/13df1b98-5c03-482c-8482-def1858207ef': authorization ...
7 years, 8 months ago (2013-04-19 02:01:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 02:06:46 UTC) #13
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/0eef41de-e60f-4042-a72f-5dbbce3cdaa2': authorization ...
7 years, 8 months ago (2013-04-19 02:07:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 02:11:45 UTC) #15
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/91a545c1-a8cc-4aff-a677-25ddb55943b7': authorization ...
7 years, 8 months ago (2013-04-19 02:11:58 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 02:14:22 UTC) #17
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/b744bcdb-99b0-4c68-9d9a-691d395f731b': authorization ...
7 years, 8 months ago (2013-04-19 02:14:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 02:19:59 UTC) #19
commit-bot: I haz the power
Failed to apply the patch. svn: Commit failed (details follow): svn: MKACTIVITY of '/svn/!svn/act/f8fa73bb-6962-49db-a77a-24b92ff0fb92': authorization ...
7 years, 8 months ago (2013-04-19 02:20:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/13855007/21001
7 years, 8 months ago (2013-04-19 13:24:11 UTC) #21
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 13:24:30 UTC) #22
Message was sent while issue was closed.
Change committed as 8763

Powered by Google App Engine
This is Rietveld 408576698