瀏覽代碼

README even better?

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan 6 年之前
父節點
當前提交
e4fbfc9bcc
共有 3 個檔案被更改,包括 7 行新增6 行删除
  1. +7
    -6
      README.md
  2. 二進制
      docs/comparison_memory.png
  3. 二進制
      docs/comparison_runtime.png

+ 7
- 6
README.md 查看文件

@@ -86,15 +86,16 @@ See the full list of [features in the wiki](https://github.com/erezsh/lark/wiki/

#### Performance comparison

| Code | CPython Time | PyPy Time | CPython Mem | PyPy Mem
|:-----|:-------------|:------------|:----------|:---------
| **Lark - LALR(1)** | 4.7s | 1.2s | 70M | 134M |
| PyParsing | 32s | 3.5s | 443M | 225M |
| funcparserlib | 8.5s | 1.3s | 483M | 293M |
| Parsimonious | | 5.7s | | 1545M |
Lower is better!
![Run-time Comparison](docs/comparison_runtime.png)
![Memory Usage Comparison](docs/comparison_memory.png)

Check out the [JSON tutorial](/docs/json_tutorial.md#conclusion) for more details on how the comparison was made.

*Note: I really wanted to add PLY to the benchmark, but I couldn't find a working JSON parser anywhere written in PLY. If anyone can point me to one that actually works, I would be happy to add it!*

#### Feature comparison



二進制
docs/comparison_memory.png 查看文件

Before After
Width: 649  |  Height: 400  |  Size: 24 KiB

二進制
docs/comparison_runtime.png 查看文件

Before After
Width: 651  |  Height: 399  |  Size: 20 KiB

Loading…
取消
儲存