# How to measure script efficiency?

**URL:** https://community.mp3tag.de/t/how-to-measure-script-efficiency/66088
**Category:** Web Sources Discussion
**Created:** [September 28, 2024, 8:26pm UTC](https://community.mp3tag.de/t/how-to-measure-script-efficiency/66088 "2024-09-28T20:26:32Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![rboss](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rboss](https://community.mp3tag.de/u/rboss)
#### Post date: [October 9, 2024, 1:58pm UTC](https://community.mp3tag.de/t/how-to-measure-script-efficiency/66088/7 "2024-10-09T13:58:46Z")

</div>

Also having a script line number analysis is a very good idea.

I added the same feature to my Excel spreadsheet, and for the same album as in your screenshot, I got the following:

 ![imagem](https://community.mp3tag.de/uploads/default/original/3X/9/d/9d101a99b2ed520cbe519bab00ee7626e4e5b030.png)

 ![imagem](https://community.mp3tag.de/uploads/default/original/3X/4/4/4460de249e3d6d77993834cfecea5e43555d52fa.png)

[Numbering bugs](https://community.mp3tag.de/t/incorrect-script-line-numbers-in-debug-output/66132/4) not withstanding, having a visual representation of where certain lines/command are more frequent gives a much better idea of where to check if a script is too slow and it's hard to figure out where, and can be used as a benchmark between different scripts.

And while I do still think it is a good idea, the more I think about it, the more a command "weight" table becomes impractical. Normal script execution is already affected by system load, other processes, etc., so even if the developer were somehow able to create such a table, it would only be valid for their system. And besides, cover art file size has significantly more impact in execution time that any other commands.

I would still like to se a `Total Commands Executed` counter in the debug file; something I believe would not be difficult to implement.

As for the Notepad-Excel formatting issue mentioned in a previous post, it has nothing to do with Mp3Tag; and only happens when copying HTML code between the MS Notepad application and Excel (in my case). As a quick workaround, I now open the debug.txt file in a browser window, and from there I can copy/paste to Excel without issues.

---

_[View the full topic](https://community.mp3tag.de/t/how-to-measure-script-efficiency/66088)._
