일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Java
- wireshark
- Pod
- ebpf
- Kubernetes
- spring cloud config
- VSCode
- Python
- ffmpeg
- Shell script
- RTMP
- kubectl
- golang
- aws
- HLS
- android studio
- 행정구역분류
- service
- Android
- macos
- Sysinternals
- deployment
- Flutter
- configmap
- dart
- Windows10
- nginx-media-server
- namespace
- docker
- aws cli
Archives
- Today
- Total
목록실행시간측정 (1)
woonizzooni
python 코드 실행 시간 측정
실행 시간 측정 timeit모듈 이용. https://docs.python.org/2/library/timeit.html https://docs.python.org/3/library/timeit.html ex) #!/usr/bin/python3 # -*- coding: utf-8 -*- import timeit def func_a(n): .... def func_b(n): .... def func_c(n): .... def func_d(n): .... print("func_a(4000) : ", timeit.timeit('func_a(4000)', "from __main__ import func_a", number=1)) print("func_b(4000) : ", timeit.timeit('func_b..
Programming/Python
2019. 7. 25. 07:47