Skip to content

Commit

Permalink
Small changes to README and benchmark files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 17, 2015
1 parent 2fa5442 commit 1632a5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ documents.
Advantages of this library:

- **Portable.** The library and program are written in standard
C99 and have no external dependencies. It has been tested with
C99 and have no external dependencies. They have been tested with
MSVC, gcc, tcc, and clang.

- **Fast.** Performance is very good, on par with the fastest
Markdown processors: see the [benchmarks].
- **Fast.** cmark can render a Markdown version of *War and Peace* in
the blink of an eye (127 milliseconds on a ten year old laptop,
vs. 100-400 milliseconds for an eye blink). In our [benchmarks],
cmark is 10,000 times faster than the original `Markdown.pl`, and
on par with the very fastest available Markdown processors.

- **Accurate.** The library passes all CommonMark conformance tests.

Expand Down
11 changes: 6 additions & 5 deletions benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Benchmarks

Some benchmarks, run on an ancient Thinkpad running Intel Core 2 Duo at 2GHz.
Here are some benchmarks, run on an ancient Thinkpad running Intel
Core 2 Duo at 2GHz. The input text is a 11MB Markdown file built by
concatenating the Markdown sources of all the localizations of the
first edition of
[*Pro Git*](https://github.com/progit/progit/tree/master/en) by Scott
Chacon.

|Implementation | Time (sec)|
|-------------------|-----------:|
Expand All @@ -19,10 +24,6 @@ Some benchmarks, run on an ancient Thinkpad running Intel Core 2 Duo at 2GHz.

To run these benchmarks, use `make bench PROG=/path/to/program`.

The input text is a 11MB Markdown file built by concatenating the
Markdown sources of all the localizations of the first edition of
[*Pro Git*](https://github.com/progit/progit/tree/master/en) by Scott Chacon.

`time` is used to measure execution speed. The reported
time is the *difference* between the time to run the program
with the benchmark input and the time to run it with no input.
Expand Down

0 comments on commit 1632a5a

Please sign in to comment.