visevol / GithubVisualisation

PFE028 Été 2024
MIT License
0 stars 1 forks source link

Add rake task to benchmark a repository sync #22

Closed zergov closed 1 week ago

zergov commented 1 week ago

You can this task to check how long it takes to fully import a repository:

$ REPOSITORY_ID=1 bin/rake repositories:benchmark_sync

➜  api git:(zgv/add-task-to-create-repository-from-remote) ✗ REPOSITORY_ID=1 bin/rake repositories:benchmark_sync
deleting commits and file changes of repository: https://github.com/rails/rails...
done.
syncing https://github.com/rails/rails...
Sync duration: 96.967830   4.042393 144.274511 (128.719191)
Commit created: 93158
File changes created: 197661