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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 465 22 21 24.54 1.16
bin-true no-host 677 544 2,273 813 814 3.36 1.20
configure.cpython no-host 14,933 14,985 28,565 15,190 15,381 1.91 1.02
configure.ocaml no-host 3,801 3,765 4,630 3,836 3,817 1.22 1.01
configure.tcc no-host 48 41 202 49 49 4.19 1.01
configure.util-linux no-host 13,938 14,809 31,311 14,459 14,254 2.25 1.04
configure.yash no-host 1,831 1,777 2,452 1,837 1,808 1.34 1.00
hello-world no-host 1 1 56 3 3 38.00 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,518 1,110 23,715 3,211 3,096 9.42 1.28
bin-true no-host 107,330 65,536 768,453 128,323 125,292 7.16 1.20
configure.cpython no-host 2,228,812 2,241,904 6,200,012 2,224,659 2,207,941 2.78 1.00
configure.ocaml no-host 410,563 391,018 645,754 413,133 412,285 1.57 1.01
configure.tcc no-host 6,552 5,460 24,001 6,959 6,898 3.66 1.06
configure.util-linux no-host 2,099,115 2,255,723 5,370,845 1,996,058 1,986,731 2.56 0.95
configure.yash no-host 255,832 244,148 388,246 258,323 258,349 1.52 1.01
hello-world no-host 149 82 3,940 339 337 26.44 2.28

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 22.8 8.9 8.4 5.12 2.00
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.3 27.4 27.4 27.5 27.3 1.00 1.01
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.2 24.4 1.01 0.99
hello-world no-host 2.6 1.4 18.2 6.3 5.6 6.96 2.40

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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,190 1 61 14.9 27.5 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,459 3 59 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,836 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,837 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.6 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,381 1 60 14.9 27.3 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,254 3 58 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,817 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,808 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 19 13 7 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 465 429 39 22.8 osh-cpython
31 no-host abuild-print-help 22 14 8 8.9 osh-native
39 no-host abuild-print-help 21 20 2 8.4 osh-native-souffle
1 no-host bin-true 677 505 203 3.0 bash
9 no-host bin-true 544 418 135 1.4 dash
17 no-host bin-true 2,273 1,447 1,078 18.4 osh-cpython
25 no-host bin-true 813 566 264 8.0 osh-native
33 no-host bin-true 814 580 247 7.6 osh-native-souffle
2 no-host configure.cpython 14,933 8,959 6,378 27.3 bash
10 no-host configure.cpython 14,985 8,912 6,492 27.4 dash
18 no-host configure.cpython 28,565 17,504 12,891 27.4 osh-cpython
26 no-host configure.cpython 15,190 8,867 6,591 27.5 osh-native
34 no-host configure.cpython 15,381 9,098 6,416 27.3 osh-native-souffle
4 no-host configure.ocaml 3,801 1,543 1,290 20.4 bash
12 no-host configure.ocaml 3,765 1,637 1,146 20.6 dash
20 no-host configure.ocaml 4,630 2,180 1,655 20.6 osh-cpython
28 no-host configure.ocaml 3,836 1,663 1,209 20.6 osh-native
36 no-host configure.ocaml 3,817 1,626 1,228 20.6 osh-native-souffle
5 no-host configure.tcc 48 22 26 19.3 bash
13 no-host configure.tcc 41 25 16 19.3 dash
21 no-host configure.tcc 202 150 55 19.3 osh-cpython
29 no-host configure.tcc 49 28 21 19.4 osh-native
37 no-host configure.tcc 49 29 20 19.3 osh-native-souffle
3 no-host configure.util-linux 13,938 8,775 5,641 30.3 bash
11 no-host configure.util-linux 14,809 9,185 6,117 30.3 dash
19 no-host configure.util-linux 31,311 20,918 11,475 30.3 osh-cpython
27 no-host configure.util-linux 14,459 8,760 5,897 30.1 osh-native
35 no-host configure.util-linux 14,254 8,691 5,754 30.1 osh-native-souffle
6 no-host configure.yash 1,831 1,046 794 24.4 bash
14 no-host configure.yash 1,777 1,058 722 24.2 dash
22 no-host configure.yash 2,452 1,521 971 24.5 osh-cpython
30 no-host configure.yash 1,837 1,044 798 24.2 osh-native
38 no-host configure.yash 1,808 1,049 760 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 28 27 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.6 osh-native-souffle

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,518 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,715 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,211 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 107,330 0 0 0 8 0 1,993 105 bash
9 no-host bin-true 65,536 0 0 0 8 0 1,992 110 dash
17 no-host bin-true 768,453 0 0 0 8 0 1,999 94 osh-cpython
25 no-host bin-true 128,323 0 0 0 16 0 1,987 51 osh-native
33 no-host bin-true 125,292 0 0 0 16 0 1,993 68 osh-native-souffle
2 no-host configure.cpython 2,228,812 0 0 0 32,928 0 14,410 1,104 bash
10 no-host configure.cpython 2,241,904 0 0 0 32,992 0 14,612 1,007 dash
18 no-host configure.cpython 6,200,012 0 0 0 27,512 0 13,208 1,292 osh-cpython
26 no-host configure.cpython 2,224,659 0 0 0 27,520 0 13,174 927 osh-native
34 no-host configure.cpython 2,207,941 0 0 0 27,520 0 13,257 1,058 osh-native-souffle
4 no-host configure.ocaml 410,563 0 0 0 5,120 0 1,956 277 bash
12 no-host configure.ocaml 391,018 0 0 0 5,112 0 1,873 150 dash
20 no-host configure.ocaml 645,754 0 0 0 5,112 0 1,861 179 osh-cpython
28 no-host configure.ocaml 413,133 0 0 0 5,120 0 1,922 174 osh-native
36 no-host configure.ocaml 412,285 0 0 0 5,120 0 1,928 245 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 12 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,001 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,898 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,099,115 1 0 0 42,400 0 18,712 1,005 bash
11 no-host configure.util-linux 2,255,723 0 0 0 42,584 0 17,440 1,000 dash
19 no-host configure.util-linux 5,370,845 14 0 0 39,112 0 17,042 1,189 osh-cpython
27 no-host configure.util-linux 1,996,058 2 0 0 39,120 0 16,955 970 osh-native
35 no-host configure.util-linux 1,986,731 0 0 0 39,128 0 16,933 1,080 osh-native-souffle
6 no-host configure.yash 255,832 0 0 0 4,120 0 867 86 bash
14 no-host configure.yash 244,148 0 0 0 3,720 0 865 89 dash
22 no-host configure.yash 388,246 0 0 0 3,728 0 853 100 osh-cpython
30 no-host configure.yash 258,323 0 0 0 3,736 0 849 79 osh-native
38 no-host configure.yash 258,349 0 0 0 3,736 0 849 75 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,940 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b2e1ef8e
dash dash-0ebcf347
osh-cpython osh-e6d70cf8
osh-native osh-30026898
osh-native-souffle osh-a36ef5e9
host label host id
no-host no-host-556df3ee