Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Functions
parsimonious.tests.benchmarks Namespace Reference

Functions

 test_not_really_json_parsing ()
 

Detailed Description

Benchmarks for Parsimonious

Run these with ``python parsimonious/tests/benchmarks.py``. They don't run during
normal test runs because they're not tests--they don't assert anything. Also,
they're a bit slow.

These differ from the ones in test_benchmarks in that these are meant to be
compared from revision to revision of Parsimonious to make sure we're not
getting slower. test_benchmarks simply makes sure our choices among
implementation alternatives remain valid.

Function Documentation

◆ test_not_really_json_parsing()

parsimonious.tests.benchmarks.test_not_really_json_parsing ( )
As a baseline for speed, parse some JSON.

I have no reason to believe that JSON is a particularly representative or
revealing grammar to test with. Also, this is a naive, unoptimized,
incorrect grammar, so don't use it as a basis for comparison with other
parsers. It's just meant to compare across versions of Parsimonious.