stripper = str.strip
print(timeit.timeit('map(stripper, "QVOD, Baidu Player".split(","))',
    'from __main__ import stripper', number=100000))
print(timeit.timeit(
    "[item.strip() for item in 'QVOD, Baidu Player'.split(',')]", number=100000
    ))
Splitting string and removing whitespace Python