#!/usr/bin/env gjs

const Everything = imports.gi.Everything;

let o = new Everything.TestObj();

let start = new Date().getTime();
for (let i = 0; i < 60000; i++) {

    let v = 0;
    let [one, two] = Everything.test_multi_double_args(42.0);
    
    v += one;
    v += two;
    
    Everything.test_boolean(true);
    
    let simple_boxed = new Everything.TestSimpleBoxedA();
    simple_boxed.some_int = 42;
    simple_boxed.some_int8 = 43;
    
    o.instance_method();
}
let end = new Date().getTime();
log("elapsed: " + (end - start)/1000);
