From: Ian Lance Taylor Date: Wed, 1 Mar 2017 18:41:15 +0000 (+0000) Subject: cmd/go: add testdata/timeoutbench_test.go X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c85ac396f106116a20463313a2c4646a7de61433;p=gcc.git cmd/go: add testdata/timeoutbench_test.go This file was accidentally omitted from the update to the final Go 1.8. From-SVN: r245814 --- diff --git a/libgo/go/cmd/go/testdata/timeoutbench_test.go b/libgo/go/cmd/go/testdata/timeoutbench_test.go new file mode 100644 index 00000000000..57a88882996 --- /dev/null +++ b/libgo/go/cmd/go/testdata/timeoutbench_test.go @@ -0,0 +1,10 @@ +package timeoutbench_test + +import ( + "testing" + "time" +) + +func BenchmarkSleep1s(b *testing.B) { + time.Sleep(1 * time.Second) +}