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 479 22 21 24.29 1.13
bin-true no-host 688 552 2,389 826 812 3.47 1.20
configure.cpython no-host 15,805 15,685 29,944 15,594 16,195 1.89 0.99
configure.ocaml no-host 3,975 3,855 4,881 3,984 3,988 1.23 1.00
configure.tcc no-host 52 42 210 51 53 4.07 0.99
configure.util-linux no-host 14,675 15,693 33,063 14,816 15,002 2.25 1.01
configure.yash no-host 1,931 1,859 2,559 1,945 1,975 1.33 1.01
hello-world no-host 2 1 63 3 3 34.62 1.61

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,530 1,107 23,770 3,202 3,086 9.40 1.27
bin-true no-host 104,324 66,391 781,701 126,087 124,116 7.49 1.21
configure.cpython no-host 2,225,015 2,240,196 6,218,149 2,211,201 2,213,034 2.79 0.99
configure.ocaml no-host 410,115 390,764 648,582 413,511 412,075 1.58 1.01
configure.tcc no-host 6,551 5,455 24,136 6,978 6,934 3.68 1.07
configure.util-linux no-host 2,093,641 2,260,500 5,391,087 2,000,947 1,987,113 2.57 0.96
configure.yash no-host 256,553 245,184 386,762 258,425 257,101 1.51 1.01
hello-world no-host 150 81 3,941 345 336 26.27 2.30

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.0 7.6 6.37 2.77
configure.cpython no-host 27.5 27.4 27.3 27.4 27.4 0.99 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.0 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.0 30.0 30.1 0.99 0.99
configure.yash no-host 24.2 24.4 24.5 24.4 24.2 1.01 1.01
hello-world no-host 2.8 1.4 18.1 6.3 5.9 6.57 2.29

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.3 3,790 3,790 0 697 1,863 1,230 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.0 153,754 12,327 2,892 8,746 76,327 68,681 3,008 3 50,000 0
configure.cpython no-host 15,594 2 68 14.9 27.4 1,771,755 49,130 28,517 85,418 878,120 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,816 3 63 21.2 30.0 2,702,521 45,805 65,716 108,694 1,290,645 1,303,182 32,239 41 131,432 1
configure.ocaml no-host 3,984 1 2 2.6 20.6 150,088 11,117 5,212 7,511 70,974 71,603 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,594 30,594 0 1,521 14,646 14,427 271 0 50,000 0
configure.yash no-host 1,945 1 2 2.6 24.4 139,420 8,029 6,691 5,992 67,947 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,300 64,408 42,618 4,535 54,441 57,324 277 3 85,236 1
hello-world no-host 3 0 0 0.3 5.9 3,789 3,789 0 698 1,863 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.6 153,753 12,116 2,830 8,747 76,327 68,679 3,008 3 50,000 0
configure.cpython no-host 16,195 1 68 14.9 27.4 1,771,754 49,068 28,455 85,419 878,120 808,215 25,733 60 50,000 0
configure.util-linux no-host 15,002 3 67 21.2 30.1 2,702,521 53,698 65,634 108,696 1,290,645 1,303,180 32,239 41 131,268 1
configure.ocaml no-host 3,988 1 2 2.6 20.6 150,088 11,055 5,150 7,513 70,974 71,601 1,695 3 50,000 0
configure.tcc no-host 53 0 0 1.3 19.4 30,594 30,594 0 1,523 14,646 14,425 271 0 50,000 0
configure.yash no-host 1,975 1 2 2.6 24.2 139,420 7,967 6,629 5,994 67,947 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,299 64,346 42,556 4,536 54,441 57,322 277 3 85,112 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 12 8 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 479 440 42 22.7 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
39 no-host abuild-print-help 21 13 9 8.7 osh-native-souffle
1 no-host bin-true 688 499 221 2.9 bash
9 no-host bin-true 552 429 131 1.4 dash
17 no-host bin-true 2,389 1,563 1,095 18.4 osh-cpython
25 no-host bin-true 826 578 263 8.0 osh-native
33 no-host bin-true 812 588 238 7.6 osh-native-souffle
2 no-host configure.cpython 15,805 9,450 6,768 27.5 bash
10 no-host configure.cpython 15,685 9,338 6,778 27.4 dash
18 no-host configure.cpython 29,944 17,841 14,029 27.3 osh-cpython
26 no-host configure.cpython 15,594 9,142 6,723 27.4 osh-native
34 no-host configure.cpython 16,195 9,275 7,031 27.4 osh-native-souffle
4 no-host configure.ocaml 3,975 1,750 1,267 20.6 bash
12 no-host configure.ocaml 3,855 1,731 1,142 20.4 dash
20 no-host configure.ocaml 4,881 2,342 1,763 20.6 osh-cpython
28 no-host configure.ocaml 3,984 1,748 1,275 20.6 osh-native
36 no-host configure.ocaml 3,988 1,760 1,265 20.6 osh-native-souffle
5 no-host configure.tcc 52 31 22 19.3 bash
13 no-host configure.tcc 42 25 17 19.0 dash
21 no-host configure.tcc 210 131 83 19.3 osh-cpython
29 no-host configure.tcc 51 22 30 19.4 osh-native
37 no-host configure.tcc 53 39 14 19.4 osh-native-souffle
3 no-host configure.util-linux 14,675 9,284 5,875 30.3 bash
11 no-host configure.util-linux 15,693 9,606 6,594 30.3 dash
19 no-host configure.util-linux 33,063 21,862 12,353 30.0 osh-cpython
27 no-host configure.util-linux 14,816 8,958 6,059 30.0 osh-native
35 no-host configure.util-linux 15,002 8,943 6,258 30.1 osh-native-souffle
6 no-host configure.yash 1,931 1,208 730 24.2 bash
14 no-host configure.yash 1,859 1,055 807 24.4 dash
22 no-host configure.yash 2,559 1,603 1,000 24.5 osh-cpython
30 no-host configure.yash 1,945 1,137 812 24.4 osh-native
38 no-host configure.yash 1,975 1,126 853 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 63 35 27 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,530 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,770 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,086 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,324 0 0 0 8 0 1,988 70 bash
9 no-host bin-true 66,391 0 0 0 8 0 1,986 103 dash
17 no-host bin-true 781,701 0 0 0 8 0 1,998 249 osh-cpython
25 no-host bin-true 126,087 0 0 0 16 0 1,994 124 osh-native
33 no-host bin-true 124,116 0 0 0 16 0 1,992 63 osh-native-souffle
2 no-host configure.cpython 2,225,015 0 0 0 32,928 0 14,508 1,063 bash
10 no-host configure.cpython 2,240,196 2 0 0 32,992 0 14,645 1,030 dash
18 no-host configure.cpython 6,218,149 0 0 0 27,512 0 13,296 1,206 osh-cpython
26 no-host configure.cpython 2,211,201 1 0 0 27,520 0 13,224 1,071 osh-native
34 no-host configure.cpython 2,213,034 0 0 0 27,520 0 13,288 927 osh-native-souffle
4 no-host configure.ocaml 410,115 0 0 0 5,120 0 1,945 141 bash
12 no-host configure.ocaml 390,764 0 0 0 5,112 0 1,888 155 dash
20 no-host configure.ocaml 648,582 0 0 0 5,112 0 1,857 168 osh-cpython
28 no-host configure.ocaml 413,511 0 0 0 5,120 0 1,925 181 osh-native
36 no-host configure.ocaml 412,075 0 0 0 5,120 0 1,928 134 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,455 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,136 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,934 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,093,641 2 0 0 42,408 0 18,581 994 bash
11 no-host configure.util-linux 2,260,500 0 0 0 42,592 0 17,477 1,059 dash
19 no-host configure.util-linux 5,391,087 6 0 0 39,120 0 16,948 1,152 osh-cpython
27 no-host configure.util-linux 2,000,947 1 0 0 39,128 0 16,979 948 osh-native
35 no-host configure.util-linux 1,987,113 1 0 0 39,136 0 16,956 972 osh-native-souffle
6 no-host configure.yash 256,553 0 0 0 4,120 0 872 76 bash
14 no-host configure.yash 245,184 0 0 0 3,720 0 862 83 dash
22 no-host configure.yash 386,762 0 0 0 3,728 0 854 96 osh-cpython
30 no-host configure.yash 258,425 0 0 0 3,736 0 850 67 osh-native
38 no-host configure.yash 257,101 0 0 0 3,736 0 848 187 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 1 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 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b0020639
dash dash-0ebcf347
osh-cpython osh-3af84749
osh-native osh-092110dd
osh-native-souffle osh-c23d6e5b
host label host id
no-host no-host-556df3ee