1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:24:39 -07:00

misc/benchcmp: don't require "Benchmark" at beginning of line

Output is package_name.BenchmarkXXX.

R=rsc
CC=golang-dev
https://golang.org/cl/5440123
This commit is contained in:
Robert Griesemer 2011-12-07 10:30:08 -08:00
parent a2ba34d374
commit b955bbfbdb

View File

@ -17,7 +17,7 @@ BEGIN {
n = 0 n = 0
} }
$1 ~ /^Benchmark/ && $4 == "ns/op" { $1 ~ /Benchmark/ && $4 == "ns/op" {
if(old[$1]) { if(old[$1]) {
if(!saw[$1]++) { if(!saw[$1]++) {
name[n++] = $1 name[n++] = $1