osrm-backend/features/stress/launch.feature

63 lines
1.6 KiB
Gherkin
Raw Normal View History

2012-12-16 07:36:47 -05:00
@stress
2012-12-16 07:39:28 -05:00
Feature: Stress testing
2012-12-16 07:36:47 -05:00
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
2012-12-16 07:36:47 -05:00
2013-08-29 13:29:13 -04:00
Scenario: Stress - 10km star, request 1 route
#osrm-routed hangs very often
Given a grid size of 10000 meters
Given the node map
2016-09-30 03:33:08 -04:00
"""
h a b
g x c
f e d
"""
2012-12-16 07:36:47 -05:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway |
| xa | primary |
| xb | primary |
| xc | primary |
| xd | primary |
| xe | primary |
| xf | primary |
| xg | primary |
| xh | primary |
2013-08-29 13:29:13 -04:00
When I route 100 times I should get
| from | to | route |
| x | h | xh |
2013-08-29 13:29:13 -04:00
Scenario: Stress - 10km star, request 8 routes
#osrm-routed hangs sometimes
Given a grid size of 10000 meters
Given the node map
2016-09-30 03:33:08 -04:00
"""
h a b
g x c
f e d
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway |
| xa | primary |
| xb | primary |
| xc | primary |
| xd | primary |
| xe | primary |
| xf | primary |
| xg | primary |
| xh | primary |
When I route 100 times I should get
| from | to | route |
| x | a | xa |
| x | b | xb |
| x | c | xc |
| x | d | xd |
| x | e | xe |
| x | f | xf |
| x | g | xg |
| x | h | xh |