mirror of
https://github.com/golang/go
synced 2024-11-22 14:44:50 -07:00
a6d8b483b6
Suggested by Sanjay Ghemawat. 5-20% faster depending on the benchmark. Add tree2 garbage benchmark. Update other garbage benchmarks to build again. R=golang-dev, r, adg CC=golang-dev https://golang.org/cl/5530074
29 lines
477 B
Makefile
29 lines
477 B
Makefile
# Copyright 2010 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
include ../../../src/Make.inc
|
|
|
|
ALL=\
|
|
parser\
|
|
peano\
|
|
tree\
|
|
tree2\
|
|
|
|
all: $(addsuffix .out, $(ALL))
|
|
|
|
%.$O: %.go stats.go
|
|
$(GC) $(GCFLAGS) $(GCIMPORTS) $*.go stats.go
|
|
|
|
%.out: %.$O
|
|
$(LD) -o $@ $*.$O
|
|
|
|
%.bench: %.out
|
|
time ./$*.out
|
|
|
|
bench: $(addsuffix .bench, $(ALL))
|
|
|
|
clean:
|
|
rm -f *.[$(OS)] $(addsuffix .out, $(ALL))
|
|
|