Log in

View Full Version : Tool to benchmark AVS?


thewebchat
15th August 2009, 23:51
I'm trying to compare the speed of two scripts, but I can't find a reliable tool to benchmark AVS. Currently, I pass both scripts through x264 with the "veryfast" preset, but there is still some overhead from x264. The first time x264 is called, the performance is about 5% lower as well. What I need is a tool that will read sequentially every frame from an AVS script and report the time it took to complete.

Revgen
16th August 2009, 00:11
http://forum.doom9.org/showthread.php?t=95224

http://www.avstimer.de.tf/

thewebchat
16th August 2009, 01:46
Is this filter safe to use in the event of SMP? It seems to measure the amount of CPU time spent in a filter. I know that Haali's timeCodec tool uses a similar method and is not reliable when SMP is involved.

Guest
16th August 2009, 03:15
My *quick and dirty way* for comparative purposes only is to add AssumeFPS(2000) at the end of the script and then see how long VirtualDub takes to play it.

thewebchat
16th August 2009, 06:05
I've tried to do something like that with VirtualDub's "video analysis pass" but it seems that the result varies when I run the same script multiple times!

TheRyuu
16th August 2009, 06:55
mplayer -benchmark your.avs -nosound -vo null

Revgen
16th August 2009, 09:51
Is this filter safe to use in the event of SMP? It seems to measure the amount of CPU time spent in a filter. I know that Haali's timeCodec tool uses a similar method and is not reliable when SMP is involved.

The website for the plugin has an email address and a link to a support forum to ask the author about it.

Guest
16th August 2009, 15:09
I've tried to do something like that with VirtualDub's "video analysis pass" but it seems that the result varies when I run the same script multiple times! Given the Windows caching I think that will happen no matter what method you use. My workaround is to run it twice and use the results from the second run. That way, the caches fill. Usually, after the first run, the results are very close.

Manao
20th August 2009, 08:12
I use "avs2avi.exe -o n -c null file.avs". It doesn't spawn any thread, it's lightweight, it prints the final "encoding" time and fps, and with that command line, it does nothing but read all the frames of the avisynth script.

thewebchat
20th August 2009, 17:24
Great idea, Manao. Thanks for the suggestion - it works without any problems here. One of the biggest frustrations with using VirtualDub for benchmarking was that it displayed no final encoding time.

Fizick
20th August 2009, 21:18
same as Manao.
I use batch file with "e:\tools\avs2avi %1 -o n -c null" command, and right click to open avs with it

JohannesL
22nd August 2009, 08:01
same as Manao.
I use batch file with "e:\tools\avs2avi %1 -o n -c null" command, and right click to open avs with it
Just curious, what do you mean by "right click to open avs with it"? How did you set up that?

Gavino
22nd August 2009, 09:00
As well as the main file association for a file extension (double-click), you can associate additional actions which will appear on the right-click pop-up menu. In Explorer, select the menu Tools -> Folder Options -> File Types, then change the "Advanced" settings for the .AVS extension.