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 10 525 22 25 27.56 1.14
bin-true no-host 676 547 2,244 846 831 3.32 1.25
configure.cpython no-host 15,127 15,240 28,917 17,100 15,718 1.91 1.13
configure.ocaml no-host 3,822 3,729 4,865 3,990 4,023 1.27 1.04
configure.tcc no-host 48 42 236 49 57 4.92 1.01
configure.util-linux no-host 14,296 14,803 33,394 15,252 14,643 2.34 1.07
configure.yash no-host 1,836 1,762 2,786 1,848 2,053 1.52 1.01
hello-world no-host 1 1 56 3 3 38.18 2.19

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,569 1,105 23,717 3,159 3,129 9.23 1.23
bin-true no-host 105,402 66,457 773,680 125,279 126,220 7.34 1.19
configure.cpython no-host 2,227,652 2,246,412 6,210,674 2,211,779 2,203,256 2.79 0.99
configure.ocaml no-host 410,524 390,961 647,252 412,318 412,743 1.58 1.00
configure.tcc no-host 6,577 5,470 24,079 6,952 6,939 3.66 1.06
configure.util-linux no-host 2,102,539 2,257,821 5,396,992 1,987,892 1,994,720 2.57 0.95
configure.yash no-host 255,566 244,616 388,843 258,223 257,627 1.52 1.01
hello-world no-host 150 78 3,947 344 337 26.31 2.29

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.0 8.4 5.09 2.03
bin-true no-host 3.0 1.4 18.2 8.3 7.7 6.05 2.74
configure.cpython no-host 27.3 27.3 27.5 27.4 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 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 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 24.2 1.00 1.01
hello-world no-host 2.8 1.4 18.2 6.2 6.0 6.62 2.24

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 846 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 17,100 2 74 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,252 3 71 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,990 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,848 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 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 831 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,718 1 64 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,643 3 62 21.2 30.1 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 4,023 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 57 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 2,053 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 25 1 3 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 10 4 6 3.4 dash
23 no-host abuild-print-help 525 471 58 22.7 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
39 no-host abuild-print-help 25 17 8 8.4 osh-native-souffle
1 no-host bin-true 676 500 207 3.0 bash
9 no-host bin-true 547 429 126 1.4 dash
17 no-host bin-true 2,244 1,509 988 18.2 osh-cpython
25 no-host bin-true 846 584 277 8.3 osh-native
33 no-host bin-true 831 580 264 7.7 osh-native-souffle
2 no-host configure.cpython 15,127 9,216 6,307 27.3 bash
10 no-host configure.cpython 15,240 9,156 6,508 27.3 dash
18 no-host configure.cpython 28,917 17,565 13,228 27.5 osh-cpython
26 no-host configure.cpython 17,100 10,000 7,392 27.4 osh-native
34 no-host configure.cpython 15,718 9,097 6,700 27.5 osh-native-souffle
4 no-host configure.ocaml 3,822 1,597 1,264 20.6 bash
12 no-host configure.ocaml 3,729 1,541 1,207 20.6 dash
20 no-host configure.ocaml 4,865 2,359 1,755 20.6 osh-cpython
28 no-host configure.ocaml 3,990 1,722 1,307 20.6 osh-native
36 no-host configure.ocaml 4,023 1,696 1,366 20.4 osh-native-souffle
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 32 9 19.3 dash
21 no-host configure.tcc 236 166 74 19.3 osh-cpython
29 no-host configure.tcc 49 22 27 19.3 osh-native
37 no-host configure.tcc 57 29 28 19.4 osh-native-souffle
3 no-host configure.util-linux 14,296 9,087 5,697 30.1 bash
11 no-host configure.util-linux 14,803 9,210 6,085 30.1 dash
19 no-host configure.util-linux 33,394 22,032 12,536 30.0 osh-cpython
27 no-host configure.util-linux 15,252 9,180 6,276 30.1 osh-native
35 no-host configure.util-linux 14,643 8,668 6,172 30.1 osh-native-souffle
6 no-host configure.yash 1,836 1,015 830 24.4 bash
14 no-host configure.yash 1,762 1,033 732 24.4 dash
22 no-host configure.yash 2,786 1,706 1,128 24.4 osh-cpython
30 no-host configure.yash 1,848 1,102 749 24.5 osh-native
38 no-host configure.yash 2,053 1,180 877 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 38 18 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 0 3 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,569 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,717 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,159 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,129 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,402 0 0 0 8 0 1,994 74 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,990 40 dash
17 no-host bin-true 773,680 0 0 0 8 0 1,989 92 osh-cpython
25 no-host bin-true 125,279 0 0 0 16 0 1,990 70 osh-native
33 no-host bin-true 126,220 0 0 0 16 0 1,983 97 osh-native-souffle
2 no-host configure.cpython 2,227,652 0 0 0 32,928 0 14,458 1,173 bash
10 no-host configure.cpython 2,246,412 0 0 0 32,992 0 14,597 1,071 dash
18 no-host configure.cpython 6,210,674 0 0 0 27,512 0 13,233 1,156 osh-cpython
26 no-host configure.cpython 2,211,779 0 0 0 27,520 0 13,173 1,002 osh-native
34 no-host configure.cpython 2,203,256 0 0 0 27,520 0 13,213 938 osh-native-souffle
4 no-host configure.ocaml 410,524 0 0 0 5,120 0 1,943 186 bash
12 no-host configure.ocaml 390,961 0 0 0 5,112 0 1,888 158 dash
20 no-host configure.ocaml 647,252 0 0 0 5,112 0 1,854 242 osh-cpython
28 no-host configure.ocaml 412,318 0 0 0 5,120 0 1,928 173 osh-native
36 no-host configure.ocaml 412,743 0 0 0 5,120 0 1,932 154 osh-native-souffle
5 no-host configure.tcc 6,577 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,079 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 46 1 osh-native
37 no-host configure.tcc 6,939 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 2,102,539 1 0 0 42,400 0 18,640 1,150 bash
11 no-host configure.util-linux 2,257,821 1 0 0 42,584 0 17,389 1,085 dash
19 no-host configure.util-linux 5,396,992 8 0 0 39,120 0 16,951 1,204 osh-cpython
27 no-host configure.util-linux 1,987,892 0 0 0 39,128 0 17,120 944 osh-native
35 no-host configure.util-linux 1,994,720 1 0 0 39,136 0 16,978 1,036 osh-native-souffle
6 no-host configure.yash 255,566 0 0 0 4,120 0 870 83 bash
14 no-host configure.yash 244,616 0 0 0 3,720 0 869 66 dash
22 no-host configure.yash 388,843 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 258,223 0 0 0 3,736 0 849 86 osh-native
38 no-host configure.yash 257,627 0 0 0 3,736 0 841 92 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 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-f77f4491
dash dash-0ebcf347
osh-cpython osh-7349262c
osh-native osh-6279884c
osh-native-souffle osh-72b52ee6
host label host id
no-host no-host-556df3ee