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.31
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 /
go /
printer /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
example_test.go
1.78
KB
-rw-r--r--
nodes.go
47.03
KB
-rw-r--r--
performance_test.go
1.18
KB
-rw-r--r--
printer.go
38.75
KB
-rw-r--r--
printer_test.go
18.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : performance_test.go
// Copyright 2009 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. // This file implements a simple printer performance benchmark: // go test -bench=BenchmarkPrint package printer import ( "bytes" "go/ast" "go/parser" "io" "io/ioutil" "log" "testing" ) var testfile *ast.File func testprint(out io.Writer, file *ast.File) { if err := (&Config{TabIndent | UseSpaces, 8, 0}).Fprint(out, fset, file); err != nil { log.Fatalf("print error: %s", err) } } // cannot initialize in init because (printer) Fprint launches goroutines. func initialize() { const filename = "testdata/parser.go" src, err := ioutil.ReadFile(filename) if err != nil { log.Fatalf("%s", err) } file, err := parser.ParseFile(fset, filename, src, parser.ParseComments) if err != nil { log.Fatalf("%s", err) } var buf bytes.Buffer testprint(&buf, file) if !bytes.Equal(buf.Bytes(), src) { log.Fatalf("print error: %s not idempotent", filename) } testfile = file } func BenchmarkPrint(b *testing.B) { if testfile == nil { initialize() } for i := 0; i < b.N; i++ { testprint(ioutil.Discard, testfile) } }
Close