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 16 10 533 22 21 32.79 1.36
bin-true no-host 644 465 2,510 824 817 3.90 1.28
configure.cpython no-host 14,272 14,269 30,632 14,935 15,031 2.15 1.05
configure.ocaml no-host 3,794 3,741 4,778 3,780 3,814 1.26 1.00
configure.tcc no-host 48 43 227 50 51 4.78 1.05
configure.util-linux no-host 13,136 13,947 33,411 13,835 14,010 2.54 1.05
configure.yash no-host 1,780 1,714 2,546 1,772 1,792 1.43 1.00
hello-world no-host 1 1 65 3 3 47.74 2.16

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,409 1,200 24,692 3,498 3,378 10.25 1.45
bin-true no-host 102,881 49,384 829,522 136,280 133,319 8.06 1.32
configure.cpython no-host 1,622,784 1,641,279 5,946,919 1,797,844 1,790,854 3.66 1.11
configure.ocaml no-host 298,882 281,309 554,416 316,585 315,198 1.85 1.06
configure.tcc no-host 5,193 4,197 23,759 5,958 5,894 4.58 1.15
configure.util-linux no-host 1,529,876 1,695,749 4,964,190 1,712,641 1,700,073 3.24 1.12
configure.yash no-host 173,780 159,532 315,032 179,626 178,822 1.81 1.03
hello-world no-host 149 86 3,878 388 376 26.03 2.60

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.7 3.9 22.7 9.8 9.3 4.80 2.08
bin-true no-host 3.1 1.7 18.2 8.8 8.4 5.78 2.79
configure.cpython no-host 34.4 34.5 34.8 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.5 28.7 28.8 28.8 28.8 1.01 1.01
configure.tcc no-host 26.4 26.0 26.1 26.2 26.2 0.99 0.99
configure.util-linux no-host 39.9 39.9 39.6 39.7 39.5 0.99 1.00
configure.yash no-host 33.3 33.1 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 18.2 6.9 6.3 5.77 2.21

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.3 6.9 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,935 1 69 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,835 3 61 21.4 39.7 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,780 1 2 2.7 28.8 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,772 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.3 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.4 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 15,031 1 65 15.2 34.5 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,010 3 60 21.4 39.5 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,814 1 2 2.7 28.8 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.3 26.2 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.6 33.4 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,366 64,433 42,634 4,563 54,471 57,332 277 3 85,268 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 16 6 10 4.7 bash
15 no-host abuild-print-help 10 3 7 3.9 dash
23 no-host abuild-print-help 533 479 58 22.7 osh-cpython
31 no-host abuild-print-help 22 15 8 9.8 osh-native
39 no-host abuild-print-help 21 11 11 9.3 osh-native-souffle
1 no-host bin-true 644 316 369 3.1 bash
9 no-host bin-true 465 282 190 1.7 dash
17 no-host bin-true 2,510 937 1,847 18.2 osh-cpython
25 no-host bin-true 824 306 535 8.8 osh-native
33 no-host bin-true 817 305 531 8.4 osh-native-souffle
2 no-host configure.cpython 14,272 7,568 7,101 34.4 bash
10 no-host configure.cpython 14,269 7,630 7,045 34.5 dash
18 no-host configure.cpython 30,632 16,742 15,925 34.8 osh-cpython
26 no-host configure.cpython 14,935 7,478 7,758 34.5 osh-native
34 no-host configure.cpython 15,031 7,339 7,787 34.5 osh-native-souffle
4 no-host configure.ocaml 3,794 1,526 1,309 28.5 bash
12 no-host configure.ocaml 3,741 1,512 1,253 28.7 dash
20 no-host configure.ocaml 4,778 2,149 1,853 28.8 osh-cpython
28 no-host configure.ocaml 3,780 1,466 1,354 28.8 osh-native
36 no-host configure.ocaml 3,814 1,495 1,355 28.8 osh-native-souffle
5 no-host configure.tcc 48 26 23 26.4 bash
13 no-host configure.tcc 43 25 18 26.0 dash
21 no-host configure.tcc 227 164 67 26.1 osh-cpython
29 no-host configure.tcc 50 23 28 26.2 osh-native
37 no-host configure.tcc 51 22 29 26.2 osh-native-souffle
3 no-host configure.util-linux 13,136 6,708 6,907 39.9 bash
11 no-host configure.util-linux 13,947 6,680 7,749 39.9 dash
19 no-host configure.util-linux 33,411 20,851 13,678 39.6 osh-cpython
27 no-host configure.util-linux 13,835 6,355 7,703 39.7 osh-native
35 no-host configure.util-linux 14,010 6,316 7,773 39.5 osh-native-souffle
6 no-host configure.yash 1,780 947 841 33.3 bash
14 no-host configure.yash 1,714 952 764 33.1 dash
22 no-host configure.yash 2,546 1,507 1,083 33.4 osh-cpython
30 no-host configure.yash 1,772 980 791 33.4 osh-native
38 no-host configure.yash 1,792 949 846 33.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 65 43 22 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 2 6.3 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,409 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,200 0 0 0 8 0 40 2 dash
23 no-host abuild-print-help 24,692 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,498 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,378 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 102,881 0 0 0 8 0 1,978 85 bash
9 no-host bin-true 49,384 0 0 0 8 0 2,967 58 dash
17 no-host bin-true 829,522 0 0 0 8 0 1,980 168 osh-cpython
25 no-host bin-true 136,280 0 0 0 16 0 1,956 97 osh-native
33 no-host bin-true 133,319 0 0 0 16 0 1,975 131 osh-native-souffle
2 no-host configure.cpython 1,622,784 0 0 0 25,272 0 14,022 1,177 bash
10 no-host configure.cpython 1,641,279 0 0 0 25,272 0 14,067 1,208 dash
18 no-host configure.cpython 5,946,919 0 0 0 25,272 0 12,869 1,017 osh-cpython
26 no-host configure.cpython 1,797,844 0 0 0 25,280 0 12,863 1,164 osh-native
34 no-host configure.cpython 1,790,854 0 0 0 25,280 0 12,851 1,121 osh-native-souffle
4 no-host configure.ocaml 298,882 0 0 0 4,432 0 2,002 203 bash
12 no-host configure.ocaml 281,309 0 0 0 4,432 0 2,094 241 dash
20 no-host configure.ocaml 554,416 0 0 0 4,432 0 1,915 229 osh-cpython
28 no-host configure.ocaml 316,585 0 0 0 4,440 0 1,993 217 osh-native
36 no-host configure.ocaml 315,198 0 0 0 4,440 0 2,004 188 osh-native-souffle
5 no-host configure.tcc 5,193 0 0 0 80 0 48 7 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 9 dash
21 no-host configure.tcc 23,759 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,958 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,894 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,529,876 1 0 0 35,944 0 18,983 1,257 bash
11 no-host configure.util-linux 1,695,749 2 0 0 35,936 0 17,039 1,308 dash
19 no-host configure.util-linux 4,964,190 4 0 0 35,960 0 17,538 1,102 osh-cpython
27 no-host configure.util-linux 1,712,641 1 0 0 35,944 0 17,396 1,011 osh-native
35 no-host configure.util-linux 1,700,073 1 0 0 35,944 0 17,384 1,030 osh-native-souffle
6 no-host configure.yash 173,780 0 0 0 3,616 0 877 163 bash
14 no-host configure.yash 159,532 0 0 0 3,624 0 992 116 dash
22 no-host configure.yash 315,032 0 0 0 3,616 0 860 141 osh-cpython
30 no-host configure.yash 179,626 0 0 0 3,624 0 852 153 osh-native
38 no-host configure.yash 178,822 0 0 0 3,624 0 859 133 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,878 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 376 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-44518542
dash dash-cea41b3e
osh-cpython osh-2b77ae73
osh-native osh-32acd244
osh-native-souffle osh-e6563158
host label host id
no-host no-host-2411472