[gtk/wip/otte/sortlistmodel: 29/33] xxx remove-n test
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/sortlistmodel: 29/33] xxx remove-n test
- Date: Sat, 11 Jul 2020 03:49:41 +0000 (UTC)
commit 33ea93edf5f25dcca61088ee923dc3275c506860
Author: Benjamin Otte <otte redhat com>
Date: Fri Jul 10 22:01:10 2020 +0200
xxx remove-n test
testsuite/gtk/sort-performance.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/gtk/sort-performance.c b/testsuite/gtk/sort-performance.c
index e63cb2e13b..982f6b3519 100644
--- a/testsuite/gtk/sort-performance.c
+++ b/testsuite/gtk/sort-performance.c
@@ -430,12 +430,12 @@ remove_n (const char *testname,
while (TRUE)
{
- gtk_slice_list_model_set_size (slice, size - n);
+ gtk_slice_list_model_set_size (slice, size);
comparisons = 0;
n_changed = 0;
start = end = g_get_monotonic_time ();
- for (i = 0; i < 100; i++)
+ for (i = 1; i <= 100; i++)
{
gtk_slice_list_model_set_size (slice, size - n * i);
end = snapshot_time (end, &max);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]