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.50 1.15
bin-true no-host 649 523 2,352 788 783 3.62 1.21
configure.cpython no-host 14,592 14,648 30,098 15,034 15,235 2.06 1.03
configure.ocaml no-host 3,771 3,674 4,584 3,767 3,754 1.22 1.00
configure.tcc no-host 46 40 201 47 46 4.42 1.04
configure.util-linux no-host 13,531 14,409 32,759 13,959 14,095 2.42 1.03
configure.yash no-host 1,787 1,732 2,445 1,778 1,790 1.37 1.00
hello-world no-host 1 1 56 3 3 42.15 2.07

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,501 1,117 24,442 3,177 3,093 9.77 1.27
bin-true no-host 105,356 66,416 810,425 134,127 131,202 7.69 1.27
configure.cpython no-host 1,996,162 2,017,653 6,812,701 2,033,315 2,016,814 3.41 1.02
configure.ocaml no-host 373,413 353,734 623,824 376,144 375,885 1.67 1.01
configure.tcc no-host 6,105 4,988 24,114 6,486 6,433 3.95 1.06
configure.util-linux no-host 1,912,696 2,067,227 6,081,227 1,824,683 1,831,578 3.18 0.95
configure.yash no-host 233,771 221,760 375,289 234,322 235,112 1.61 1.00
hello-world no-host 150 76 3,976 343 340 26.51 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.3 3.5 23.0 9.0 8.8 5.32 2.09
bin-true no-host 3.0 1.6 24.2 8.3 7.9 8.02 2.74
configure.cpython no-host 29.2 29.2 37.8 29.2 29.2 1.30 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.5 22.5 1.00 0.99
configure.tcc no-host 19.8 19.7 19.7 19.5 19.8 0.99 0.99
configure.util-linux no-host 30.3 30.3 38.6 30.2 30.2 1.27 1.00
configure.yash no-host 26.4 26.4 26.4 26.3 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.39 2.18

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,809 3,809 0 702 1,870 1,237 2 0 50,000 0
bin-true no-host 788 1 3 2.6 8.3 156,800 37,848 13,859 8,777 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 15,034 4 161 17.2 29.2 1,785,047 74,719 69,163 91,536 886,574 806,937 25,736 67 114,984 2
configure.util-linux no-host 13,959 6 114 22.2 30.2 2,709,229 138,179 81,265 114,398 1,295,026 1,299,805 32,241 49 162,530 2
configure.ocaml no-host 3,767 1 2 2.7 22.5 149,884 20,457 10,096 7,755 70,874 71,255 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,585 30,585 0 1,549 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,778 1 2 2.6 26.3 139,903 13,746 8,684 6,416 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,345 64,500 42,705 4,551 54,461 57,333 277 3 85,410 1
hello-world no-host 3 0 0 0.3 5.9 3,808 3,808 0 703 1,870 1,235 2 0 50,000 0
bin-true no-host 783 1 3 2.6 7.9 156,799 37,768 13,855 8,778 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 15,235 5 157 17.1 29.2 1,785,046 99,583 67,086 91,537 886,574 806,935 25,736 66 113,170 2
configure.util-linux no-host 14,095 6 118 22.2 30.2 2,709,229 138,172 81,258 114,400 1,295,026 1,299,803 32,241 49 162,516 2
configure.ocaml no-host 3,754 1 2 2.7 22.5 149,884 20,451 10,090 7,757 70,874 71,253 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.8 30,585 30,585 0 1,551 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,790 1 2 2.6 26.3 139,903 13,741 8,679 6,418 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,344 64,495 42,700 4,552 54,461 57,331 277 3 85,400 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 5 5 3.5 dash
23 no-host abuild-print-help 474 430 47 23.0 osh-cpython
31 no-host abuild-print-help 21 12 10 9.0 osh-native
39 no-host abuild-print-help 20 10 10 8.8 osh-native-souffle
1 no-host bin-true 649 310 374 3.0 bash
9 no-host bin-true 523 280 253 1.6 dash
17 no-host bin-true 2,352 802 1,809 24.2 osh-cpython
25 no-host bin-true 788 301 509 8.3 osh-native
33 no-host bin-true 783 295 509 7.9 osh-native-souffle
2 no-host configure.cpython 14,592 6,585 8,418 29.2 bash
10 no-host configure.cpython 14,648 6,704 8,371 29.2 dash
18 no-host configure.cpython 30,098 14,554 17,460 37.8 osh-cpython
26 no-host configure.cpython 15,034 6,647 8,687 29.2 osh-native
34 no-host configure.cpython 15,235 6,620 8,655 29.2 osh-native-souffle
4 no-host configure.ocaml 3,771 1,339 1,465 22.6 bash
12 no-host configure.ocaml 3,674 1,315 1,381 22.5 dash
20 no-host configure.ocaml 4,584 1,843 1,954 22.6 osh-cpython
28 no-host configure.ocaml 3,767 1,277 1,531 22.5 osh-native
36 no-host configure.ocaml 3,754 1,295 1,497 22.5 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.8 bash
13 no-host configure.tcc 40 19 21 19.7 dash
21 no-host configure.tcc 201 134 71 19.7 osh-cpython
29 no-host configure.tcc 47 27 21 19.5 osh-native
37 no-host configure.tcc 46 24 23 19.8 osh-native-souffle
3 no-host configure.util-linux 13,531 5,789 8,231 30.3 bash
11 no-host configure.util-linux 14,409 5,858 9,076 30.3 dash
19 no-host configure.util-linux 32,759 18,219 15,618 38.6 osh-cpython
27 no-host configure.util-linux 13,959 5,677 8,503 30.2 osh-native
35 no-host configure.util-linux 14,095 5,642 8,521 30.2 osh-native-souffle
6 no-host configure.yash 1,787 915 881 26.4 bash
14 no-host configure.yash 1,732 912 825 26.4 dash
22 no-host configure.yash 2,445 1,382 1,107 26.4 osh-cpython
30 no-host configure.yash 1,778 895 888 26.3 osh-native
38 no-host configure.yash 1,790 885 910 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 36 20 18.4 osh-cpython
24 no-host hello-world 3 1 2 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,501 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,442 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,093 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,356 0 0 0 8 0 1,989 129 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,979 125 dash
17 no-host bin-true 810,425 0 0 0 8 0 1,986 301 osh-cpython
25 no-host bin-true 134,127 0 0 0 16 0 1,980 228 osh-native
33 no-host bin-true 131,202 0 0 0 16 0 1,991 318 osh-native-souffle
2 no-host configure.cpython 1,996,162 0 0 0 32,928 0 14,244 1,285 bash
10 no-host configure.cpython 2,017,653 1 0 0 32,992 0 14,379 1,330 dash
18 no-host configure.cpython 6,812,701 1 0 0 27,512 0 13,043 1,233 osh-cpython
26 no-host configure.cpython 2,033,315 0 0 0 27,520 0 13,081 1,067 osh-native
34 no-host configure.cpython 2,016,814 0 0 0 27,520 0 13,045 1,007 osh-native-souffle
4 no-host configure.ocaml 373,413 0 0 0 5,120 0 1,965 191 bash
12 no-host configure.ocaml 353,734 0 0 0 5,112 0 1,942 176 dash
20 no-host configure.ocaml 623,824 0 0 0 5,112 0 1,850 177 osh-cpython
28 no-host configure.ocaml 376,144 0 0 0 5,120 0 1,909 210 osh-native
36 no-host configure.ocaml 375,885 0 0 0 5,120 0 1,928 224 osh-native-souffle
5 no-host configure.tcc 6,105 0 0 0 104 0 48 0 bash
13 no-host configure.tcc 4,988 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,114 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,486 0 0 0 104 0 47 14 osh-native
37 no-host configure.tcc 6,433 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,912,696 0 0 0 42,400 0 18,500 1,270 bash
11 no-host configure.util-linux 2,067,227 1 0 0 42,584 0 17,251 1,448 dash
19 no-host configure.util-linux 6,081,227 9 0 0 39,112 0 17,024 1,278 osh-cpython
27 no-host configure.util-linux 1,824,683 0 0 0 39,128 0 17,081 1,113 osh-native
35 no-host configure.util-linux 1,831,578 0 0 0 39,136 0 16,905 1,138 osh-native-souffle
6 no-host configure.yash 233,771 0 0 0 4,120 0 872 98 bash
14 no-host configure.yash 221,760 0 0 0 3,720 0 871 105 dash
22 no-host configure.yash 375,289 0 0 0 3,728 0 856 103 osh-cpython
30 no-host configure.yash 234,322 0 0 0 3,736 0 849 106 osh-native
38 no-host configure.yash 235,112 0 0 0 3,736 0 851 105 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,976 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4d25108b
dash dash-0ebcf347
osh-cpython osh-7ef61f0e
osh-native osh-078452e8
osh-native-souffle osh-5958806f
host label host id
no-host no-host-20fc69f9