A performance benchmark of the R language. Many of the subtests are single-threaded, but also note a few multi-threaded points.

Topdown profile looks lightly scatters, reflecting both multiple tests and short duration.

AMD metrics show some floating point, some branches and a somewhat balanced profile between retiring, front end backend and speculation.

Intel metrics

elapsed              69.769
on_cpu               0.242          # 3.87 / 16 cores
utime                173.105
stime                96.605
nvcsw                3048           # 4.86%
nivcsw               59637          # 95.14%
inblock              4528           # 64.90/sec
onblock              1392           # 19.95/sec
cpu-clock            269706401086   # 269.706 seconds
task-clock           269711011581   # 269.711 seconds
page faults          3317948        # 12301.863/sec
context switches     62835          # 232.972/sec
cpu migrations       344            # 1.275/sec
major page faults    47             # 0.174/sec
minor page faults    3317901        # 12301.689/sec
alignment faults     0              # 0.000/sec
emulation faults     0              # 0.000/sec
branches             184133716895   # 102.696 branches per 1000 inst
branch misses        992138354      # 0.54% branch miss
conditional          184133731455   # 102.696 conditional branches per 1000 inst
indirect             43843359937    # 24.452 indirect branches per 1000 inst
slots                3627619950638  #
retiring             1831019546226  # 50.5% (50.5%)
-- ucode             184570243276   #     5.1%
-- fastpath          1646449302950  #    45.4%
frontend             662219274044   # 18.3% (18.3%)
-- latency           361644077252   #    10.0%
-- bandwidth         300575196792   #     8.3%
backend              919859237753   # 25.4% (25.4%)
-- cpu               393641110756   #    10.9%
-- memory            526218126997   #    14.5%
speculation          239113814782   #  6.6% ( 6.6%)
-- branch mispredict 223226958769   #     6.2%
-- pipeline restart  15886856013    #     0.4%
smt-contention       0              #  0.0% ( 0.0%)
cpu-cycles           636591579145   # 0.58 GHz
instructions         1151866319708  # 1.81 IPC
l2 access            22141924092    # 21.285 l2 access per 1000 inst
l2 miss              6680701467     # 30.17% l2 miss

Process summary looks straightforward

435 processes
	 54 R                     1746.24  1436.80
	 68 clinfo                  16.52     6.99
	 38 vulkaninfo               0.95     1.34
	  6 glxinfo:gdrv0            0.11     0.07
	  6 glxinfo:gl0              0.11     0.07
	  4 vulkani:disk$0           0.10     0.14
	  2 glxinfo                  0.06     0.04
	  2 glxinfo:cs0              0.06     0.04
	  2 glxinfo:disk$0           0.06     0.04
	  2 glxinfo:sh0              0.06     0.04
	  2 glxinfo:shlo0            0.06     0.04
	  6 php                      0.05     0.09
	  6 clang                    0.05     0.07
	  2 llvmpipe-0               0.05     0.07
	  2 llvmpipe-1               0.05     0.07
	  2 llvmpipe-10              0.05     0.07
	  2 llvmpipe-11              0.05     0.07
	  2 llvmpipe-12              0.05     0.07
	  2 llvmpipe-13              0.05     0.07
	  2 llvmpipe-14              0.05     0.07
	  2 llvmpipe-15              0.05     0.07
	  2 llvmpipe-2               0.05     0.07
	  2 llvmpipe-3               0.05     0.07
	  2 llvmpipe-4               0.05     0.07
	  2 llvmpipe-5               0.05     0.07
	  2 llvmpipe-6               0.05     0.07
	  2 llvmpipe-7               0.05     0.07
	  2 llvmpipe-8               0.05     0.07
	  2 llvmpipe-9               0.05     0.07
	  3 rocminfo                 0.01     0.01
	  1 lspci                    0.00     0.02
	  1 ps                       0.00     0.01
	 90 sh                       0.00     0.00
	 12 gcc                      0.00     0.00
	  9 gsettings                0.00     0.00
	  8 stat                     0.00     0.00
	  8 systemd-detect-          0.00     0.00
	  8 uname                    0.00     0.00
	  8 which                    0.00     0.00
	  7 sed                      0.00     0.00
	  6 llvm-link                0.00     0.00
	  5 phoronix-test-s          0.00     0.00
	  4 gmain                    0.00     0.00
	  3 Rscript                  0.00     0.00
	  3 dconf worker             0.00     0.00
	  3 rbenchmark               0.00     0.00
	  3 rm                       0.00     0.00
	  2 lscpu                    0.00     0.00
	  2 xset                     0.00     0.00
	  1 cc                       0.00     0.00
	  1 date                     0.00     0.00
	  1 dirname                  0.00     0.00
	  1 dmesg                    0.00     0.00
	  1 dmidecode                0.00     0.00
	  1 grep                     0.00     0.00
	  1 ifconfig                 0.00     0.00
	  1 ip                       0.00     0.00
	  1 lsmod                    0.00     0.00
	  1 mktemp                   0.00     0.00
	  1 qdbus                    0.00     0.00
	  1 readlink                 0.00     0.00
	  1 realpath                 0.00     0.00
	  1 sort                     0.00     0.00
	  1 stty                     0.00     0.00
	  1 systemctl                0.00     0.00
	  1 template.sh              0.00     0.00
	  1 wc                       0.00     0.00
	  1 xrandr                   0.00     0.00
0 processes running
47 maximum processes

Computation blocks show successionof invocations of R

      1809294) rbenchmark       cpu=13 start=5.47  finish=24.84
        1809295) which            cpu=6 start=5.47  finish=5.47 
        1809296) R                cpu=8 start=5.47  finish=24.83
          1809297) uname            cpu=1 start=5.47  finish=5.48 
          1809298) R                cpu=10 start=5.48  finish=5.48 
            1809299) R                cpu=4 start=5.48  finish=5.48 
            1809300) sed              cpu=1 start=5.48  finish=5.48 
            1809301) sed              cpu=6 start=5.48  finish=5.48 
          1809302) R                cpu=2 start=5.49  finish=24.82
          1809303) R                cpu=4 start=5.49  finish=24.82
          1809304) R                cpu=1 start=5.49  finish=24.82
          1809305) R                cpu=6 start=5.49  finish=24.82
          1809306) R                cpu=3 start=5.49  finish=24.82
          1809307) R                cpu=0 start=5.49  finish=24.82
          1809308) R                cpu=13 start=5.49  finish=24.82
          1809309) R                cpu=15 start=5.49  finish=24.82
          1809310) R                cpu=12 start=5.49  finish=24.82
          1809311) R                cpu=10 start=5.49  finish=24.82
          1809312) R                cpu=14 start=5.49  finish=24.82
          1809313) R                cpu=9 start=5.49  finish=24.82
          1809314) R                cpu=11 start=5.49  finish=24.82
          1809315) R                cpu=8 start=5.49  finish=24.82
          1809316) R                cpu=5 start=5.49  finish=24.82
          1809317) sh               cpu=10 start=5.58  finish=5.58 
            1809318) which            cpu=4 start=5.58  finish=5.58 
          1809319) sh               cpu=3 start=5.58  finish=5.59 
            1809320) uname            cpu=14 start=5.59  finish=5.59 
          1809321) sh               cpu=8 start=24.82 finish=24.82
            1809322) rm               cpu=9 start=24.82 finish=24.82
        1809323) Rscript          cpu=2 start=24.84 finish=24.84