mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-25 21:46:14 +01:00
Remove additional thread support in performance test
We're always enabling threads now so this is not needed.
This commit is contained in:
parent
40bf3aa5d2
commit
3c5e1fd903
@ -32,14 +32,11 @@
|
|||||||
#define TARGET_ROUND_TIME 0.004
|
#define TARGET_ROUND_TIME 0.004
|
||||||
|
|
||||||
static gboolean verbose = FALSE;
|
static gboolean verbose = FALSE;
|
||||||
static gboolean init_threads = FALSE;
|
|
||||||
static int test_length = DEFAULT_TEST_TIME;
|
static int test_length = DEFAULT_TEST_TIME;
|
||||||
|
|
||||||
static GOptionEntry cmd_entries[] = {
|
static GOptionEntry cmd_entries[] = {
|
||||||
{"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
|
{"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
|
||||||
"Print extra information", NULL},
|
"Print extra information", NULL},
|
||||||
{"threads", 't', 0, G_OPTION_ARG_NONE, &init_threads,
|
|
||||||
"Initialize threads", NULL},
|
|
||||||
{"seconds", 's', 0, G_OPTION_ARG_INT, &test_length,
|
{"seconds", 's', 0, G_OPTION_ARG_INT, &test_length,
|
||||||
"Time to run each test in seconds", NULL},
|
"Time to run each test in seconds", NULL},
|
||||||
{NULL}
|
{NULL}
|
||||||
@ -713,9 +710,6 @@ main (int argc,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (init_threads)
|
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
|
@ -3,5 +3,4 @@ DIR=`dirname $0`;
|
|||||||
(cd $DIR; make performance)
|
(cd $DIR; make performance)
|
||||||
ID=`git rev-list --max-count=1 HEAD`
|
ID=`git rev-list --max-count=1 HEAD`
|
||||||
echo "Testing revision ${ID}"
|
echo "Testing revision ${ID}"
|
||||||
$DIR/performance | tee "perf-${ID}-normal.log"
|
$DIR/performance | tee "perf-${ID}.log"
|
||||||
$DIR/performance -t | tee "perf-${ID}-threaded.log"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user