Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python timeit commandline example

$ python3 -m timeit '"-".join(str(n) for n in range(100))'
10000 loops, best of 5: 30.2 usec per loop
$ python3 -m timeit '"-".join([str(n) for n in range(100)])'
10000 loops, best of 5: 27.5 usec per loop
$ python3 -m timeit '"-".join(map(str, range(100)))'
10000 loops, best of 5: 23.2 usec per loop
Comment

PREVIOUS NEXT
Code Example
Python :: discord identity python html avatar 
Python :: how to add the column to the beginning of dataframe 
Python :: list existing virtual envs 
Python :: install qt python 
Python :: function as parameter tpye hinting python 
Python :: opencv flip image 
Python :: pandas lambda if else 
Python :: ndarray to list 
Python :: convert all values in array into float 
Python :: install python homebrew 
Python :: calculator in one line in python 
Python :: python iterate object 
Python :: python float to fraction 
Python :: meme command discord.py 
Python :: check the input format of a date python 
Python :: pip install contractions 
Python :: log transform pandas dataframe 
Python :: Square of numbers in non-decreasing order 
Python :: how to say someting in python 
Python :: how to increase and decrease volume of speakers using python 
Python :: python truncate string to length 
Python :: start jupyter notebook with python 3.7 
Python :: SSL handshake failed: localhost:27017 
Python :: par o inpar python 
Python :: python is not writing whole line 
Python :: python create environment variable 
Python :: How to decrease length of entry in tkinter 
Python :: how to return only fractional part in python 
Python :: python code for system of odes 
Python :: list(set()) python remove order 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =