Permalink
Browse files

Whoops, forgot the sleep() at the top of the go memtests.

Also, newer versions of go have a different API for os.Open().  Hmm.
  • Loading branch information...
apenwarr committed Oct 6, 2011
1 parent 197d7b4 commit d585f4b8285207c96d22bf44d7c6c99e5ac3fd38
Showing with 7 additions and 1 deletion.
  1. +1 −1 hello/go-hellotest.go
  2. +3 −0 memtests/go-memtest.go
  3. +3 −0 memtests/go-memtest2.go
View
@@ -3,7 +3,7 @@ package main
import "os"
func main() {
- f, _ := os.Open("hello.txt", os.O_RDONLY, 0)
+ f, _ := os.Open("hello.txt")
var buf [102400]byte
len, _ := f.Read(buf[:])
os.Stdout.Write(buf[:len])
View
@@ -1,9 +1,12 @@
package main
+import "time"
+
const INNER = 10000
const LOOP = 1*1000*1000
func main() {
+ time.Sleep(1e9)
var i int
var a *[INNER]byte
for i = 0; i < LOOP; i++ {
View
@@ -1,9 +1,12 @@
package main
+import "time"
+
const INNER = 10000
const LOOP = 1*1000*1000
func main() {
+ time.Sleep(1e9)
var i int
aa := new([1000][]byte)
for i = 0; i < LOOP; i++ {

0 comments on commit d585f4b

Please sign in to comment.