summaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-01 18:41:15 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-01 18:41:15 +0000
commit69ab0353075facca774721cc22337217ba825adf (patch)
tree9df3c3fd12fad85776c5027f9686190ab2d070a0 /libgo/go
parenta8c6aa9cc8bfbbac13407e71eb990f8f3324e3ad (diff)
cmd/go: add testdata/timeoutbench_test.go
This file was accidentally omitted from the update to the final Go 1.8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245814 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/cmd/go/testdata/timeoutbench_test.go10
1 files changed, 10 insertions, 0 deletions
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 000000000000..57a88882996b
--- /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)
+}