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 21 20 25.53 1.15
bin-true no-host 653 529 2,381 791 786 3.65 1.21
configure.cpython no-host 14,669 14,735 28,715 14,896 14,971 1.96 1.02
configure.ocaml no-host 3,765 3,673 4,624 3,766 3,754 1.23 1.00
configure.tcc no-host 46 41 205 48 47 4.44 1.03
configure.util-linux no-host 13,702 14,490 31,373 13,951 13,915 2.29 1.02
configure.yash no-host 1,784 1,740 2,449 1,802 1,787 1.37 1.01
hello-world no-host 1 1 57 3 3 43.77 2.12

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,540 1,083 24,335 3,243 3,099 9.58 1.28
bin-true no-host 105,409 67,447 809,723 128,158 128,072 7.68 1.22
configure.cpython no-host 1,995,230 2,020,579 6,094,021 2,021,621 1,999,035 3.05 1.01
configure.ocaml no-host 373,360 353,586 617,154 376,465 375,990 1.65 1.01
configure.tcc no-host 6,084 5,026 24,075 6,511 6,445 3.96 1.07
configure.util-linux no-host 1,911,083 2,072,022 5,306,598 1,816,263 1,809,991 2.78 0.95
configure.yash no-host 233,308 222,293 370,098 235,964 234,162 1.59 1.01
hello-world no-host 147 74 3,977 348 342 27.05 2.37

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.9 9.2 8.7 5.29 2.12
bin-true no-host 3.0 1.6 18.5 8.1 7.7 6.15 2.70
configure.cpython no-host 28.9 29.1 29.1 29.2 29.2 1.00 1.01
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.5 1.00 0.99
configure.tcc no-host 19.7 19.4 19.4 19.7 19.5 0.99 1.00
configure.util-linux no-host 30.2 30.3 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.5 26.4 26.3 26.4 26.4 0.99 1.00
hello-world no-host 2.8 1.3 18.4 6.3 6.0 6.69 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,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.1 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 14,896 1 63 15.3 29.2 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 13,951 3 63 21.6 30.2 2,704,674 53,757 65,725 114,372 1,293,957 1,296,345 32,241 41 131,450 1
configure.ocaml no-host 3,766 1 2 2.6 22.5 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,802 1 2 2.6 26.4 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,321 64,419 42,627 4,544 54,454 57,323 277 3 85,254 1
hello-world no-host 3 0 0 0.3 6.0 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 786 1 2 2.6 7.7 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 14,971 1 63 15.3 29.2 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 13,915 3 63 21.6 30.3 2,704,674 53,734 65,720 114,374 1,293,957 1,296,343 32,241 41 131,440 1
configure.ocaml no-host 3,754 1 2 2.6 22.5 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,787 1 2 2.6 26.4 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,320 64,414 42,622 4,545 54,454 57,321 277 3 85,244 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 10 9 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 474 421 57 22.9 osh-cpython
31 no-host abuild-print-help 21 14 8 9.2 osh-native
39 no-host abuild-print-help 20 10 11 8.7 osh-native-souffle
1 no-host bin-true 653 301 385 3.0 bash
9 no-host bin-true 529 278 265 1.6 dash
17 no-host bin-true 2,381 815 1,824 18.5 osh-cpython
25 no-host bin-true 791 298 511 8.1 osh-native
33 no-host bin-true 786 282 521 7.7 osh-native-souffle
2 no-host configure.cpython 14,669 6,643 8,446 28.9 bash
10 no-host configure.cpython 14,735 6,573 8,587 29.1 dash
18 no-host configure.cpython 28,715 14,269 16,340 29.1 osh-cpython
26 no-host configure.cpython 14,896 6,467 8,718 29.2 osh-native
34 no-host configure.cpython 14,971 6,486 8,649 29.2 osh-native-souffle
4 no-host configure.ocaml 3,765 1,309 1,494 22.6 bash
12 no-host configure.ocaml 3,673 1,230 1,464 22.6 dash
20 no-host configure.ocaml 4,624 1,895 1,949 22.6 osh-cpython
28 no-host configure.ocaml 3,766 1,263 1,544 22.5 osh-native
36 no-host configure.ocaml 3,754 1,307 1,486 22.5 osh-native-souffle
5 no-host configure.tcc 46 23 24 19.7 bash
13 no-host configure.tcc 41 15 26 19.4 dash
21 no-host configure.tcc 205 136 73 19.4 osh-cpython
29 no-host configure.tcc 48 20 28 19.7 osh-native
37 no-host configure.tcc 47 19 29 19.5 osh-native-souffle
3 no-host configure.util-linux 13,702 5,834 8,356 30.2 bash
11 no-host configure.util-linux 14,490 5,799 9,227 30.3 dash
19 no-host configure.util-linux 31,373 17,715 14,755 30.3 osh-cpython
27 no-host configure.util-linux 13,951 5,660 8,506 30.2 osh-native
35 no-host configure.util-linux 13,915 5,448 8,690 30.3 osh-native-souffle
6 no-host configure.yash 1,784 869 924 26.5 bash
14 no-host configure.yash 1,740 885 859 26.4 dash
22 no-host configure.yash 2,449 1,363 1,128 26.3 osh-cpython
30 no-host configure.yash 1,802 929 879 26.4 osh-native
38 no-host configure.yash 1,787 908 883 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 57 35 22 18.4 osh-cpython
24 no-host hello-world 3 1 1 6.3 osh-native
32 no-host hello-world 3 1 2 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,083 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,335 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,243 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,409 0 0 0 8 0 1,986 112 bash
9 no-host bin-true 67,447 0 0 0 8 0 1,982 147 dash
17 no-host bin-true 809,723 0 0 0 8 0 1,993 335 osh-cpython
25 no-host bin-true 128,158 0 0 0 16 0 1,968 98 osh-native
33 no-host bin-true 128,072 0 0 0 16 0 1,978 101 osh-native-souffle
2 no-host configure.cpython 1,995,230 0 0 0 32,928 0 14,286 1,357 bash
10 no-host configure.cpython 2,020,579 0 0 0 32,992 0 14,382 1,228 dash
18 no-host configure.cpython 6,094,021 1 0 0 27,512 0 13,043 1,184 osh-cpython
26 no-host configure.cpython 2,021,621 0 0 0 27,520 0 13,147 1,116 osh-native
34 no-host configure.cpython 1,999,035 0 0 0 27,520 0 13,053 1,097 osh-native-souffle
4 no-host configure.ocaml 373,360 0 0 0 5,120 0 1,959 187 bash
12 no-host configure.ocaml 353,586 0 0 0 5,112 0 1,941 191 dash
20 no-host configure.ocaml 617,154 0 0 0 5,112 0 1,853 210 osh-cpython
28 no-host configure.ocaml 376,465 0 0 0 5,120 0 1,935 182 osh-native
36 no-host configure.ocaml 375,990 0 0 0 5,120 0 1,921 204 osh-native-souffle
5 no-host configure.tcc 6,084 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,026 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,075 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,511 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,445 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,911,083 1 0 0 42,400 0 18,420 1,297 bash
11 no-host configure.util-linux 2,072,022 0 0 0 42,584 0 17,351 1,395 dash
19 no-host configure.util-linux 5,306,598 15 0 0 39,136 0 17,034 1,369 osh-cpython
27 no-host configure.util-linux 1,816,263 2 0 0 39,120 0 16,998 1,144 osh-native
35 no-host configure.util-linux 1,809,991 0 0 0 39,128 0 16,967 1,313 osh-native-souffle
6 no-host configure.yash 233,308 0 0 0 4,120 0 871 108 bash
14 no-host configure.yash 222,293 0 0 0 3,720 0 873 89 dash
22 no-host configure.yash 370,098 0 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 235,964 0 0 0 3,736 0 851 103 osh-native
38 no-host configure.yash 234,162 0 0 0 3,736 0 850 89 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 0 0 bash
8 no-host hello-world 74 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,977 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c917bdbf
dash dash-0ebcf347
osh-cpython osh-6c15b9ee
osh-native osh-9865a04b
osh-native-souffle osh-a4e2249f
host label host id
no-host no-host-e4839999