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 474 22 21 24.82 1.13
bin-true no-host 673 542 2,304 812 807 3.42 1.21
configure.cpython no-host 15,092 14,954 28,596 15,112 15,217 1.89 1.00
configure.ocaml no-host 3,791 3,698 4,605 3,790 3,797 1.21 1.00
configure.tcc no-host 47 41 204 48 48 4.33 1.02
configure.util-linux no-host 14,011 14,788 31,272 14,185 14,162 2.23 1.01
configure.yash no-host 1,808 1,752 2,451 1,805 1,809 1.36 1.00
hello-world no-host 1 1 56 3 3 38.18 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,542 1,095 23,689 3,179 3,097 9.32 1.25
bin-true no-host 106,423 67,454 773,312 127,180 126,271 7.27 1.20
configure.cpython no-host 2,219,662 2,237,632 6,211,821 2,213,608 2,205,217 2.80 1.00
configure.ocaml no-host 410,996 390,538 646,131 413,409 412,777 1.57 1.01
configure.tcc no-host 6,565 5,476 24,074 6,950 6,901 3.67 1.06
configure.util-linux no-host 2,107,921 2,260,743 5,371,107 1,995,829 1,993,050 2.55 0.95
configure.yash no-host 254,992 244,864 388,098 258,188 257,119 1.52 1.01
hello-world no-host 148 82 3,938 347 337 26.61 2.34

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.6 8.9 8.7 5.06 2.00
bin-true no-host 3.0 1.4 18.5 8.0 7.9 6.14 2.65
configure.cpython no-host 27.4 27.5 27.3 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.2 24.5 1.01 0.99
hello-world no-host 2.6 1.4 18.2 6.3 5.9 6.95 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 812 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,112 1 60 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,185 3 58 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,790 0 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 48 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,805 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.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,217 1 58 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 14,162 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,797 0 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 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,809 1 2 2.5 24.5 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.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 19 12 8 4.5 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 474 423 54 22.6 osh-cpython
31 no-host abuild-print-help 22 16 6 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 673 497 206 3.0 bash
9 no-host bin-true 542 425 129 1.4 dash
17 no-host bin-true 2,304 1,480 1,081 18.5 osh-cpython
25 no-host bin-true 812 567 261 8.0 osh-native
33 no-host bin-true 807 578 243 7.9 osh-native-souffle
2 no-host configure.cpython 15,092 8,959 6,531 27.4 bash
10 no-host configure.cpython 14,954 8,876 6,485 27.5 dash
18 no-host configure.cpython 28,596 17,542 12,881 27.3 osh-cpython
26 no-host configure.cpython 15,112 8,769 6,603 27.5 osh-native
34 no-host configure.cpython 15,217 8,876 6,474 27.4 osh-native-souffle
4 no-host configure.ocaml 3,791 1,625 1,196 20.6 bash
12 no-host configure.ocaml 3,698 1,565 1,152 20.4 dash
20 no-host configure.ocaml 4,605 2,289 1,519 20.6 osh-cpython
28 no-host configure.ocaml 3,790 1,594 1,236 20.6 osh-native
36 no-host configure.ocaml 3,797 1,612 1,222 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 41 20 21 19.4 dash
21 no-host configure.tcc 204 143 63 19.4 osh-cpython
29 no-host configure.tcc 48 42 7 19.4 osh-native
37 no-host configure.tcc 48 27 22 19.4 osh-native-souffle
3 no-host configure.util-linux 14,011 8,938 5,535 30.1 bash
11 no-host configure.util-linux 14,788 9,075 6,206 30.0 dash
19 no-host configure.util-linux 31,272 20,757 11,574 30.1 osh-cpython
27 no-host configure.util-linux 14,185 8,698 5,678 30.1 osh-native
35 no-host configure.util-linux 14,162 8,489 5,867 30.1 osh-native-souffle
6 no-host configure.yash 1,808 1,049 767 24.4 bash
14 no-host configure.yash 1,752 1,081 675 24.2 dash
22 no-host configure.yash 2,451 1,539 951 24.5 osh-cpython
30 no-host configure.yash 1,805 1,005 803 24.2 osh-native
38 no-host configure.yash 1,809 1,058 755 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 40 16 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.9 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,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,689 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,179 0 0 0 16 0 39 1 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 106,423 0 0 0 8 0 1,990 54 bash
9 no-host bin-true 67,454 0 0 0 8 0 1,985 89 dash
17 no-host bin-true 773,312 0 0 0 8 0 2,000 218 osh-cpython
25 no-host bin-true 127,180 0 0 0 16 0 1,993 90 osh-native
33 no-host bin-true 126,271 0 0 0 16 0 1,994 67 osh-native-souffle
2 no-host configure.cpython 2,219,662 1 0 0 32,928 0 14,491 971 bash
10 no-host configure.cpython 2,237,632 1 0 0 32,992 0 14,576 888 dash
18 no-host configure.cpython 6,211,821 0 0 0 27,512 0 13,257 1,156 osh-cpython
26 no-host configure.cpython 2,213,608 0 0 0 27,520 0 13,267 1,103 osh-native
34 no-host configure.cpython 2,205,217 0 0 0 27,520 0 13,264 1,088 osh-native-souffle
4 no-host configure.ocaml 410,996 0 0 0 5,120 0 1,951 206 bash
12 no-host configure.ocaml 390,538 0 0 0 5,112 0 1,906 139 dash
20 no-host configure.ocaml 646,131 0 0 0 5,112 0 1,862 160 osh-cpython
28 no-host configure.ocaml 413,409 0 0 0 5,120 0 1,930 181 osh-native
36 no-host configure.ocaml 412,777 0 0 0 5,120 0 1,926 162 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,074 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,107,921 0 0 0 42,400 0 18,593 1,053 bash
11 no-host configure.util-linux 2,260,743 3 0 0 42,584 0 17,566 1,060 dash
19 no-host configure.util-linux 5,371,107 8 0 0 39,112 0 16,984 1,187 osh-cpython
27 no-host configure.util-linux 1,995,829 0 0 0 39,120 0 16,968 942 osh-native
35 no-host configure.util-linux 1,993,050 1 0 0 39,136 0 16,959 1,003 osh-native-souffle
6 no-host configure.yash 254,992 0 0 0 4,120 0 868 71 bash
14 no-host configure.yash 244,864 0 0 0 3,720 0 868 82 dash
22 no-host configure.yash 388,098 0 0 0 3,728 0 854 103 osh-cpython
30 no-host configure.yash 258,188 0 0 0 3,736 0 850 78 osh-native
38 no-host configure.yash 257,119 0 0 0 3,736 0 849 92 osh-native-souffle
0 no-host hello-world 148 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,938 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 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-235be687
dash dash-0ebcf347
osh-cpython osh-e5d6f14c
osh-native osh-95183ca7
osh-native-souffle osh-d135273e
host label host id
no-host no-host-556df3ee