diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-01 18:41:15 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-01 18:41:15 +0000 |
commit | 69ab0353075facca774721cc22337217ba825adf (patch) | |
tree | 9df3c3fd12fad85776c5027f9686190ab2d070a0 /libgo | |
parent | a8c6aa9cc8bfbbac13407e71eb990f8f3324e3ad (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')
-rw-r--r-- | libgo/go/cmd/go/testdata/timeoutbench_test.go | 10 |
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 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) +} |