()
| 52 | @benchmark |
| 53 | def bench(): |
| 54 | async def _bench(): |
| 55 | state = State(models={}, apps=StateApps()) |
| 56 | for migration in migrations: |
| 57 | await migration.apply(state, dry_run=True, schema_editor=None) |
| 58 | assert len(state.models) == 200 |
| 59 | |
| 60 | loop.run_until_complete(_bench()) |