#include <gtk/gtk.h>

static void
on_notify_text_cb (void)
{
}

gint
main (gint argc, gchar *argv[])
{
  GtkTextBuffer *buffer;
  GtkTextIter iter;
  GTimer *timer;
  gint i;

  gtk_init (&argc, &argv);

  buffer = gtk_text_buffer_new (NULL);

  gtk_text_buffer_get_start_iter (buffer, &iter);

  timer = g_timer_new ();

  for (i = 0; i < 100000; i++)
    {
      if (i % 80 == 0)
        gtk_text_buffer_insert (buffer, &iter, "\n", -1);
      else
        gtk_text_buffer_insert (buffer, &iter, "a", -1);
    }

  g_print ("time: %f\n", g_timer_elapsed (timer, NULL));

  return 0;
}
