User Details
- User Since
- Apr 22 2019, 8:21 AM (356 w, 2 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Dan1wang [ Global Accounts ]
Jun 19 2019
Jun 17 2019
Benchmark:
┌─────────────────────────────────────┬───────────┬────────────┬──────────────┐ │ Test │ Inp. size │ Avg. time │ Avg. speed │ ├─────────────────────────────────────┴───────────┴────────────┴──────────────┤ │ JSON │ ├─────────────────────────────────────┬───────────┬────────────┬──────────────┤ │ Example 1 │ 0.69 kB │ 0.41 ms │ 1662.15 kB/s │ │ Example 2 │ 0.24 kB │ 0.08 ms │ 2934.98 kB/s │ │ Example 3 │ 0.59 kB │ 0.26 ms │ 2228.67 kB/s │ │ Example 4 │ 3.39 kB │ 0.83 ms │ 4103.64 kB/s │ │ Example 5 │ 0.85 kB │ 0.21 ms │ 4104.92 kB/s │ ├─────────────────────────────────────┼───────────┼────────────┼──────────────┤ │ JSON total │ 5.75 kB │ 1.79 ms │ 3209.71 kB/s │ ├─────────────────────────────────────┴───────────┴────────────┴──────────────┤ │ CSS │ ├─────────────────────────────────────┬───────────┬────────────┬──────────────┤ │ Blueprint - reset.css (source) │ 1.20 kB │ 2.77 ms │ 434.37 kB/s │ │ Blueprint - typography.css (source) │ 3.11 kB │ 5.01 ms │ 620.82 kB/s │ │ Blueprint - forms.css (source) │ 1.79 kB │ 1.52 ms │ 1177.71 kB/s │ │ Blueprint - grid.css (source) │ 9.54 kB │ 6.83 ms │ 1395.35 kB/s │ │ Blueprint - print.css (source) │ 1.78 kB │ 0.88 ms │ 2032.76 kB/s │ │ Blueprint - screen.css (minified) │ 11.83 kB │ 7.86 ms │ 1505.23 kB/s │ │ Blueprint - print.css (minified) │ 1.25 kB │ 0.51 ms │ 2448.11 kB/s │ │ 960.gs - reset.css (source) │ 0.99 kB │ 0.46 ms │ 2145.21 kB/s │ │ 960.gs - text.css (source) │ 0.97 kB │ 0.34 ms │ 2857.01 kB/s │ │ 960.gs - 960.css (source) │ 8.94 kB │ 2.99 ms │ 2986.95 kB/s │ │ 960.gs - 960_24_col.css (source) │ 7.48 kB │ 2.56 ms │ 2924.73 kB/s │ │ 960.gs - reset.css (minified) │ 0.63 kB │ 0.40 ms │ 1597.76 kB/s │ │ 960.gs - text.css (minified) │ 0.41 kB │ 0.28 ms │ 1448.59 kB/s │ │ 960.gs - 960.css (minified) │ 5.21 kB │ 2.42 ms │ 2150.77 kB/s │ │ 960.gs - 960_24_col.css (minified) │ 4.94 kB │ 2.19 ms │ 2256.68 kB/s │ ├─────────────────────────────────────┼───────────┼────────────┼──────────────┤ │ CSS total │ 60.08 kB │ 37.02 ms │ 1622.81 kB/s │ ├─────────────────────────────────────┼───────────┼────────────┼──────────────┤ │ Total │ 65.83 kB │ 38.81 ms │ 1696.11 kB/s │ └─────────────────────────────────────┴───────────┴────────────┴──────────────┘
Jun 14 2019
Haven't done any benchmark test. But the compiled parser.js code got a hug size reduction (from 197kB to 146kB)
Jun 11 2019
Below is benchmark results (using a-b benchmark of https://gerrit.wikimedia.org/r/#/c/wikipeg/+/516457/ ):
The PHP test seems to run, but at the end, I got the following message:
Jun 10 2019
Jun 5 2019
May 24 2019
May 22 2019
May 21 2019
My reaction is... (holding my breadth) "why are you asking this?"
May 20 2019
Tim, it looks the folks over at PEG.js already implemented a return-this feature (using @!)
May 16 2019
I was think about this too.
May 15 2019
Hmm... got "Maximum call stack size exceeded" error with the following:
~?("(") ~?__ expression:Expression ~?__ ~?")" { return expression; }Expected results:
May 14 2019
Please ignore the first patch. The code was missing a ranges = newRanges; line after merger of ranges.
May 10 2019
May 9 2019
Well, WikiPEG and Parsoid may be used in environment where the compiled code is not cached.
Compiled result of parsoid\lib\wt2html\pegTokenizer.pegjs
Compiled result of wikipeg\tests\common\TestFile.peg
May 8 2019
The rule doesn't make sense.
May 6 2019
May 2 2019
sorry, literal:(url_protocol urladdr) / should be literal:(url_protocol (urladdr / "") extlink_preprocessor_text<extlink>) /
I see.
