appendix:guidebook_authoring:benchmarks
This is an old revision of the document!
Guidebook Benchmarks
Standards
5 Is the Number
Present Results in Seconds
Make a Change -> Rerun All Tests
Make All Efforts to Only Test Your Target
Keep all test cases as simple as possible.
Consider your tests carefully, and make efforts to only test the desired language feature.
-
In all cases we stored the results of a read, but we did not maintain them between iterations.
E.g., We did not want to consider the cost of list
growth outside of stdin.readlines()
where storing an entire file is unavoidable.
-
Instead of the
time
builtin we opted for the standard Python3
timeit library to isolate only writes.
Some level of judgment on the part of the author at the time is necessary to ensure that these efforts are made correctly.
appendix/guidebook_authoring/benchmarks.1534369654.txt.gz · Last modified: 2018/08/15 16:47 by jguerin