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 464 22 21 24.25 1.16
bin-true no-host 683 541 2,276 817 803 3.33 1.20
configure.cpython no-host 15,141 15,151 28,836 15,240 15,336 1.90 1.01
configure.ocaml no-host 3,812 3,752 4,664 3,820 3,811 1.22 1.00
configure.tcc no-host 50 42 203 49 49 4.05 0.97
configure.util-linux no-host 14,082 14,840 31,512 14,405 14,303 2.24 1.02
configure.yash no-host 1,815 1,769 2,473 1,829 1,822 1.36 1.01
hello-world no-host 2 1 56 3 3 37.35 1.90

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,535 1,101 23,691 3,180 3,098 9.35 1.25
bin-true no-host 106,408 66,432 771,057 128,202 123,308 7.25 1.20
configure.cpython no-host 2,213,014 2,240,822 6,205,322 2,212,935 2,214,153 2.80 1.00
configure.ocaml no-host 411,071 391,392 647,026 413,176 412,730 1.57 1.01
configure.tcc no-host 6,540 5,473 24,130 6,953 6,889 3.69 1.06
configure.util-linux no-host 2,104,489 2,263,545 5,373,969 1,989,578 1,994,748 2.55 0.95
configure.yash no-host 256,460 244,631 388,007 257,942 258,220 1.51 1.01
hello-world no-host 151 81 3,942 344 338 26.11 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.3 3.4 22.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.4 27.3 27.4 27.5 27.3 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.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 29.9 30.4 30.1 30.3 1.01 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.9 1.4 18.4 6.4 5.9 6.37 2.23

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 817 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 15,240 2 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,405 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,820 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.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,829 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.0 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 803 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,336 1 62 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,303 3 61 21.2 30.3 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,811 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.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,822 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.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 13 6 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 464 410 57 22.7 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 683 516 200 2.9 bash
9 no-host bin-true 541 414 136 1.4 dash
17 no-host bin-true 2,276 1,450 1,078 18.4 osh-cpython
25 no-host bin-true 817 611 220 8.1 osh-native
33 no-host bin-true 803 555 261 7.6 osh-native-souffle
2 no-host configure.cpython 15,141 9,132 6,401 27.4 bash
10 no-host configure.cpython 15,151 9,133 6,447 27.3 dash
18 no-host configure.cpython 28,836 17,635 13,044 27.4 osh-cpython
26 no-host configure.cpython 15,240 8,784 6,721 27.5 osh-native
34 no-host configure.cpython 15,336 8,967 6,500 27.3 osh-native-souffle
4 no-host configure.ocaml 3,812 1,665 1,187 20.6 bash
12 no-host configure.ocaml 3,752 1,611 1,162 20.4 dash
20 no-host configure.ocaml 4,664 2,309 1,560 20.6 osh-cpython
28 no-host configure.ocaml 3,820 1,619 1,240 20.6 osh-native
36 no-host configure.ocaml 3,811 1,614 1,233 20.6 osh-native-souffle
5 no-host configure.tcc 50 38 10 19.3 bash
13 no-host configure.tcc 42 37 6 19.3 dash
21 no-host configure.tcc 203 140 67 19.3 osh-cpython
29 no-host configure.tcc 49 37 12 19.3 osh-native
37 no-host configure.tcc 49 27 22 19.4 osh-native-souffle
3 no-host configure.util-linux 14,082 8,798 5,764 30.1 bash
11 no-host configure.util-linux 14,840 9,168 6,163 29.9 dash
19 no-host configure.util-linux 31,512 21,058 11,525 30.4 osh-cpython
27 no-host configure.util-linux 14,405 8,641 5,968 30.1 osh-native
35 no-host configure.util-linux 14,303 8,714 5,803 30.3 osh-native-souffle
6 no-host configure.yash 1,815 1,009 816 24.4 bash
14 no-host configure.yash 1,769 980 792 24.2 dash
22 no-host configure.yash 2,473 1,501 1,013 24.2 osh-cpython
30 no-host configure.yash 1,829 1,076 756 24.4 osh-native
38 no-host configure.yash 1,822 1,044 782 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 30 26 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,535 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,691 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,180 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,098 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,408 0 0 0 8 0 1,989 50 bash
9 no-host bin-true 66,432 0 0 0 8 0 1,986 41 dash
17 no-host bin-true 771,057 0 0 0 8 0 1,988 112 osh-cpython
25 no-host bin-true 128,202 0 0 0 16 0 1,990 50 osh-native
33 no-host bin-true 123,308 0 0 0 16 0 1,986 73 osh-native-souffle
2 no-host configure.cpython 2,213,014 0 0 0 32,928 0 14,490 1,069 bash
10 no-host configure.cpython 2,240,822 0 0 0 32,992 0 14,589 1,260 dash
18 no-host configure.cpython 6,205,322 1 0 0 27,512 0 13,252 1,211 osh-cpython
26 no-host configure.cpython 2,212,935 0 0 0 27,520 0 13,204 921 osh-native
34 no-host configure.cpython 2,214,153 0 0 0 27,520 0 13,206 988 osh-native-souffle
4 no-host configure.ocaml 411,071 0 0 0 5,120 0 1,952 148 bash
12 no-host configure.ocaml 391,392 0 0 0 5,112 0 1,923 153 dash
20 no-host configure.ocaml 647,026 0 0 0 5,112 0 1,858 179 osh-cpython
28 no-host configure.ocaml 413,176 0 0 0 5,120 0 1,928 179 osh-native
36 no-host configure.ocaml 412,730 0 0 0 5,120 0 1,929 163 osh-native-souffle
5 no-host configure.tcc 6,540 0 0 0 104 0 50 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,130 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,889 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,489 0 0 0 42,400 0 18,577 1,006 bash
11 no-host configure.util-linux 2,263,545 2 0 0 42,584 0 17,443 997 dash
19 no-host configure.util-linux 5,373,969 15 0 0 39,112 0 16,968 1,255 osh-cpython
27 no-host configure.util-linux 1,989,578 0 0 0 39,120 0 16,951 1,118 osh-native
35 no-host configure.util-linux 1,994,748 0 0 0 39,128 0 16,915 932 osh-native-souffle
6 no-host configure.yash 256,460 0 0 0 4,120 0 871 62 bash
14 no-host configure.yash 244,631 0 0 0 3,720 0 872 83 dash
22 no-host configure.yash 388,007 0 0 0 3,728 0 855 88 osh-cpython
30 no-host configure.yash 257,942 0 0 0 3,736 0 848 77 osh-native
38 no-host configure.yash 258,220 0 0 0 3,736 0 849 78 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,942 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-881bdb28
dash dash-0ebcf347
osh-cpython osh-76d65c62
osh-native osh-33434d45
osh-native-souffle osh-81a61929
host label host id
no-host no-host-556df3ee