Skip to content

Instantly share code, notes, and snippets.

@Benitoite
Last active August 28, 2024 05:10
Show Gist options
  • Save Benitoite/9982cd08a997f79d89c27b0c05ce2f83 to your computer and use it in GitHub Desktop.
Save Benitoite/9982cd08a997f79d89c27b0c05ce2f83 to your computer and use it in GitHub Desktop.
wintimer
git clone https://github.com/Benitoite/raw-test .\raw-test; $processor = Get-ComputerInfo -Property CsProcessors; $sockets = (Get-CimInstance Win32_Processor).SocketDesignation.Count ; $num = ($processor.CsProcessors | findstr NumberOfLogicalProcessors).Split(' ')[2]; $num *= $sockets ; $name = ($processor.CsProcessors | findstr Name).Split(':')[-1]; $mhz = ($processor.CsProcessors | findstr Max).Split(':')[-1]; $proc = (cat .\AboutThisBuild.txt | findstr Processor); echo "``````" "================================"; echo "Available threads = $num / CPU =$name / $mhz MHz / Target = $proc"; for ($threads = 2; $threads -le $num; $threads *= 2) { $env:OMP_NUM_THREADS=$threads; $t = 0; $n = 5; $x = 0; for ($i = 0; $i -lt $n; $i++) { $x+=(Measure-Command { .\rawtherapee-cli.exe -j -s -Y -c .\raw-test\typewriter.CR2 } | findstr Ticks).Split(': ')[-1] }; $t+=($x/$n); $x = 0; for ($i = 0; $i -lt $n; $i++) { $x+=(Measure-Command { .\rawtherapee-cli.exe -j -s -Y -c .\raw-test\naturalbridges.CR2 } | findstr Ticks).Split(': ')[-1] }; $t+=($x/$n); $x = 0; for ($i = 0; $i -lt $n; $i++) { $x+=(Measure-Command { .\rawtherapee-cli.exe -j -s -Y -c .\raw-test\beachcabin.ARW } | findstr Ticks).Split(': ')[-1] }; $t+=($x/$n); echo "$([math]::round([decimal]($t/10000),0)) total milliseconds elapsed (average of $n runs) using OMP_NUM_THREADS = $threads" }; echo "================================" "``````"
@SilvioGrosso
Copy link


System Information

Operating System: Windows 10 Home 64-bit (10.0, Build 19044) (19041.vb_release.191206-1406)
System Manufacturer: ASUSTeK COMPUTER - X302UJ
Processor: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 CPUs), ~2.6GHz
Memory: 8192MB RAM


Display devices

       Card name: NVIDIA GeForce 920M
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2592 MHz / Target = Processor: generic x86
64245 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
50253 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2592 MHz / Target = Processor: sandybridge-ivybridge
63369 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
50047 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2592 MHz / Target = Processor: skylake-raptorlake
62785 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
49675 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================

@SilvioGrosso
Copy link


System Information

     Operating System: Windows 10 Pro for Workstations 64-bit (10.0, Build 19044) (19041.vb_release.191206-1406)
         System Model: HP Z4 G4 Workstation
            Processor: Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz (8 CPUs), ~3.6GHz
               Memory: 65536MB RAM

Display Devices

       Card name: NVIDIA T1000
================================
Available threads = 8 / CPU = Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz /  3600 MHz / Target = Processor: generic x86
46518 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
28263 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
23211 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8 / CPU = Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz /  3600 MHz / Target = Processor: sandybridge-ivybridge
46263 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
28326 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
23179 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8 / CPU = Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz /  3600 MHz / Target = Processor: skylake-raptorlake
45711 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
28011 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
22954 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================

@Lawrence37
Copy link

================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2601 MHz / Target = Processor: generic x86
67089 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
54341 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2601 MHz / Target = Processor: sandybridge-ivybridge
69117 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
52926 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz /  2601 MHz / Target = Processor: skylake-raptorlake
68949 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
53348 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================

@marter001
Copy link

marter001 commented Aug 5, 2024

================================
Available threads = 8  /  CPU = Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz  /  3408 MHz  /  Target = Processor: generic x86
44982 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
31102 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
26756 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8  /  CPU = Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz  /  3408 MHz  /  Target = Processor: sandybridge-ivybridge
45878 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
31792 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
27732 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8  /  CPU = Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz  /  3408 MHz  /  Target = Processor: skylake-raptorlake
44999 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
31871 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
27553 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================

