Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
cbd3b2e8
Commit
cbd3b2e8
authored
Jan 12, 2010
by
Adam Langley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'bench' target to makefiles.
R=rsc, agl, r CC=golang-dev
https://golang.org/cl/188043
parent
3daf133f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Make.pkg
src/Make.pkg
+3
-0
Makefile
src/pkg/Makefile
+12
-0
No files found.
src/Make.pkg
View file @
cbd3b2e8
...
...
@@ -53,6 +53,9 @@ clean:
test:
$(QUOTED_GOBIN)/gotest
bench:
$(QUOTED_GOBIN)/gotest -benchmarks=. -match="Do not run tests"
nuke: clean
rm -f $(pkgdir)/$(TARG).a
...
...
src/pkg/Makefile
View file @
cbd3b2e8
...
...
@@ -134,13 +134,20 @@ NOTEST=\
testing/iotest
\
xgb
\
NOBENCH
=
\
container/vector
\
TEST
=
\
$
(
filter-out
$(NOTEST)
,
$(DIRS)
)
BENCH
=
\
$
(
filter-out
$(NOBENCH)
,
$(TEST)
)
clean.dirs
:
$(addsuffix .clean
,
$(DIRS))
install.dirs
:
$(addsuffix .install
,
$(DIRS))
nuke.dirs
:
$(addsuffix .nuke
,
$(DIRS))
test.dirs
:
$(addsuffix .test
,
$(TEST))
bench.dirs
:
$(addsuffix .bench
,
$(BENCH))
%.clean
:
+cd
$*
&&
$(QUOTED_GOBIN)
/gomake clean
...
...
@@ -154,12 +161,17 @@ test.dirs: $(addsuffix .test, $(TEST))
%.test
:
+cd
$*
&&
$(QUOTED_GOBIN)
/gomake
test
%.bench
:
+cd
$*
&&
$(QUOTED_GOBIN)
/gomake bench
clean
:
clean.dirs
install
:
install.dirs
test
:
test.dirs
bench
:
bench.dirs
nuke
:
nuke.dirs
rm
-rf
"
$(GOROOT)
"
/pkg/
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment