MCPcopy Index your code

hub / github.com/geektutu/high-performance-go / functions

Functions135 in github.com/geektutu/high-performance-go

↓ 8 callersFunctionprintLenCap
(nums []int)
charpter-2/code/hpg-slice/slice_test.go:11
↓ 6 callersMethodAdd
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:12
↓ 6 callersFunctionbenchmark
(b *testing.B, rw RW, read, write int)
charpter-3/code/hpg-mutex/mutex_test.go:8
↓ 6 callersFunctionbenchmark
(b *testing.B, f func(int, string) string)
charpter-2/code/hpg-string-concat/concat_test.go:70
↓ 3 callersMethodWrite
()
charpter-3/code/hpg-mutex/mutex.go:9
↓ 3 callersFunctionread
(name string, c *sync.Cond)
charpter-3/code/hpg-sync-cond/main.go:11
↓ 2 callersMethodHas
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:7
↓ 2 callersFunctiongenerateItems
(n int)
charpter-2/code/hpg-range/range_test.go:127
↓ 2 callersFunctiongenerateWithCap
(n int)
charpter-2/code/hpg-range/range_test.go:56
↓ 2 callersFunctionrandomString
(n int)
charpter-2/code/hpg-string-concat/concat_test.go:13
↓ 2 callersFunctiontest
(t *testing.T, f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:48
↓ 2 callersFunctiontestLastChars
(t *testing.T, f func([]int) []int)
charpter-2/code/hpg-slice/slice_test.go:63
↓ 1 callersMethodClose
()
charpter-2/code/hpg-empty-struct/main.go:18
↓ 1 callersFunctionIncrease
()
charpter-4/code/hpg-escape-analysis/main_closure.go:5
↓ 1 callersMethodRead
()
charpter-3/code/hpg-mutex/mutex.go:10
↓ 1 callersFunctionReadConfig
()
charpter-3/code/hpg-sync-once/main.go:21
↓ 1 callersFunctioncreateDemo
(name string)
charpter-4/code/hpg-escape-analysis/main_normal.go:10
↓ 1 callersFunctioncreateDemo
(name string)
charpter-4/code/hpg-escape-analysis/main_pointer.go:10
↓ 1 callersFunctiondo
(taskCh chan int)
charpter-3/code/hpg-exit-goroutine/exit_test.go:10
↓ 1 callersFunctiondo2phases
(phase1, done chan bool)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:68
↓ 1 callersFunctiondoCheckClose
(taskCh chan int)
charpter-3/code/hpg-exit-goroutine/exit_test.go:35
↓ 1 callersFunctionfoo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice_return.go:5
↓ 1 callersFunctionfoo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice.go:5
↓ 1 callersFunctionfoo
(a [2]int)
charpter-a1/code/hpg-gotchas-slice-array/main_arr.go:5
↓ 1 callersFunctionfoo
(a *[2]int)
charpter-a1/code/hpg-gotchas-slice-array/main_arr_ptr.go:5
↓ 1 callersFunctionfoo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_slice.go:5
↓ 1 callersFunctionfoo
(a *[]int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice_ptr.go:5
↓ 1 callersFunctiongenerate
(n int)
charpter-4/code/hpg-escape-analysis/main_stack.go:22
↓ 1 callersFunctiongenerate8191
()
charpter-4/code/hpg-escape-analysis/main_stack.go:8
↓ 1 callersFunctiongenerate8192
()
charpter-4/code/hpg-escape-analysis/main_stack.go:15
↓ 1 callersFunctiongenerateWithCap
(n int)
charpter-2/code/hpg-slice/slice_test.go:47
↓ 1 callersFunctionmax
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxvar.go:7
↓ 1 callersFunctionmax
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxvarlocal.go:7
↓ 1 callersFunctionmax
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxconst.go:7
↓ 1 callersFunctionprintMem
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:56
↓ 1 callersFunctionreadConfig
()
charpter-2/code/hpg-reflect/main_json_env.go:17
↓ 1 callersFunctionsendTasks
()
charpter-3/code/hpg-exit-goroutine/exit_test.go:20
↓ 1 callersFunctionsendTasksCheckClose
()
charpter-3/code/hpg-exit-goroutine/exit_test.go:49
↓ 1 callersFunctionsquare
(arr *[3]int)
charpter-2/code/hpg-slice/array_test.go:22
↓ 1 callersFunctiontest
(demo *Demo)
charpter-4/code/hpg-escape-analysis/main_normal.go:16
↓ 1 callersFunctiontimeout
(f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:24
↓ 1 callersFunctiontimeoutFirstPhase
()
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:79
↓ 1 callersFunctiontimeoutWithBuffer
(f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:36
↓ 1 callersFunctionworker
(ch chan struct{})
charpter-2/code/hpg-empty-struct/main_chan.go:5
↓ 1 callersFunctionwrite
(name string, c *sync.Cond)
charpter-3/code/hpg-sync-cond/main.go:20
FunctionBenchmarkBuffer
(b *testing.B)
charpter-3/code/hpg-sync-pool/bufferpool_test.go:26
FunctionBenchmarkBufferConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:80
FunctionBenchmarkBufferWithPool
(b *testing.B)
charpter-3/code/hpg-sync-pool/bufferpool_test.go:17
FunctionBenchmarkBuilderConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:79
FunctionBenchmarkByteConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:81
FunctionBenchmarkEqual
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:33
FunctionBenchmarkEqualRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:34
FunctionBenchmarkForIntSlice
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:65
FunctionBenchmarkForPointer
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:135
FunctionBenchmarkForStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:93
FunctionBenchmarkNew
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:8
FunctionBenchmarkPlusConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:77
FunctionBenchmarkPreByteConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:82
FunctionBenchmarkRangeIndexStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:105
FunctionBenchmarkRangeIntSlice
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:77
FunctionBenchmarkRangePointer
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:147
FunctionBenchmarkRangeStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:116
FunctionBenchmarkReadMore
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:29
FunctionBenchmarkReadMoreRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:30
FunctionBenchmarkReflectNew
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:16
FunctionBenchmarkReflect_FieldByNameCacheSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:61
FunctionBenchmarkReflect_FieldByNameSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:49
FunctionBenchmarkReflect_FieldSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:37
FunctionBenchmarkSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:26
FunctionBenchmarkSprintfConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:78
FunctionBenchmarkUnmarshal
(b *testing.B)
charpter-3/code/hpg-sync-pool/structpool_test.go:28
FunctionBenchmarkUnmarshalWithPool
(b *testing.B)
charpter-3/code/hpg-sync-pool/structpool_test.go:35
FunctionBenchmarkWriteMore
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:31
FunctionBenchmarkWriteMoreRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:32
MethodDelete
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:16
MethodOpen
()
charpter-2/code/hpg-empty-struct/main.go:14
MethodRead
()
charpter-3/code/hpg-mutex/mutex.go:30
MethodRead
()
charpter-3/code/hpg-mutex/mutex.go:49
MethodSquare
Square calculates the square of num
charpter-4/code/hpg-reduce-size/main.go:16
FunctionTest2phasesTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:93
FunctionTestArrayAssign
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:8
FunctionTestArrayCopy
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:15
FunctionTestArrayPointer
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:28
FunctionTestBadTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:57
FunctionTestBufferTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:60
FunctionTestBuilderConcat
$ go test -bench="Concat$" -benchmem . BenchmarkPlusConcat-8 19 56289919 ns/op 530998079 B/op 10026 allocs/op Benc
charpter-2/code/hpg-string-concat/concat_test.go:92
FunctionTestDo
(t *testing.T)
charpter-3/code/hpg-exit-goroutine/exit_test.go:28
FunctionTestDoCheckClose
(t *testing.T)
charpter-3/code/hpg-exit-goroutine/exit_test.go:58
FunctionTestGoodTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:58
FunctionTestLastCharsByCopy
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:76
FunctionTestLastCharsBySlice
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:75
FunctionTestModifyForAndRange
(t *testing.T)
charpter-2/code/hpg-range/range_test.go:45
FunctionTestRange
(t *testing.T)
charpter-2/code/hpg-range/range_test.go:10
FunctionTestSlice
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:25
FunctionTestSliceLenAndCap
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:14
MethodWrite
()
charpter-3/code/hpg-mutex/mutex.go:23
MethodWrite
()
charpter-3/code/hpg-mutex/mutex.go:42
FunctionbufferConcat
(n int, s string)
charpter-2/code/hpg-string-concat/concat_test.go:46
FunctionbuilderConcat
(n int, str string)
charpter-2/code/hpg-string-concat/concat_test.go:37
FunctionbyteConcat
(n int, str string)
charpter-2/code/hpg-string-concat/concat_test.go:54
next →1–100 of 135, ranked by callers