const GLib = imports.gi.GLib;
let i = 0;
while (i < 1000000) {
        GLib.basename ("/");
        i++;
}
i = 0;
let start = (new Date()).getTime();
while (i < 1000000) {
	GLib.basename ("/");
	i++;
}
let end = (new Date()).getTime();
log (end - start);

