mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 18:21:07 +01:00
Update benchmarks
This commit is contained in:
parent
b90a64e2a6
commit
8516c41b43
@ -161,24 +161,24 @@ func BenchmarkStore_GetServiceStatusByKey(b *testing.B) {
|
|||||||
Store: memoryStore,
|
Store: memoryStore,
|
||||||
Parallel: false,
|
Parallel: false,
|
||||||
},
|
},
|
||||||
//{
|
{
|
||||||
// Name: "memory-parallel",
|
Name: "memory-parallel",
|
||||||
// Store: memoryStore,
|
Store: memoryStore,
|
||||||
// Parallel: true,
|
Parallel: true,
|
||||||
//},
|
},
|
||||||
{
|
{
|
||||||
Name: "database",
|
Name: "database",
|
||||||
Store: databaseStore,
|
Store: databaseStore,
|
||||||
Parallel: false,
|
Parallel: false,
|
||||||
},
|
},
|
||||||
//{
|
{
|
||||||
// Name: "database-parallel",
|
Name: "database-parallel",
|
||||||
// Store: databaseStore,
|
Store: databaseStore,
|
||||||
// Parallel: true,
|
Parallel: true,
|
||||||
//},
|
},
|
||||||
}
|
}
|
||||||
for _, scenario := range scenarios {
|
for _, scenario := range scenarios {
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 50; i++ {
|
||||||
scenario.Store.Insert(&testService, &testSuccessfulResult)
|
scenario.Store.Insert(&testService, &testSuccessfulResult)
|
||||||
scenario.Store.Insert(&testService, &testUnsuccessfulResult)
|
scenario.Store.Insert(&testService, &testUnsuccessfulResult)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user