def do_test(test):
    self.emcc_args = (orig_args + ['-s', 'EVAL_CTORS=1'])
    test()
    ec_code_size = get_code_size()
    ec_mem_size = get_mem_size()
    self.emcc_args = orig_args
    test()
    code_size = get_code_size()
    mem_size = get_mem_size()
    if mem_size:
        print('mem: ', mem_size, '=>', ec_mem_size)
        self.assertGreater(ec_mem_size, mem_size)
    print('code:', code_size, '=>', ec_code_size)
    self.assertLess(ec_code_size, code_size)
def do_test(test):
    self.emcc_args = (orig_args + ['-s', 'EVAL_CTORS=1'])
    test()
    ec_code_size = get_code_size()
    ec_mem_size = get_mem_size()
    self.emcc_args = orig_args
    test()
    code_size = get_code_size()
    mem_size = get_mem_size()
    if mem_size:
        print('mem: ', mem_size, '=>', ec_mem_size)
        self.assertGreater(ec_mem_size, mem_size)
    print('code:', code_size, '=>', ec_code_size)
    self.assertLess(ec_code_size, code_size)