Skip to content

Commit 97b960d

Browse files
committed
Update benchmark docstrings with notes about generating data
1 parent 693c655 commit 97b960d

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

‎tests/benchmark_core.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
"Benchmark diskcache.Core."
1+
"""Benchmark diskcache.Cache
2+
3+
$ export PYTHONPATH=/Users/grantj/repos/python-diskcache
4+
$ python tests/benchmark_core.py -p 1 > tests/timings_core_p1.txt
5+
$ python tests/benchmark_core.py -p 8 > tests/timings_core_p8.txt
6+
7+
"""
28

39
from __future__ importprint_function
410

‎tests/benchmark_djangocache.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
"Benchmark diskcache.DjangoCache"
1+
"""Benchmark diskcache.DjangoCache
2+
3+
$ export PYTHONPATH=/Users/grantj/repos/python-diskcache
4+
$ python tests/benchmark_djangocache.py > tests/timings_djangocache.txt
5+
6+
7+
"""
28

39
from __future__ importprint_function
410

‎tests/plot.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"Plot benchmark docs."
1+
"""Plot Benchmarks for docs
2+
3+
$ export PYTHONPATH=/Users/grantj/repos/python-diskcache
4+
$ python tests/plot.py --show tests/timings_core_p1.txt
5+
6+
"""
27

38
importargparse
49
importcollectionsasco

0 commit comments

Comments
(0)