spk-logo-white-text-short2
0%
1-888-310-4540 (main) / 1-888-707-6150 (support) info@spkaa.com
Select Page

Electric Commander: Performance Comparison Between ectool and ec-perl

Written by SPK Blog Post
Published on April 29, 2015

Prior to version 5.2, Electric Commander has offered two primary ways to access the API for scripting purposes: ectool and ec-perl. Both allow users to accomplish virtually any task within Commander, but it’s important to note there is a significant performance difference between the two.

Ectool remains an excellent choice for quick operations on the command line or embedded in a script, however any significant interface with the Commander server that requires multiple API calls is best accomplished using ec-perl. Ectool gets beats because for each command, ectool opens a connection to the commander server, issues the command, and closes the connection. When done repeatedly, this adds a significant amount of overhead to a given sequence of operations.

Ec-perl, on the other hand, opens a single, persistent connection with the Commander server, allowing for multiple operations to be executed quickly. Additional speed can be gained by submitting batch requests through ec-perl. A batch request bundles multiple server requests together (such as get or setProperty requests) and transmits them to the server together as a single request, further reducing network burden.

For demonstrations purposes, I created a Commander procedure that performs 500 getProperty requests and 500 steProperty requests using ectool, ec-perl, and ec-perl with batch requests.

Electric Commander 1 Electric Commander 2 Electric Commander 3

As the graphs indicate, ec-perl performs getProperty operations 28 to 113 times faster than ectool and can perform setProperty operations 4 to 15 times faster than ectool. This should clearly demonstrate that ec-perl is the superior method for scripting Commander operations that require multiple API calls. For some, Perl may not be a preferred language, but if speed is really a concern, it’s worth the effort to code your scripts that do the heavy lifting using ec-perl.

Next Steps:

David Hubbell
Software Engineer
SPK and Associates

Latest White Papers

A Guide To Cleaning Up Your Jira Instance

A Guide To Cleaning Up Your Jira Instance

Jira is a great project management tool, but it can easily become cluttered. Dive into this eBook to explore how to clean up your Jira instance easily.What You Will Learn Discover the tools that can help you: Remove and merge old or duplicate content Fix broken...

Related Resources

Reducing Engineering Bottlenecks with Better CAD File Management

Reducing Engineering Bottlenecks with Better CAD File Management

Modern engineering teams depend on CAD tools to design, innovate, and deliver high-quality products. However, even the best design tools can’t perform to their full potential with poor file management.  Unorganized CAD files slow workflows, cause version confusion,...

Beyond Burnout: Empowering DevOps with Smarter AI-Driven Workflows

Beyond Burnout: Empowering DevOps with Smarter AI-Driven Workflows

In many organizations today, DevOps teams walk a tightrope between velocity and stability. They are constantly pressured to deliver faster while grappling with tool fragmentation, context switching, and alert fatigue. The result?  Burnout, inefficiencies, and a...

GitLab for Beginners: What Do You Need To Know?

GitLab for Beginners: What Do You Need To Know?

Most developers are familiar with Git: the version control system that tracks changes to code. GitLab goes far beyond Git. It’s an end-to-end DevOps platform that manages your entire software lifecycle. From code hosting, version control, and CI/CD automation to...