jbesclapez

synology package for bencmarking CPU

Recommended Posts

Posted (edited)

Hi there,

 

I have a 2 synology boxes and 1 xpenology.
I am wondering if any of you has a package or knows a package to benchmark CPU. 

The closes thing I have from that is in this post : https://forum.synology.com/enu/viewtopic.php?t=93106

But it is not really a benchmark tool as it only test on one core...

 

The goal (especially for xpenology) would be to know which box is the best in transcoding videos.

 

Please do not tell me to go to cpubenchmark website as all soft we are using on xpenology are hacks, I would prefer directly testing the hacks. (example: I am using a xeon processor s771 into a mobo s775 with a hardware hack)

 

Cheers

 

Edited by jbesclapez

Share this post


Link to post
Share on other sites

A faster CPU is going to transcode faster than a slower CPU,  unless the slower CPU has hardware acceleration like Quicksync, AND you have software that will use it.

 

So despite your reluctance to use PassMark or other CPU benchmark site, you will only confirm what is already known.  If you must test yourself, you should use a standardized transcoding workload.  Pick a file to transcode and run it on each of the platforms.  If you are using Synology Videostation for transcoding, you'll probably have to test it with a stopwatch and the GUI.  If you are using Plex, just use the installed ffmpeg and transcode your standard workload from the command line.

 

Again, from a ranking standpoint, you won't get any different results than a pure CPU benchmark unless you have hardware transcoding capability, are running the DS916+ image, and your transcoding software is able to take advantage of that (Synology Videostation or Plex Pass).

 

Share this post


Link to post
Share on other sites

Hi Flyride and thanks for your reply.

It is not the reply I was expecting as I was looking for a package to install to run a benchmark test. :-)

I totally understand your answer, but I suspect my hardware settings is not running my CPU the way it should, that's why I wanted to run my own test. You know you can slowdown (or overclock) a CPU and that is another reason why I wanted to do a benchmark.

Share this post


Link to post
Share on other sites
On 22.3.2018 at 8:23 AM, jbesclapez said:

The goal (especially for xpenology) would be to know which box is the best in transcoding videos.

 

Uh.....

ffmpeg -i /volume1/PUBLIC/Filme/Serien/test.mkv -c:v libx264 -crf 16 -maxrate 10116k -bufsize 20232k -r 23.975999999999999 -preset veryfast -x264opts subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none /volume1/PUBLIC/Filme/Serien/Testingffmpeg_NewCPU.mp4
 
frame=33082 fps= 72 q=21.0 size=  636058kB time=00:23:00.22 bitrate=3775.2kbits/s dup=1 drop=0
video:605058kB audio:32476kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.141342%
[libx264 @ 0x1ed5120] frame I:412   Avg QP:10.52  size:190758
[libx264 @ 0x1ed5120] frame P:13751 Avg QP:13.22  size: 34290
[libx264 @ 0x1ed5120] frame B:18941 Avg QP:16.36  size:  3667
[libx264 @ 0x1ed5120] consecutive B-frames: 18.4% 15.0%  3.0% 63.6%
[libx264 @ 0x1ed5120] mb I  I16..4: 52.0%  0.0% 48.0%
[libx264 @ 0x1ed5120] mb P  I16..4: 21.5%  0.0%  0.0%  P16..4: 32.7%  0.0%  0.0%  0.0%  0.0%    skip:45.8%
[libx264 @ 0x1ed5120] mb B  I16..4:  1.1%  0.0%  0.0%  B16..8: 10.4%  0.0%  0.0%  direct: 4.7%  skip:83.8%  L0:45.2% L1:46.5% BI: 8.3%
[libx264 @ 0x1ed5120] coded y,uvDC,uvAC intra: 37.4% 61.3% 43.5% inter: 7.5% 7.2% 0.9%
[libx264 @ 0x1ed5120] i16 v,h,dc,p: 47% 26% 16% 10%
[libx264 @ 0x1ed5120] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 22% 14%  8%  7%  5%  6%  5%  7%
[libx264 @ 0x1ed5120] i8c dc,h,v,p: 55% 21% 18%  6%
[libx264 @ 0x1ed5120] Weighted P-Frames: Y:4.6% UV:2.3%
[libx264 @ 0x1ed5120] kb/s:3589.90
Received signal 2: terminating.

the fps= show your FPS. so there is your practical Benchmark.

 

Or if you use Handbrake in a Docker...

