cmd/go: add testdata/timeoutbench_test.go
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 1 Mar 2017 18:41:15 +0000 (18:41 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 1 Mar 2017 18:41:15 +0000 (18:41 +0000)
This file was accidentally omitted from the update to the final Go 1.8.

From-SVN: r245814

libgo/go/cmd/go/testdata/timeoutbench_test.go [new file with mode: 0644]

diff --git a/libgo/go/cmd/go/testdata/timeoutbench_test.go b/libgo/go/cmd/go/testdata/timeoutbench_test.go
new file mode 100644 (file)
index 0000000..57a8888
--- /dev/null
@@ -0,0 +1,10 @@
+package timeoutbench_test
+
+import (
+       "testing"
+       "time"
+)
+
+func BenchmarkSleep1s(b *testing.B) {
+       time.Sleep(1 * time.Second)
+}