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 480 22 21 24.82 1.14
bin-true no-host 679 542 2,306 812 823 3.40 1.20
configure.cpython no-host 15,262 15,273 29,305 15,482 15,676 1.92 1.01
configure.ocaml no-host 3,854 3,778 4,709 3,941 3,859 1.22 1.02
configure.tcc no-host 48 41 203 50 48 4.20 1.04
configure.util-linux no-host 14,198 15,084 31,656 14,709 14,407 2.23 1.04
configure.yash no-host 1,842 1,797 2,492 1,881 1,820 1.35 1.02
hello-world no-host 2 1 57 3 3 37.42 1.90

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,516 1,105 23,689 3,172 3,095 9.42 1.26
bin-true no-host 108,459 66,448 770,116 125,266 126,256 7.10 1.15
configure.cpython no-host 2,223,343 2,239,910 6,225,763 2,210,097 2,211,121 2.80 0.99
configure.ocaml no-host 410,912 391,041 647,662 413,615 412,067 1.58 1.01
configure.tcc no-host 6,576 5,482 24,094 6,969 6,902 3.66 1.06
configure.util-linux no-host 2,103,497 2,264,184 5,386,976 1,995,315 1,990,916 2.56 0.95
configure.yash no-host 256,547 244,693 389,669 257,962 258,079 1.52 1.01
hello-world no-host 153 81 3,947 346 339 25.80 2.26

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 9.0 8.5 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.4 27.4 27.3 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 20.6 1.00 1.01
configure.tcc no-host 19.3 19.4 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,482 2 65 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,709 3 65 21.2 30.3 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,941 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 50 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,881 1 2 2.5 24.2 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,676 1 62 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,407 3 60 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,859 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,820 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 21 1 2 2.8 8.5 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 10 10 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 480 429 54 22.7 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
39 no-host abuild-print-help 21 14 8 8.5 osh-native-souffle
1 no-host bin-true 679 509 202 2.9 bash
9 no-host bin-true 542 419 133 1.4 dash
17 no-host bin-true 2,306 1,532 1,042 18.4 osh-cpython
25 no-host bin-true 812 578 251 8.0 osh-native
33 no-host bin-true 823 575 260 7.6 osh-native-souffle
2 no-host configure.cpython 15,262 9,226 6,438 27.4 bash
10 no-host configure.cpython 15,273 9,442 6,248 27.4 dash
18 no-host configure.cpython 29,305 17,571 13,652 27.3 osh-cpython
26 no-host configure.cpython 15,482 9,044 6,701 27.3 osh-native
34 no-host configure.cpython 15,676 9,055 6,756 27.5 osh-native-souffle
4 no-host configure.ocaml 3,854 1,651 1,235 20.4 bash
12 no-host configure.ocaml 3,778 1,651 1,148 20.6 dash
20 no-host configure.ocaml 4,709 2,251 1,672 20.4 osh-cpython
28 no-host configure.ocaml 3,941 1,701 1,279 20.6 osh-native
36 no-host configure.ocaml 3,859 1,617 1,278 20.6 osh-native-souffle
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 41 25 17 19.4 dash
21 no-host configure.tcc 203 150 57 19.3 osh-cpython
29 no-host configure.tcc 50 25 25 19.4 osh-native
37 no-host configure.tcc 48 41 7 19.3 osh-native-souffle
3 no-host configure.util-linux 14,198 8,906 5,758 30.1 bash
11 no-host configure.util-linux 15,084 9,200 6,373 30.1 dash
19 no-host configure.util-linux 31,656 21,275 11,470 30.1 osh-cpython
27 no-host configure.util-linux 14,709 8,656 6,251 30.3 osh-native
35 no-host configure.util-linux 14,407 8,647 5,958 30.3 osh-native-souffle
6 no-host configure.yash 1,842 1,030 820 24.4 bash
14 no-host configure.yash 1,797 1,010 789 24.2 dash
22 no-host configure.yash 2,492 1,533 1,001 24.2 osh-cpython
30 no-host configure.yash 1,881 1,076 809 24.2 osh-native
38 no-host configure.yash 1,820 1,092 731 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 37 20 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,516 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,689 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,172 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 108,459 0 0 0 8 0 1,991 50 bash
9 no-host bin-true 66,448 0 0 0 8 0 1,989 127 dash
17 no-host bin-true 770,116 0 0 0 8 0 2,001 256 osh-cpython
25 no-host bin-true 125,266 0 0 0 16 0 1,994 49 osh-native
33 no-host bin-true 126,256 0 0 0 16 0 1,991 137 osh-native-souffle
2 no-host configure.cpython 2,223,343 0 0 0 32,928 0 14,581 1,049 bash
10 no-host configure.cpython 2,239,910 0 0 0 32,992 0 14,683 985 dash
18 no-host configure.cpython 6,225,763 0 0 0 27,512 0 13,263 1,210 osh-cpython
26 no-host configure.cpython 2,210,097 0 0 0 27,520 0 13,187 1,057 osh-native
34 no-host configure.cpython 2,211,121 1 0 0 27,520 0 13,235 1,124 osh-native-souffle
4 no-host configure.ocaml 410,912 0 0 0 5,120 0 1,953 155 bash
12 no-host configure.ocaml 391,041 0 0 0 5,112 0 1,941 146 dash
20 no-host configure.ocaml 647,662 0 0 0 5,112 0 1,863 169 osh-cpython
28 no-host configure.ocaml 413,615 0 0 0 5,120 0 1,936 171 osh-native
36 no-host configure.ocaml 412,067 0 0 0 5,120 0 1,930 159 osh-native-souffle
5 no-host configure.tcc 6,576 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,094 0 0 0 96 0 54 7 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,497 1 0 0 42,400 0 18,616 1,002 bash
11 no-host configure.util-linux 2,264,184 0 0 0 42,584 0 17,438 1,091 dash
19 no-host configure.util-linux 5,386,976 7 0 0 39,112 0 16,944 1,167 osh-cpython
27 no-host configure.util-linux 1,995,315 0 0 0 39,120 0 17,010 1,030 osh-native
35 no-host configure.util-linux 1,990,916 6 0 0 39,136 0 16,925 1,107 osh-native-souffle
6 no-host configure.yash 256,547 0 0 0 4,120 0 871 90 bash
14 no-host configure.yash 244,693 0 0 0 3,720 0 867 104 dash
22 no-host configure.yash 389,669 0 0 0 3,728 0 857 89 osh-cpython
30 no-host configure.yash 257,962 0 0 0 3,736 0 848 95 osh-native
38 no-host configure.yash 258,079 0 0 0 3,736 0 853 68 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c60700c1
dash dash-0ebcf347
osh-cpython osh-50875a95
osh-native osh-f83ccb7f
osh-native-souffle osh-a622c1d1
host label host id
no-host no-host-556df3ee