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 463 22 20 24.53 1.18
bin-true no-host 683 545 2,298 815 804 3.36 1.19
configure.cpython no-host 14,801 14,983 28,413 15,054 15,028 1.92 1.02
configure.ocaml no-host 3,785 3,740 4,620 3,783 3,783 1.22 1.00
configure.tcc no-host 48 41 202 48 48 4.19 1.01
configure.util-linux no-host 13,961 14,741 31,120 14,149 14,122 2.23 1.01
configure.yash no-host 1,806 1,736 2,428 1,793 1,794 1.34 0.99
hello-world no-host 1 1 55 3 3 37.43 1.91

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,542 1,129 23,711 3,189 3,097 9.33 1.25
bin-true no-host 107,302 65,427 776,775 126,268 125,246 7.24 1.18
configure.cpython no-host 2,217,231 2,242,524 6,213,863 2,222,980 2,206,918 2.80 1.00
configure.ocaml no-host 411,043 390,836 647,451 412,864 412,840 1.58 1.00
configure.tcc no-host 6,591 5,495 24,074 6,967 6,904 3.65 1.06
configure.util-linux no-host 2,105,853 2,261,279 5,397,478 1,991,646 1,989,780 2.56 0.95
configure.yash no-host 255,981 245,017 389,692 258,562 257,357 1.52 1.01
hello-world no-host 151 81 3,952 344 336 26.17 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.4 22.7 9.2 8.5 5.09 2.06
bin-true no-host 3.0 1.4 18.4 8.0 7.5 6.09 2.65
configure.cpython no-host 27.4 27.4 27.5 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.1 19.4 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 18.4 6.3 5.8 6.70 2.29

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 815 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,054 1 62 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,149 3 60 21.2 30.3 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,783 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.5 24.4 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 9.2 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 804 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,028 1 61 14.9 27.5 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,122 3 60 21.2 30.0 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,783 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,794 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 20 1 2 2.8 8.5 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 15 4 4.5 bash
15 no-host abuild-print-help 9 5 5 3.4 dash
23 no-host abuild-print-help 463 412 54 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 9.2 osh-native
39 no-host abuild-print-help 20 18 3 8.5 osh-native-souffle
1 no-host bin-true 683 506 209 3.0 bash
9 no-host bin-true 545 409 143 1.4 dash
17 no-host bin-true 2,298 1,455 1,102 18.4 osh-cpython
25 no-host bin-true 815 573 257 8.0 osh-native
33 no-host bin-true 804 563 255 7.5 osh-native-souffle
2 no-host configure.cpython 14,801 8,968 6,223 27.4 bash
10 no-host configure.cpython 14,983 9,216 6,195 27.4 dash
18 no-host configure.cpython 28,413 17,513 12,724 27.5 osh-cpython
26 no-host configure.cpython 15,054 9,017 6,302 27.5 osh-native
34 no-host configure.cpython 15,028 8,856 6,307 27.5 osh-native-souffle
4 no-host configure.ocaml 3,785 1,613 1,213 20.6 bash
12 no-host configure.ocaml 3,740 1,592 1,169 20.6 dash
20 no-host configure.ocaml 4,620 2,310 1,520 20.6 osh-cpython
28 no-host configure.ocaml 3,783 1,591 1,232 20.4 osh-native
36 no-host configure.ocaml 3,783 1,661 1,157 20.4 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.1 bash
13 no-host configure.tcc 41 30 11 19.4 dash
21 no-host configure.tcc 202 161 45 19.3 osh-cpython
29 no-host configure.tcc 48 22 27 19.3 osh-native
37 no-host configure.tcc 48 28 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,961 8,931 5,498 30.1 bash
11 no-host configure.util-linux 14,741 9,161 6,078 30.0 dash
19 no-host configure.util-linux 31,120 20,928 11,290 30.1 osh-cpython
27 no-host configure.util-linux 14,149 8,698 5,644 30.3 osh-native
35 no-host configure.util-linux 14,122 8,570 5,742 30.0 osh-native-souffle
6 no-host configure.yash 1,806 1,047 769 24.2 bash
14 no-host configure.yash 1,736 1,025 714 24.4 dash
22 no-host configure.yash 2,428 1,429 1,040 24.5 osh-cpython
30 no-host configure.yash 1,793 1,041 756 24.4 osh-native
38 no-host configure.yash 1,794 1,060 738 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 47 8 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,542 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,711 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,302 0 0 0 8 0 1,996 94 bash
9 no-host bin-true 65,427 0 0 0 8 0 1,985 52 dash
17 no-host bin-true 776,775 0 0 0 8 0 2,000 326 osh-cpython
25 no-host bin-true 126,268 0 0 0 16 0 1,989 63 osh-native
33 no-host bin-true 125,246 0 0 0 16 0 1,993 61 osh-native-souffle
2 no-host configure.cpython 2,217,231 0 0 0 32,928 0 14,546 976 bash
10 no-host configure.cpython 2,242,524 0 0 0 32,992 0 14,536 1,032 dash
18 no-host configure.cpython 6,213,863 0 0 0 27,512 0 13,301 1,124 osh-cpython
26 no-host configure.cpython 2,222,980 0 0 0 27,520 0 13,304 978 osh-native
34 no-host configure.cpython 2,206,918 0 0 0 27,520 0 13,204 989 osh-native-souffle
4 no-host configure.ocaml 411,043 0 0 0 5,120 0 1,950 164 bash
12 no-host configure.ocaml 390,836 0 0 0 5,112 0 1,907 136 dash
20 no-host configure.ocaml 647,451 0 0 0 5,112 0 1,861 167 osh-cpython
28 no-host configure.ocaml 412,864 0 0 0 5,120 0 1,934 150 osh-native
36 no-host configure.ocaml 412,840 0 0 0 5,120 0 1,930 149 osh-native-souffle
5 no-host configure.tcc 6,591 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,074 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,105,853 0 0 0 42,400 0 18,559 984 bash
11 no-host configure.util-linux 2,261,279 0 0 0 42,584 0 17,454 1,003 dash
19 no-host configure.util-linux 5,397,478 13 0 0 39,112 0 17,010 1,173 osh-cpython
27 no-host configure.util-linux 1,991,646 0 0 0 39,120 0 16,972 1,005 osh-native
35 no-host configure.util-linux 1,989,780 1 0 0 39,128 0 16,985 1,015 osh-native-souffle
6 no-host configure.yash 255,981 0 0 0 4,120 0 872 68 bash
14 no-host configure.yash 245,017 0 0 0 3,720 0 870 65 dash
22 no-host configure.yash 389,692 0 0 0 3,728 0 852 101 osh-cpython
30 no-host configure.yash 258,562 0 0 0 3,736 0 852 72 osh-native
38 no-host configure.yash 257,357 0 0 0 3,736 0 849 83 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,952 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-dcf6feeb
dash dash-0ebcf347
osh-cpython osh-2283517f
osh-native osh-54a8ce84
osh-native-souffle osh-78795483
host label host id
no-host no-host-556df3ee