일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- service
- nginx-media-server
- Windows10
- ebpf
- android studio
- configmap
- 행정구역분류
- Java
- HLS
- aws cli
- Sysinternals
- RTMP
- Pod
- ffmpeg
- spring cloud config
- kubectl
- Flutter
- dart
- deployment
- VSCode
- macos
- Shell script
- golang
- wireshark
- Kubernetes
- namespace
- aws
- Android
- docker
- Python
Archives
- Today
- Total
목록timeit (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