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 22 19 1.30 1.16
bin-true no-host 621 458 827 823 665 1.33 1.07
configure.cpython no-host 13,922 14,246 14,017 14,005 13,322 1.01 0.96
configure.ocaml no-host 3,713 3,735 3,810 3,794 3,737 1.03 1.01
configure.tcc no-host 47 43 48 48 44 1.02 0.93
configure.util-linux no-host 12,650 13,929 13,108 13,061 12,477 1.04 0.99
configure.yash no-host 1,770 1,718 1,754 1,744 1,727 0.99 0.98
hello-world no-host 1 1 3 3 1 2.52 1.02

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,391 1,158 3,315 3,433 2,852 1.39 1.19
bin-true no-host 101,432 49,424 133,033 135,361 112,689 1.31 1.11
configure.cpython no-host 1,620,994 1,628,690 1,578,991 1,591,115 1,524,620 0.97 0.94
configure.ocaml no-host 299,001 280,428 306,903 306,486 300,266 1.03 1.00
configure.tcc no-host 5,210 4,215 5,591 5,695 5,148 1.07 0.99
configure.util-linux no-host 1,538,184 1,698,787 1,501,794 1,518,719 1,451,541 0.98 0.94
configure.yash no-host 173,443 159,490 176,534 176,894 172,983 1.02 1.00
hello-world no-host 151 84 391 399 182 2.59 1.21

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.9 9.4 10.1 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.7 9.2 5.4 2.75 1.71
configure.cpython no-host 34.5 34.7 34.5 34.1 34.3 1.00 0.99
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.4 26.3 26.1 26.1 26.3 0.99 1.00
configure.util-linux no-host 39.5 39.6 39.7 39.6 39.6 1.01 1.00
configure.yash no-host 33.1 33.3 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 1.08

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,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 827 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 14,017 1 70 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,108 3 70 21.6 39.7 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,810 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,754 1 2 2.7 33.4 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 823 1 2 3.5 9.2 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 14,005 1 70 14.8 34.1 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,061 4 71 21.6 39.6 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,794 1 2 2.8 28.7 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,744 1 2 2.7 33.4 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 9 8 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 12 10 9.4 osh-native
31 no-host abuild-print-help 22 11 12 10.1 osh-nosouffle
39 no-host abuild-print-help 19 8 11 6.4 osh-static
1 no-host bin-true 621 315 343 3.1 bash
9 no-host bin-true 458 283 181 1.6 dash
17 no-host bin-true 827 312 534 8.7 osh-native
25 no-host bin-true 823 311 529 9.2 osh-nosouffle
33 no-host bin-true 665 338 345 5.4 osh-static
2 no-host configure.cpython 13,922 7,642 6,672 34.5 bash
10 no-host configure.cpython 14,246 7,798 6,860 34.7 dash
18 no-host configure.cpython 14,017 7,416 6,885 34.5 osh-native
26 no-host configure.cpython 14,005 7,275 7,025 34.1 osh-nosouffle
34 no-host configure.cpython 13,322 7,275 6,298 34.3 osh-static
4 no-host configure.ocaml 3,713 1,461 1,292 28.7 bash
12 no-host configure.ocaml 3,735 1,502 1,258 28.6 dash
20 no-host configure.ocaml 3,810 1,501 1,350 28.7 osh-native
28 no-host configure.ocaml 3,794 1,492 1,345 28.7 osh-nosouffle
36 no-host configure.ocaml 3,737 1,518 1,251 28.7 osh-static
5 no-host configure.tcc 47 21 27 26.4 bash
13 no-host configure.tcc 43 27 16 26.3 dash
21 no-host configure.tcc 48 24 25 26.1 osh-native
29 no-host configure.tcc 48 23 26 26.1 osh-nosouffle
37 no-host configure.tcc 44 27 18 26.3 osh-static
3 no-host configure.util-linux 12,650 6,606 6,512 39.5 bash
11 no-host configure.util-linux 13,929 6,647 7,795 39.6 dash
19 no-host configure.util-linux 13,108 6,503 6,835 39.7 osh-native
27 no-host configure.util-linux 13,061 6,363 6,938 39.6 osh-nosouffle
35 no-host configure.util-linux 12,477 6,387 6,314 39.6 osh-static
6 no-host configure.yash 1,770 969 809 33.1 bash
14 no-host configure.yash 1,718 965 753 33.3 dash
22 no-host configure.yash 1,754 952 805 33.4 osh-native
30 no-host configure.yash 1,744 995 751 33.4 osh-nosouffle
38 no-host configure.yash 1,727 1,004 725 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 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.4 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,391 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,315 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,433 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,432 0 0 0 8 0 1,996 62 bash
9 no-host bin-true 49,424 0 0 0 8 0 2,993 74 dash
17 no-host bin-true 133,033 0 0 0 16 0 1,996 69 osh-native
25 no-host bin-true 135,361 0 0 0 16 0 1,996 87 osh-nosouffle
33 no-host bin-true 112,689 0 0 0 8 0 1,998 65 osh-static
2 no-host configure.cpython 1,620,994 0 0 0 25,272 0 14,074 998 bash
10 no-host configure.cpython 1,628,690 0 0 0 25,272 0 14,125 1,018 dash
18 no-host configure.cpython 1,578,991 0 0 0 25,280 0 11,292 880 osh-native
26 no-host configure.cpython 1,591,115 0 0 0 25,280 0 11,291 846 osh-nosouffle
34 no-host configure.cpython 1,524,620 0 0 0 25,272 0 11,308 844 osh-static
4 no-host configure.ocaml 299,001 0 0 0 4,432 0 2,024 220 bash
12 no-host configure.ocaml 280,428 0 0 0 4,432 0 2,107 197 dash
20 no-host configure.ocaml 306,903 0 0 0 4,440 0 1,997 208 osh-native
28 no-host configure.ocaml 306,486 0 0 0 4,440 0 2,000 211 osh-nosouffle
36 no-host configure.ocaml 300,266 0 0 0 4,432 0 1,997 212 osh-static
5 no-host configure.tcc 5,210 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,591 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,695 0 0 0 96 0 44 3 osh-nosouffle
37 no-host configure.tcc 5,148 0 0 0 88 0 43 2 osh-static
3 no-host configure.util-linux 1,538,184 2 0 232 35,944 0 19,028 1,058 bash
11 no-host configure.util-linux 1,698,787 0 0 0 35,936 0 17,071 1,191 dash
19 no-host configure.util-linux 1,501,794 0 0 0 35,952 0 16,199 991 osh-native
27 no-host configure.util-linux 1,518,719 2 0 0 35,944 0 16,212 977 osh-nosouffle
35 no-host configure.util-linux 1,451,541 2 0 0 35,936 0 16,163 969 osh-static
6 no-host configure.yash 173,443 0 0 0 3,616 0 877 104 bash
14 no-host configure.yash 159,490 0 0 0 3,616 0 998 108 dash
22 no-host configure.yash 176,534 0 0 0 3,624 0 856 101 osh-native
30 no-host configure.yash 176,894 0 0 0 3,624 0 858 97 osh-nosouffle
38 no-host configure.yash 172,983 0 0 0 3,624 0 856 112 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 182 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-af0718cd
osh-nosouffle osh-1f91a24a
osh-static osh-static-c58d940e
host label host id
no-host no-host-9c670df1