Bench mark script with Simulink, xlsread and xlswrite

This bench mark problem was developed to compare the performance of various matlab release versions
338 Downloads
Updated 21 Oct 2013

View License

The Bench_Sim.m scripts create a new model with 100 From Workspace, Gain and To workspace blocks. A standard set of inputs is read from the BenchTestInput.xls and these inputs are pumped into the Simulink model. The outputs obtained from the Simulation is accumulated and written into an xls file using xlswrite. This exercise is performed several times to average out the results. (Hardcoded to 10 in the script- jj=1:10).
This exercise is done to emulate batch processing a typical VnV activity. The Test Case inputs are written in Excel. A Simulink model is executed and the outputs are written back to the excel file.
The script gives out the execution time for the entire exercise. This timing is used to compare the performance of different Matlab/Simulink Versions.

Comparison of 2 different Matlab Versions are as shown below:
MATLAB Version: 8.1.0.604 (R2013a)[64 bit version]
Elapsed time is 56.774682 seconds.
MATLAB Version 7.7.0.471 (R2008b)[32 bit version]
Elapsed time is 34.360705 seconds.

Both evaluations were done on the same PC with the configuration as shown:
OS Name Microsoft Windows 7 Professional
Version 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer Microsoft Corporation
System Manufacturer Dell Inc.
System Model Precision WorkStation T5500
System Type x64-based PC
Processor Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 2394 Mhz, 4 Core(s), 4 Logical Processor(s)
BIOS Version/Date Dell Inc. A09, 4/20/2011
Installed Physical Memory (RAM) 12.0 GB
Total Physical Memory 12.0 GB
Available Physical Memory 10.1 GB
Total Virtual Memory 24.0 GB
Available Virtual Memory 22.0 GB
Page File Space 12.0 GB

Cite As

Chethan C U (2024). Bench mark script with Simulink, xlsread and xlswrite (https://www.mathworks.com/matlabcentral/fileexchange/44020-bench-mark-script-with-simulink-xlsread-and-xlswrite), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Prepare Model Inputs and Outputs in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0