OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 21 21 18 1.35 1.16
bin-true no-host 636 457 808 813 651 1.27 1.02
configure.cpython no-host 14,086 14,100 13,716 13,856 13,235 0.97 0.94
configure.ocaml no-host 3,707 3,651 3,737 3,756 3,716 1.01 1.00
configure.tcc no-host 46 41 47 49 44 1.01 0.95
configure.util-linux no-host 12,751 13,587 12,824 12,864 12,396 1.01 0.97
configure.yash no-host 1,721 1,663 1,717 1,728 1,684 1.00 0.98
hello-world no-host 1 1 3 3 1 2.19 0.90

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,384 1,163 3,318 3,375 2,834 1.39 1.19
bin-true no-host 104,435 49,431 132,248 133,029 111,049 1.27 1.06
configure.cpython no-host 1,625,059 1,642,829 1,581,088 1,600,249 1,517,950 0.97 0.93
configure.ocaml no-host 299,210 280,580 306,495 307,360 300,149 1.02 1.00
configure.tcc no-host 5,230 4,193 5,625 5,651 5,125 1.08 0.98
configure.util-linux no-host 1,535,896 1,694,498 1,503,294 1,517,477 1,480,333 0.98 0.96
configure.yash no-host 173,566 159,482 176,300 176,853 172,752 1.02 1.00
hello-world no-host 155 88 390 398 181 2.52 1.17

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.8 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.5 34.5 34.4 34.6 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.6 28.8 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 26.2 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.3 2.00 1.00

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.3 6.6 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,716 1 68 14.8 34.4 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,824 3 70 21.6 39.6 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,737 1 2 2.8 28.6 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,717 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,856 1 68 14.9 34.6 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,864 3 68 21.6 39.7 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,756 1 2 2.8 28.8 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,728 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,239 65,805 42,012 4,980 54,601 57,658 277 3 84,024 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 16 8 8 4.8 bash
15 no-host abuild-print-help 9 3 7 3.8 dash
23 no-host abuild-print-help 21 16 6 9.6 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 8 10 6.3 osh-static
1 no-host bin-true 636 311 362 3.1 bash
9 no-host bin-true 457 275 189 1.6 dash
17 no-host bin-true 808 320 504 8.8 osh-native
25 no-host bin-true 813 301 527 9.2 osh-nosouffle
33 no-host bin-true 651 322 345 5.1 osh-static
2 no-host configure.cpython 14,086 7,747 6,705 34.5 bash
10 no-host configure.cpython 14,100 7,809 6,692 34.5 dash
18 no-host configure.cpython 13,716 7,323 6,646 34.4 osh-native
26 no-host configure.cpython 13,856 7,337 6,787 34.6 osh-nosouffle
34 no-host configure.cpython 13,235 7,321 6,138 34.7 osh-static
4 no-host configure.ocaml 3,707 1,519 1,227 28.7 bash
12 no-host configure.ocaml 3,651 1,529 1,142 28.5 dash
20 no-host configure.ocaml 3,737 1,486 1,290 28.6 osh-native
28 no-host configure.ocaml 3,756 1,484 1,309 28.8 osh-nosouffle
36 no-host configure.ocaml 3,716 1,500 1,247 28.7 osh-static
5 no-host configure.tcc 46 28 19 26.1 bash
13 no-host configure.tcc 41 20 21 26.1 dash
21 no-host configure.tcc 47 26 21 26.2 osh-native
29 no-host configure.tcc 49 25 24 26.3 osh-nosouffle
37 no-host configure.tcc 44 25 19 26.2 osh-static
3 no-host configure.util-linux 12,751 6,702 6,513 39.6 bash
11 no-host configure.util-linux 13,587 6,641 7,436 39.6 dash
19 no-host configure.util-linux 12,824 6,460 6,579 39.6 osh-native
27 no-host configure.util-linux 12,864 6,376 6,696 39.7 osh-nosouffle
35 no-host configure.util-linux 12,396 6,302 6,296 39.5 osh-static
6 no-host configure.yash 1,721 977 751 33.4 bash
14 no-host configure.yash 1,663 993 672 33.4 dash
22 no-host configure.yash 1,717 985 734 33.4 osh-native
30 no-host configure.yash 1,728 944 786 33.4 osh-nosouffle
38 no-host configure.yash 1,684 999 689 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 osh-static

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,384 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,318 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,375 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 104,435 0 0 0 8 0 1,998 85 bash
9 no-host bin-true 49,431 0 0 0 8 0 2,989 38 dash
17 no-host bin-true 132,248 0 0 0 16 0 1,999 88 osh-native
25 no-host bin-true 133,029 0 0 0 16 0 1,999 88 osh-nosouffle
33 no-host bin-true 111,049 0 0 0 8 0 2,001 73 osh-static
2 no-host configure.cpython 1,625,059 0 0 0 25,272 0 14,096 1,027 bash
10 no-host configure.cpython 1,642,829 0 0 0 25,272 0 14,139 1,071 dash
18 no-host configure.cpython 1,581,088 0 0 0 25,280 0 11,293 832 osh-native
26 no-host configure.cpython 1,600,249 0 0 0 25,280 0 11,307 844 osh-nosouffle
34 no-host configure.cpython 1,517,950 0 0 0 25,272 0 11,302 847 osh-static
4 no-host configure.ocaml 299,210 0 0 0 4,432 0 2,020 202 bash
12 no-host configure.ocaml 280,580 0 0 0 4,432 0 2,113 196 dash
20 no-host configure.ocaml 306,495 0 0 0 4,440 0 2,001 228 osh-native
28 no-host configure.ocaml 307,360 0 0 0 4,440 0 1,995 188 osh-nosouffle
36 no-host configure.ocaml 300,149 0 0 0 4,432 0 2,000 219 osh-static
5 no-host configure.tcc 5,230 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,193 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,625 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,651 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,125 0 0 0 88 0 46 2 osh-static
3 no-host configure.util-linux 1,535,896 0 0 0 35,936 0 18,973 1,073 bash
11 no-host configure.util-linux 1,694,498 1 0 0 35,936 0 17,127 1,244 dash
19 no-host configure.util-linux 1,503,294 3 0 0 35,952 0 16,116 925 osh-native
27 no-host configure.util-linux 1,517,477 2 0 0 35,944 0 16,175 952 osh-nosouffle
35 no-host configure.util-linux 1,480,333 0 0 0 35,936 0 16,103 943 osh-static
6 no-host configure.yash 173,566 0 0 0 3,616 0 880 99 bash
14 no-host configure.yash 159,482 0 0 0 3,616 0 1,000 93 dash
22 no-host configure.yash 176,300 0 0 0 3,632 0 858 104 osh-native
30 no-host configure.yash 176,853 0 0 0 3,624 0 857 104 osh-nosouffle
38 no-host configure.yash 172,752 0 0 0 3,616 0 856 99 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-94aaffa3
osh-nosouffle osh-f199e8f6
osh-static osh-static-7caf5699
host label host id
no-host no-host-bba74091