Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bench] 実装ミス、表記ゆれの修正 #226

Merged
merged 9 commits into from
Aug 3, 2022

Conversation

ToshihitoKon
Copy link
Contributor

@ToshihitoKon ToshihitoKon commented Aug 1, 2022

#225

  • コンテスト当日の挙動を再現する-reproduceオプションを追加
  • 内容が空のランキングを取得した際にsleepを含めて大会一覧の取得からリトライするよう変更
  • 出力の表記ゆれの修正

@ToshihitoKon
Copy link
Contributor Author

scoreに10秒sleepを入れた場合のスコア

--reproduce付き

[ADMIN] 08:31:48.947970 ScenarioScoreMap: map[string]int64{
  "AdminBilling":            3,
  "AdminBillingValidate":    123,
  "OrganizerNewTenant":      321,
  "OrganizerPeacefulTenant": 0,
  "OrganizerPopularTenant":  203,
  "Player":                  4317,
  "PlayerValidate":          139,
  "TenantBillingValidate":   265,
}
[ADMIN] 08:31:48.948231 WorkerCount: map[string]int{
  "AdminBillingScenarioWorker":   1,
  "AdminBillingValidateWorker":   1,
  "NewTenantScenarioWorker":      1,
  "PlayerScenarioWorker":         41,
  "PlayerValidateScenarioWorker": 1,
  "PopularTenantScenarioWorker":  1,
  "TenantBillingValidateWorker":  1,
}
08:31:48.948275 Error 0 (Critical:0)
08:31:48.948279 PASSED: true
08:31:48.948282 SCORE: 5371 (+5371 0(0%))
[ADMIN] 08:31:48.948423 score.ScoreTable{
  "GET /api/admin/tenants/billing":                         5,
  "GET /api/organizer/billing":                             8,
  "GET /api/organizer/players/list":                        11,
  "GET /api/player/competition/:competition_id/ranking":    3748,
  "GET /api/player/competitions":                           355,
  "GET /api/player/player/:player_name":                    689,
  "POST /api/admin/tenants/add":                            2,
  "POST /api/organizer/competition/:competition_id/finish": 12,
  "POST /api/organizer/competition/:competition_id/score":  15,
  "POST /api/organizer/competitions/add":                   15,
  "POST /api/organizer/player/:player_name/disqualified":   3,
  "POST /api/organizer/players/add":                        4,
}

--reproduce無し


[ADMIN] 08:29:49.153176 ScenarioScoreMap: map[string]int64{
  "AdminBilling":            4,
  "AdminBillingValidate":    113,
  "OrganizerNewTenant":      306,
  "OrganizerPeacefulTenant": 0,
  "OrganizerPopularTenant":  166,
  "Player":                  1241,
  "PlayerValidate":          139,
  "TenantBillingValidate":   218,
}
[ADMIN] 08:29:49.153456 WorkerCount: map[string]int{
  "AdminBillingScenarioWorker":   1,
  "AdminBillingValidateWorker":   1,
  "NewTenantScenarioWorker":      1,
  "PlayerScenarioWorker":         37,
  "PlayerValidateScenarioWorker": 1,
  "PopularTenantScenarioWorker":  1,
  "TenantBillingValidateWorker":  1,
}
08:29:49.153528 Error 0 (Critical:0)
08:29:49.153539 PASSED: true
08:29:49.153546 SCORE: 2187 (+2187 0(0%))
[ADMIN] 08:29:49.153751 ScenarioCount: map[bench.ScenarioTag]string{
  "AdminBilling":            "count: 1 (error: 0)",
  "AdminBillingValidate":    "count: 2 (error: 0)",
  "OrganizerNewTenant":      "count: 1 (error: 0)",
  "OrganizerPeacefulTenant": "count: 0 (error: 0)",
  "OrganizerPopularTenant":  "count: 1 (error: 0)",
  "Player":                  "count: 37 (error: 0)",
  "PlayerValidate":          "count: 3 (error: 0)",
  "TenantBillingValidate":   "count: 1 (error: 0)",
}
[ADMIN] 08:29:49.154742 score.ScoreTable{
  "GET /api/admin/tenants/billing":                         6,
  "GET /api/organizer/billing":                             7,
  "GET /api/organizer/players/list":                        10,
  "GET /api/player/competition/:competition_id/ranking":    842,
  "GET /api/player/competitions":                           357,
  "GET /api/player/player/:player_name":                    449,
  "POST /api/admin/tenants/add":                            2,
  "POST /api/organizer/competition/:competition_id/finish": 11,
  "POST /api/organizer/competition/:competition_id/score":  15,
  "POST /api/organizer/competitions/add":                   14,
  "POST /api/organizer/player/:player_name/disqualified":   3,
  "POST /api/organizer/players/add":                        3,
}

@ToshihitoKon ToshihitoKon merged commit eb32edf into main Aug 3, 2022
@ToshihitoKon ToshihitoKon deleted the bench/fix-after-contest branch August 3, 2022 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant