This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.5' | |
| services: | |
| gitlab: | |
| image: gitlab/gitlab-ce:latest | |
| hostname: localhost | |
| restart: unless-stopped | |
| environment: | |
| GITLAB_OMNIBUS_CONFIG: | | |
| gitlab_rails['gitlab_shell_ssh_port'] = 8822 | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| go test -run=. -bench=. -benchtime=5s -count 5 -benchmem -cpuprofile=cpu.out -memprofile=mem.out -trace=trace.out ./package | tee bench.txt | |
| go tool pprof -http :8080 cpu.out | |
| go tool pprof -http :8081 mem.out | |
| go tool trace trace.out | |
| go tool pprof $FILENAME.test cpu.out | |
| # (pprof) list <func name> | |
| # go get -u golang.org/x/perf/cmd/benchstat | |
| benchstat bench.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| /** | |
| * Простейшее приложение консольного ввода / вывода с обработкой некорректного ввода. | |
| * | |
| * Приложение запрашивает целое число входящее в область типа int и выводит его | |
| * Затем запрашивает снова | |
| * | |
| * Если введено не целое число то выводится ошибка. | |
| * Если введено цело число и оно не входит в пределы допустимых значений int то выводится ошибка. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 86937 isset | |
| 43159 echo | |
| 31697 empty | |
| 29252 substr | |
| 26146 count | |
| 24248 is_array | |
| 22572 strlen | |
| 19365 sprintf | |
| 18090 unset | |
| 16584 str_replace |