File: README.md

package info (click to toggle)
python-markdown2 2.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,104 kB
  • sloc: python: 5,416; perl: 1,493; php: 865; makefile: 34
file content (33 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Test the perf of some Markdown implementations.

1. Generate some test cases:

        ./gen_perf_cases.py [limit]

   for example:

        ./gen_perf_cases.py 1000

   This created a bunch of (small) test .txt files in "cases". These are
   derived from a bunch of [Python Cookbook][] data. "limit" is a max number
   of "recipes" in the data set for which to generate cases.
   
   The test files are small and don't necessarily a lot of markup, so this
   may not really be a good *breadth* perf suite -- it *is* real data though.

2. Process the Markdown for each "cases/*.txt" with Markdown.pl, markdown.py
   and markdown2.py:

        ./perf.py


# TODO

- strip out the .text cases that markdown.py blows up on? (encoding problems)
- add some larger perf suites (perhaps those test case files that all
  Markdown implementations pass)
- add markdown.php timing



[Python Cookbook]: http://code.activestate.com/recipes/