Changeset 84838c3
- Timestamp:
- May 10, 2016, 11:45:41 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 2871e2b
- Parents:
- f15b8cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_reading_speed.py
rf15b8cf r84838c3 110 110 def test_speed(function, filename): 111 111 times = [] 112 for iin range(10):112 for _ in range(10): 113 113 start = time.time() 114 114 try: … … 135 135 136 136 for f in test_functions: 137 test_speed(eval(f), filename) 137 # get actual function from globals 138 test_function = globals()[f] 139 test_speed(test_function, filename)
Note: See TracChangeset
for help on using the changeset viewer.