a-b-street / osm2lanes

A common library and set of test cases for transforming OSM tags to lane specifications
https://a-b-street.github.io/osm2lanes/
Apache License 2.0
34 stars 2 forks source link

Add a test for #153 #170

Closed dabreegster closed 2 years ago

dabreegster commented 2 years ago

If enabled, we repro the panic

github-actions[bot] commented 2 years ago

Benchmark for 2d89a45

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | tests/224637155 | 4.5±0.01µs | 4.5±0.01µs | 0.00% | | tests/380103730 Japanese Expressway | 6.2±0.04µs | 6.2±0.04µs | 0.00% | | tests/389654080 | **6.9±0.01µs** | 7.0±0.05µs | **+1.45%** | | tests/49207928 cycleway:BACKWARD=lane | 5.8±0.01µs | 5.8±0.06µs | 0.00% | | tests/8591383 a bidirectional cycleway, oneway:bicycle | 6.3±0.06µs | 6.3±0.08µs | 0.00% | | tests/bus:lanes=designated\| | 5.2±0.01µs | **5.1±0.01µs** | **-1.92%** | | tests/busway=lane | 5.5±0.05µs | 5.5±0.03µs | 0.00% | | tests/cycleway=lane | **4.9±0.01µs** | 5.0±0.09µs | **+2.04%** | | tests/cycleway=opposite oneway=yes oneway:bicycle=no | **5.0±0.01µs** | 5.2±0.06µs | **+4.00%** | | tests/sidewalk:right=yes | 4.5±0.01µs | 4.5±0.01µs | 0.00% | | tests/sidewalk=both | 4.8±0.00µs | 4.8±0.01µs | 0.00% |
github-actions[bot] commented 2 years ago

Benchmark for 85935dd

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | tests/224637155 | 4.4±0.00µs | 4.4±0.02µs | 0.00% | | tests/380103730 Japanese Expressway | 6.0±0.01µs | 6.0±0.01µs | 0.00% | | tests/389654080 | 6.3±0.00µs | 6.3±0.01µs | 0.00% | | tests/49207928 cycleway:BACKWARD=lane | 5.5±0.01µs | 5.5±0.01µs | 0.00% | | tests/8591383 a bidirectional cycleway, oneway:bicycle | 6.1±0.01µs | **6.0±0.01µs** | **-1.64%** | | tests/bus:lanes=designated\| | 5.1±0.01µs | 5.1±0.01µs | 0.00% | | tests/busway=lane | 5.5±0.01µs | 5.5±0.01µs | 0.00% | | tests/cycleway=lane | 4.8±0.01µs | 4.8±0.01µs | 0.00% | | tests/cycleway=opposite oneway=yes oneway:bicycle=no | 4.6±0.01µs | **4.5±0.01µs** | **-2.17%** | | tests/sidewalk:right=yes | 4.5±0.01µs | 4.5±0.00µs | 0.00% | | tests/sidewalk=both | 4.7±0.01µs | 4.7±0.01µs | 0.00% |