benchmark: improve setup

Add some useful make targets, and separate (optimized) build.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-25 23:54:50 +03:00
parent 4c0b7db3d8
commit da290c21a9
2 changed files with 36 additions and 14 deletions

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2022-2023 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
@ -494,7 +494,9 @@ int
main(int argc, char *argv[])
{
size_t num_maildirs{}, num_messages{};
g_test_init(&argc, &argv, nullptr);
mu_test_init(&argc, &argv);
if (g_test_perf()) {
num_maildirs = 20;
num_messages = 5000;