Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for 1000 (0.17 sec)

  1. src/bytes/buffer_test.go

    	tmp := make([]byte, 72)
    	for _, growLen := range []int{0, 100, 1000, 10000, 100000} {
    		for _, startLen := range []int{0, 100, 1000, 10000, 100000} {
    			xBytes := Repeat(x, startLen)
    
    			buf := NewBuffer(xBytes)
    			// If we read, this affects buf.off, which is good to test.
    			readBytes, _ := buf.Read(tmp)
    			yBytes := Repeat(y, growLen)
    			allocs := testing.AllocsPerRun(100, func() {
    				buf.Grow(growLen)
    				buf.Write(yBytes)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue18146.go

    		t.Skipf("skipping flaky test on %s; see golang.org/issue/18202", runtime.GOOS)
    	}
    
    	if runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" {
    		t.Skipf("skipping on %s", runtime.GOARCH)
    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    	// Tediously, RLIMIT_NPROC was left out of the syscall package,
    	// probably because it is not in POSIX.1, so we define it here.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	b1.WriteString(strings.Repeat("x", 1200))
    	b1.Flush()
    	if w1 != 1 {
    		t.Fatalf("flush 1200 'x's: got %d writes, want 1", w1)
    	}
    	b1.WriteString(strings.Repeat("x", 89))
    	if w1 != 1 {
    		t.Fatalf("write 1200 + 89 'x's: got %d writes, want 1", w1)
    	}
    	io.Copy(b1, onlyReader{strings.NewReader(strings.Repeat("x", 700))})
    	if w1 != 1 {
    		t.Fatalf("write 1200 + 789 'x's: got %d writes, want 1", w1)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.js

    					},
    
    					// func walltime() (sec int64, nsec int32)
    					"runtime.walltime": (sp) => {
    						sp >>>= 0;
    						const msec = (new Date).getTime();
    						setInt64(sp + 8, msec / 1000);
    						this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
    					},
    
    					// func scheduleTimeoutEvent(delay int64) int32
    					"runtime.scheduleTimeoutEvent": (sp) => {
    						sp >>>= 0;
    						const id = this._nextCallbackTimeoutID;
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  5. src/cmd/asm/internal/asm/operand_test.go

    	{"$0x02", "$2"},
    	{"$0x04", "$4"},
    	{"$0x3FE", "$1022"},
    	{"$0x7fffffe00000", "$140737486258176"},
    	{"$0xfffffffffffff001", "$-4095"},
    	{"$1", "$1"},
    	{"$1.0", "$(1.0)"},
    	{"$10", "$10"},
    	{"$1000", "$1000"},
    	{"$1000000", "$1000000"},
    	{"$1000000000", "$1000000000"},
    	{"$__tsan_func_enter(SB)", "$__tsan_func_enter(SB)"},
    	{"$main(SB)", "$main(SB)"},
    	{"$masks<>(SB)", "$masks<>(SB)"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    a <a href="#Run_time_panics">run-time panic</a> occurs.
    </p>
    
    <pre>
    s := make([]int, 10, 100)       // slice with len(s) == 10, cap(s) == 100
    s := make([]int, 1e3)           // slice with len(s) == cap(s) == 1000
    s := make([]int, 1&lt;&lt;63)         // illegal: len(s) is not representable by a value of type int
    s := make([]int, 10, 0)         // illegal: len(s) > cap(s)
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback.go

    func stack996()  { var buf [996]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1000() { var buf [1000]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1004() { var buf [1004]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1008() { var buf [1008]byte; use(buf[:]); C.callGoStackCheck() }
    func stack1012() { var buf [1012]byte; use(buf[:]); C.callGoStackCheck() }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/cgo_thread_lock.go

    	go func() {
    		// We need the G continue running,
    		// so the M has a chance to run this G.
    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    			t.Fatalf("cgo has not locked OS thread")
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  9. src/archive/zip/reader_test.go

    0000460 18 a6 83 1b e3 9f ad 79 fe fd 1b 8b f1 fc 41 6f
    0000470 d4 13 1f e3 b8 83 ba 64 92 e7 eb e4 77 05 8f ba
    0000480 fa 3b 00 00 ff ff 50 4b 07 08 a6 18 b1 91 5e 04
    0000490 00 00 e4 47 00 00 50 4b 01 02 14 00 14 00 08 00
    00004a0 08 00 00 00 00 00 a6 18 b1 91 5e 04 00 00 e4 47
    00004b0 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00
    00004c0 00 00 00 00 62 69 67 67 65 72 2e 7a 69 70 50 4b
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  10. src/archive/tar/strconv_test.go

    		in   int64
    		want string
    		ok   bool
    	}{
    		// Test base-8 (octal) encoded values.
    		{0, "0\x00", true},
    		{7, "7\x00", true},
    		{8, "\x80\x08", true},
    		{077, "77\x00", true},
    		{0100, "\x80\x00\x40", true},
    		{0, "0000000\x00", true},
    		{0123, "0000123\x00", true},
    		{07654321, "7654321\x00", true},
    		{07777777, "7777777\x00", true},
    		{010000000, "\x80\x00\x00\x00\x00\x20\x00\x00", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
Back to top