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 20 10 486 23 23 24.29 1.16
bin-true no-host 695 549 2,412 829 840 3.47 1.19
configure.cpython no-host 16,262 16,270 31,203 16,600 16,667 1.92 1.02
configure.ocaml no-host 4,031 3,971 4,958 4,076 4,049 1.23 1.01
configure.tcc no-host 50 45 223 52 53 4.45 1.05
configure.util-linux no-host 15,112 16,071 34,267 15,551 15,366 2.27 1.03
configure.yash no-host 1,937 1,892 2,647 1,929 1,958 1.37 1.00
hello-world no-host 2 1 65 3 3 39.97 1.93

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,510 1,087 23,706 3,225 3,100 9.44 1.28
bin-true no-host 105,353 66,445 777,669 126,217 126,217 7.38 1.20
configure.cpython no-host 2,221,285 2,235,980 6,207,503 2,229,461 2,207,365 2.79 1.00
configure.ocaml no-host 411,267 391,557 646,945 413,563 412,524 1.57 1.01
configure.tcc no-host 6,558 5,485 24,055 6,968 6,899 3.67 1.06
configure.util-linux no-host 2,106,769 2,263,793 5,396,920 1,994,155 1,993,786 2.56 0.95
configure.yash no-host 256,676 244,210 388,229 257,296 257,952 1.51 1.00
hello-world no-host 154 81 3,941 343 338 25.59 2.23

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.3 3.4 22.7 8.9 8.7 5.25 2.06
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.1 27.5 27.4 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 29.8 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 24.4 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.2 6.0 6.32 2.14

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 829 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 16,600 2 73 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 15,551 3 71 21.2 30.3 2,702,622 53,766 65,691 108,721 1,290,676 1,303,225 32,242 41 131,382 1
configure.ocaml no-host 4,076 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 52 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,929 1 2 2.5 24.5 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 840 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 16,667 2 73 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 15,366 3 70 21.2 30.1 2,702,622 53,693 65,629 108,723 1,290,676 1,303,223 32,242 41 131,258 1
configure.ocaml no-host 4,049 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 53 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,958 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 23 1 2 2.8 8.7 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 20 10 10 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 486 439 51 22.7 osh-cpython
31 no-host abuild-print-help 23 16 8 8.9 osh-native
39 no-host abuild-print-help 23 12 12 8.7 osh-native-souffle
1 no-host bin-true 695 515 210 2.9 bash
9 no-host bin-true 549 420 139 1.4 dash
17 no-host bin-true 2,412 1,569 1,124 18.4 osh-cpython
25 no-host bin-true 829 590 253 8.1 osh-native
33 no-host bin-true 840 596 259 7.6 osh-native-souffle
2 no-host configure.cpython 16,262 9,624 7,056 27.1 bash
10 no-host configure.cpython 16,270 10,024 6,695 27.5 dash
18 no-host configure.cpython 31,203 18,468 14,786 27.4 osh-cpython
26 no-host configure.cpython 16,600 9,890 6,990 27.4 osh-native
34 no-host configure.cpython 16,667 9,771 7,043 27.4 osh-native-souffle
4 no-host configure.ocaml 4,031 1,709 1,362 20.6 bash
12 no-host configure.ocaml 3,971 1,671 1,311 20.6 dash
20 no-host configure.ocaml 4,958 2,456 1,729 20.4 osh-cpython
28 no-host configure.ocaml 4,076 1,787 1,329 20.6 osh-native
36 no-host configure.ocaml 4,049 1,760 1,326 20.6 osh-native-souffle
5 no-host configure.tcc 50 36 15 19.3 bash
13 no-host configure.tcc 45 28 17 19.3 dash
21 no-host configure.tcc 223 161 65 19.3 osh-cpython
29 no-host configure.tcc 52 32 21 19.3 osh-native
37 no-host configure.tcc 53 31 22 19.4 osh-native-souffle
3 no-host configure.util-linux 15,112 9,415 6,202 30.1 bash
11 no-host configure.util-linux 16,071 9,965 6,619 29.8 dash
19 no-host configure.util-linux 34,267 22,748 12,667 30.0 osh-cpython
27 no-host configure.util-linux 15,551 9,239 6,506 30.3 osh-native
35 no-host configure.util-linux 15,366 9,140 6,422 30.1 osh-native-souffle
6 no-host configure.yash 1,937 1,105 842 24.4 bash
14 no-host configure.yash 1,892 1,075 821 24.4 dash
22 no-host configure.yash 2,647 1,539 1,149 24.4 osh-cpython
30 no-host configure.yash 1,929 1,121 813 24.5 osh-native
38 no-host configure.yash 1,958 1,135 827 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 65 40 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 6.0 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,510 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,706 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,225 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,353 0 0 0 8 0 1,990 41 bash
9 no-host bin-true 66,445 0 0 0 8 0 1,986 37 dash
17 no-host bin-true 777,669 0 0 0 8 0 1,999 255 osh-cpython
25 no-host bin-true 126,217 0 0 0 16 0 1,980 78 osh-native
33 no-host bin-true 126,217 0 0 0 16 0 1,988 115 osh-native-souffle
2 no-host configure.cpython 2,221,285 0 0 0 32,928 0 14,500 962 bash
10 no-host configure.cpython 2,235,980 0 0 0 32,992 0 14,677 1,217 dash
18 no-host configure.cpython 6,207,503 1 0 0 27,512 0 13,260 1,343 osh-cpython
26 no-host configure.cpython 2,229,461 0 0 0 27,520 0 13,306 1,018 osh-native
34 no-host configure.cpython 2,207,365 0 0 0 27,520 0 13,217 925 osh-native-souffle
4 no-host configure.ocaml 411,267 0 0 0 5,120 0 1,947 155 bash
12 no-host configure.ocaml 391,557 0 0 0 5,112 0 1,932 145 dash
20 no-host configure.ocaml 646,945 0 0 0 5,112 0 1,849 195 osh-cpython
28 no-host configure.ocaml 413,563 0 0 0 5,120 0 1,925 170 osh-native
36 no-host configure.ocaml 412,524 0 0 0 5,120 0 1,928 161 osh-native-souffle
5 no-host configure.tcc 6,558 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,055 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,899 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,769 0 0 0 42,400 0 18,633 1,061 bash
11 no-host configure.util-linux 2,263,793 2 0 0 42,592 0 17,433 1,018 dash
19 no-host configure.util-linux 5,396,920 6 0 0 39,120 0 16,945 1,293 osh-cpython
27 no-host configure.util-linux 1,994,155 1 0 0 39,144 0 16,955 1,016 osh-native
35 no-host configure.util-linux 1,993,786 0 0 0 39,152 0 16,985 990 osh-native-souffle
6 no-host configure.yash 256,676 0 0 0 4,120 0 867 103 bash
14 no-host configure.yash 244,210 0 0 0 3,720 0 868 71 dash
22 no-host configure.yash 388,229 0 0 0 3,728 0 852 94 osh-cpython
30 no-host configure.yash 257,296 0 0 0 3,736 0 846 73 osh-native
38 no-host configure.yash 257,952 0 0 0 3,736 0 846 80 osh-native-souffle
0 no-host hello-world 154 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,941 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b4b80fdb
dash dash-0ebcf347
osh-cpython osh-85b520dd
osh-native osh-0c45ee92
osh-native-souffle osh-a6182619
host label host id
no-host no-host-556df3ee