@Benitoite
Copy link
Author

Benitoite commented Aug 8, 2024

================================
Available threads = 12 / CPU = 13th Gen Intel(R) Core™ i7-1355U / 1700 MHz / Target = Processor: generic x86
32423 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
25558 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
21732 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 12 / CPU = 13th Gen Intel(R) Core™ i7-1355U / 1700 MHz / Target = Processor: sandybridge-ivybridge
33390 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
25824 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
22426 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 12 / CPU = 13th Gen Intel(R) Core™ i7-1355U / 1700 MHz / Target = Processor: skylake-raptorlake
30006 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
25740 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
23402 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================

@Benitoite
Copy link
Author

Benitoite commented Aug 18, 2024

================================
Available threads = 16 / CPU = AMD Ryzen 9 5900HX with Radeon Graphics  /  3301 MHz / Target = Processor: generic x86
36997 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
21236 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
16870 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
16433 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 16 / CPU = AMD Ryzen 9 5900HX with Radeon Graphics  /  3301 MHz / Target = Processor: sandybridge-ivybridge
35356 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
20612 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
16425 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
16188 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 16 / CPU = AMD Ryzen 9 5900HX with Radeon Graphics  /  3301 MHz / Target = Processor: skylake-raptorlake
34356 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
20331 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
16268 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
16081 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================

@Benitoite
Copy link
Author

Benitoite commented Aug 21, 2024

================================
Available threads = 8 / CPU = Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz /  4201 MHz / Target = Processor: generic x86
49539 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
34734 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
30618 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8 / CPU = Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz /  4201 MHz / Target = Processor: sandybridge-ivybridge
48427 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
34116 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
30256 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================

@Benitoite
Copy link
Author

================================
Available threads = 16 / CPU = Intel(R) Core(TM) i9-9900KS CPU @ 4.00GHz /  4008 MHz / Target = Processor: generic x86
34081 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
21858 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
21062 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
19592 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 16 / CPU = Intel(R) Core(TM) i9-9900KS CPU @ 4.00GHz /  4008 MHz / Target = Processor: sandybridge-ivybridge
34081 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
21959 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
19051 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
18913 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 16 / CPU = Intel(R) Core(TM) i9-9900KS CPU @ 4.00GHz /  4008 MHz / Target = Processor: skylake-raptorlake
33708 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
22018 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
20196 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
18876 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================

@Benitoite
Copy link
Author

Benitoite commented Aug 24, 2024

================================
Available threads = 28 / CPU = Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz / 2601 MHz / Target = Processor: generic x86
58966 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
35114 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
23898 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
21951 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 28 / CPU = Intel (R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz / 2601 MHz / Target = Processor: sandybridge-ivybridge
57590 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
34143 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
22609 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
21031 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================
================================
Available threads = 28 / CPU = Intel(R) Xeon(R) CPU E5-2697 V3 @ 2.60GHz / 2601 MHz / Target = Processor: skylake-raptorlake
59062 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
36041 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
25024 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
23098 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 16
================================

@Benitoite
Copy link
Author

================================
Available threads = 8 / CPU = Intel(R) Xeon(R) CPU E3-1275 V2 @ 3.50GHz /  3501 MHz / Target = Processor: generic x86
56608 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
40286 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
33342 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================
================================
Available threads = 8 / CPU = Intel(R) Xeon(R) CPU E3-1275 V2 @ 3.50GHz /  3501 MHz / Target = Processor: sandybridge-ivybridge
55199 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
36673 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
33284 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 8
================================

@Benitoite
Copy link
Author

================================
Available threads = 4 / CPU = Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz /  1800 MHz / Target = Processor: generic x86
66715 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
53584 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz /  1800 MHz / Target = Processor: sandybridge-ivybridge
65804 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
52279 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================
================================
Available threads = 4 / CPU = Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz /  1800 MHz / Target = Processor: skylake-raptorlake
64647 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 2
52658 total milliseconds elapsed (average of 5 runs) using OMP_NUM_THREADS = 4
================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment