Test Full Run Speed (Risky + Safe Asets + Interpolated)
back to Fan's Dynamic Assets Repository Table of Content.
@include
@seealso
- SPEED risky + safe (two-step interp) overall benchmark speed testing: fsi_iwkz_ds_vecsv_speed
- PREFERENCE risky + safe (two-step interp) preference testing: fsi_iwkz_ds_vecsv_pref
- PREFERENCE risky + safe (two-step interp) preference testing cross: fsi_iwkz_ds_vecsv_pref_cross
- SHOCK risky + safe (two-step interp) shock testing: fsi_iwkz_ds_vecsv_shock
- SHOCK risky + safe (two-step interp) shock testing cross: fsi_iwkz_ds_vecsv_shock_cross
- CAPITAL risky + safe (two-step interp) capital return testing: fsi_iwkz_ds_vecsv_prod
- CAPITAL risky + safe (two-step interp) capital return testing cross: fsi_iwkz_ds_vecsv_prod_cross
- PRICE risky + safe (two-step interp) wage and interest rate testing cross: adjust wage and savings rate fsi_iwkz_ds_vecsv_price_cross
- JOINT all parameters random draws joint test fsi_iwkz_ds_vecsv_joint_rand
Contents
Solving the Benchmark Model
close all; clear all; % Start Profiling bl_profile = true; if (bl_profile) profile off; profile on; end % Start Timer bl_time = true; if (bl_time) tic; end % Set Parameters it_param_set = 9; [param_map, support_map] = ffs_akz_set_default_param(it_param_set); support_map('bl_time') = false; support_map('bl_display_final_dist') = false; % Call Grid Generator <https://fanwangecon.github.io/CodeDynaAsset/m_az/paramfunc/html/ffs_akz_get_funcgrid.html ffs_akz_get_funcgrid> [armt_map, func_map] = ffs_akz_get_funcgrid(param_map, support_map); % Call Dynamic Programming Problem <https://fanwangecon.github.io/CodeDynaAsset/m_az/solve/html/ff_iwkz_vf_vecsv.html ff_iwkz_vf_vecsv> result_map = ff_iwkz_vf_vecsv(param_map, support_map, armt_map, func_map); % Call Distribution CProgram result_map = ff_iwkz_ds_vec(param_map, support_map, armt_map, func_map, result_map); % End Timer if (bl_time) toc; end % End Profiling if (bl_profile) profile off profile viewer % append function name st_func_name = 'fsi_iwkz_ds_vecsv_speed'; support_map('st_profile_path') = [support_map('st_matimg_path_root') '/test/ff_iwkz_ds_vecsv/test_speed/profile/']; support_map('st_profile_name_main') = [st_func_name support_map('st_profile_name_main')]; % support_map params_group = values(support_map, {'st_profile_path', ... 'st_profile_prefix', 'st_profile_name_main', 'st_profile_suffix'}); [st_profile_path, st_profile_prefix, st_profile_name_main, st_profile_suffix] = params_group{:}; % Save st_file_name = [st_profile_prefix st_profile_name_main st_profile_suffix]; profsave(profile('info'), strcat(st_profile_path, st_file_name)); end
Elapsed time is 1.411300 seconds.