Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.1
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
testing /
[ HOME SHELL ]
Name
Size
Permission
Action
internal
[ DIR ]
drwxr-xr-x
iotest
[ DIR ]
drwxr-xr-x
quick
[ DIR ]
drwxr-xr-x
allocs.go
1.36
KB
-rw-r--r--
allocs_test.go
825
B
-rw-r--r--
benchmark.go
22.34
KB
-rw-r--r--
benchmark_test.go
3.94
KB
-rw-r--r--
cover.go
3.26
KB
-rw-r--r--
example.go
2.5
KB
-rw-r--r--
export_test.go
207
B
-rw-r--r--
helper_test.go
1.63
KB
-rw-r--r--
helperfuncs_test.go
1.34
KB
-rw-r--r--
match.go
3.51
KB
-rw-r--r--
match_test.go
5.11
KB
-rw-r--r--
panic_test.go
6.04
KB
-rw-r--r--
run_example.go
1.21
KB
-rw-r--r--
run_example_js.go
1.68
KB
-rw-r--r--
sub_test.go
21.82
KB
-rw-r--r--
testing.go
47.33
KB
-rw-r--r--
testing_test.go
448
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : allocs.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package testing import ( "runtime" ) // AllocsPerRun returns the average number of allocations during calls to f. // Although the return value has type float64, it will always be an integral value. // // To compute the number of allocations, the function will first be run once as // a warm-up. The average number of allocations over the specified number of // runs will then be measured and returned. // // AllocsPerRun sets GOMAXPROCS to 1 during its measurement and will restore // it before returning. func AllocsPerRun(runs int, f func()) (avg float64) { defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1)) // Warm up the function f() // Measure the starting statistics var memstats runtime.MemStats runtime.ReadMemStats(&memstats) mallocs := 0 - memstats.Mallocs // Run the function the specified number of times for i := 0; i < runs; i++ { f() } // Read the final statistics runtime.ReadMemStats(&memstats) mallocs += memstats.Mallocs // Average the mallocs over the runs (not counting the warm-up). // We are forced to return a float64 because the API is silly, but do // the division as integers so we can ask if AllocsPerRun()==1 // instead of AllocsPerRun()<2. return float64(mallocs / uint64(runs)) }
Close