view test/compile-bench/bench-octave/for_loop_fncall.m @ 32149:6e6e99e8a4de

tests for the new VM New files for genneral tests in the directory test/compile: module.mk, bytecode.tst, bytecode_anon_handles.m, bytecode_ans.m, bytecode_assign.m, bytecode_binops.m, bytecode_cdef_use.m, bytecode_cell.m, bytecode_dountil.m, bytecode_end.m, bytecode_errors.m, bytecode_eval_1.m, bytecode_evalin_1.m, bytecode_evalin_2.m, bytecode_for.m, bytecode_global_1.m, bytecode_if.m, bytecode_index_obj.m, bytecode_inputname.m, bytecode_leaks.m, bytecode_matrix.m, bytecode_misc.m, bytecode_multi_assign.m, bytecode_persistant.m, bytecode_range.m, bytecode_return.m, bytecode_struct.m, bytecode_subfuncs.m, bytecode_subsasgn.m, bytecode_switch.m, bytecode_trycatch.m, bytecode_unary.m, bytecode_unwind.m, bytecode_varargin.m, bytecode_varargout.m, bytecode_while.m, bytecode_wordlistcmd.m, cdef_foo.m, inputname_args.m, just_call_handle_with_arg.m, return_isargout.m, shutup_operator_test/@double/display.m, shutup_operator_test/@logical/display.m, shutup_operator_test/bytecode_disp.m, shutup_operator_test/bytecode_disp.tst, wrongname_fn.m. Microbenchmarks for VM developement in the directory test/compile-bench: module.mk, bench-octave/bench.m, bench-octave/bench_cov.m, bench-octave/bench_median.m, bench-octave/do_until_loop_empty.m, bench-octave/for_loop_binop_1.m, bench-octave/for_loop_empty.m, bench-octave/for_loop_fncall.m, bench-octave/for_loop_ifs.m, bench-octave/for_loop_matselfmul.m, bench-octave/for_loop_silly.m, bench-octave/for_loop_sinpi.m, bench-octave/for_loop_subfun_1.m, bench-octave/for_sum_1.m, bench-octave/for_sum_2.m, bench-octave/qsort_iterative.m, bench-octave/qsort_recursive.m, bench-octave/str_mod.m, bench-octave/while_loop_empty.m, bench-py3/bench.py. * test/Makefile.am: Update.
author Petter T. <petter.vilhelm@gmail.com>
date Mon, 19 Jun 2023 16:35:32 -0400
parents
children
line wrap: on
line source

function for_loop_fncall (n)
  for i = 1:n
    max (i, 2);
  end
end