export HANDBRAKE_OPTIONS="-f mp4  -O  -w 1920 --crop 0:0:0:0 --loose-anamorphic  --modulus 2 -e x264 -q 20 --vfr -a 1 -E fdk_haac -6 stereo -R Auto -B 64 -D 0 --gain 0 --audio-fallback ac3 --subtitle 1 --subtitle-burned=1 --encoder-preset=veryfast  --encoder-tune=animation  --encoder-level=4.0  --encoder-profile=main --verbose=1"
sudo docker run \
    -v /volume1/PUBLIC/Filme/Serien:/input \
    -v /volume1/PUBLIC/Filme/Serien:/output \
    --cpuset-cpus="0-7" \
    --rm \
    supercoder/docker-handbrake-cli:latest \ \
    -i /input/test.mkv \
    -o /output/test-handbrakex265dec_newCPU.mp4 \
    $HANDBRAKE_OPTIONS
 
 
[01:10:06] encx264: unparsed options: level=4.0:ref=1:bframes=5:deblock=1,1:8x8d              ct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:psy-rd=0.40,0.00:vbv-bufsize=25000              :vbv-maxrate=20000:aq-strength=0.60:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
Encoding: task 1 of 1, 6.30 % (28.38 fps, avg 31.07 fps, ETA 00h16m59s)[01:11:14              ] hevc: "Chapter 2" (2) at frame 2143 time 8014230
Encoding: task 1 of 1, 56.48 % (42.56 fps, avg 47.30 fps, ETA 00h05m11s)[01:16:5              0] hevc: "Chapter 3" (3) at frame 19081 time 71599050
Encoding: task 1 of 1, 92.78 % (44.04 fps, avg 46.34 fps, ETA 00h00m52s)[01:21:2              3] hevc: "Chapter 4" (4) at frame 31352 time 117661320
Encoding: task 1 of 1, 99.22 % (37.15 fps, avg 45.78 fps, ETA 00h00m05s)[01:22:1              8] hevc: "Chapter 5" (5) at frame 33517 time 125788140
Encoding: task 1 of 1, 99.86 % (30.53 fps, avg 45.67 fps, ETA 00h00m01s)[01:22:2              5] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (33.37 fps, avg 45.66 fps, ETA 00h00m00s)[01:22:              26] work: average encoding speed for job is 45.657459 fps
Encoding: task 1 of 1, 100.00 % (33.37 fps, avg 45.66 fps, ETA 00h00m00s)[01:22:              26] sync: got 33770 frames, 33770 expected
[01:22:26] render: lost time: 0 (0 frames)
[01:22:26] render: gained time: 0 (0 frames) (0 not accounted for)
[01:22:26] hevc-decoder done: 33770 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:479   Avg QP:16.07  size: 73763
x264 [info]: frame P:12782 Avg QP:19.78  size: 14099
x264 [info]: frame B:20509 Avg QP:22.25  size:  1248
x264 [info]: consecutive B-frames: 19.9% 15.7%  2.1%  2.4%  5.6% 54.2%
x264 [info]: mb I  I16..4: 64.8%  0.0% 35.2%
x264 [info]: mb P  I16..4: 14.1%  0.0%  2.0%  P16..4: 10.9%  4.6%  2.0%  0.0%  0              .0%    skip:66.4%
x264 [info]: mb B  I16..4:  0.6%  0.0%  0.1%  B16..8:  3.2%  0.6%  0.1%  direct:               0.8%  skip:94.7%  L0:50.4% L1:44.0% BI: 5.5%
x264 [info]: coded y,uvDC,uvAC intra: 21.6% 30.2% 8.6% inter: 2.1% 3.0% 0.2%
x264 [info]: i16 v,h,dc,p: 46% 31% 14%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 23% 20%  6%  5%  5%  5%  5%  4%
x264 [info]: i8c dc,h,v,p: 64% 19% 14%  3%
x264 [info]: Weighted P-Frames: Y:5.0% UV:1.7%
x264 [info]: kb/s:1369.62
[01:22:26] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
Muxing: this may take awhile...[01:22:28] mux: track 0, 33770 frames, 241128614               bytes, 1369.57 kbps, fifo 4096
[01:22:28] mux: track 1, 33012 frames, 11268313 bytes, 64.00 kbps, fifo 4096
[01:22:28] libhb: work result = 0

avg 45.66 fps

 

(not the same settings...)

 

 

So yeah, why would you need Benchmarking apps when you can check the speed in the Programm you want to use?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now