test to measure color performance
This commit is contained in:
parent
f1bf98cd52
commit
840deaccc1
10
tests/test_color.py
Normal file
10
tests/test_color.py
Normal file
@ -0,0 +1,10 @@
|
||||
import testenv
|
||||
from papers import color
|
||||
|
||||
def perf_color():
|
||||
s = str(range(1000))
|
||||
for _ in range(5000000):
|
||||
color.dye(s, color.red)
|
||||
|
||||
if __name__ == '__main__':
|
||||
perf_color()
|
3
tests/testenv.py
Normal file
3
tests/testenv.py
Normal file
@ -0,0 +1,3 @@
|
||||
# Adjusting paths.
|
||||
import os, sys
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../..')))
|
Loading…
x
Reference in New Issue
Block a user