summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+}