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 475 22 21 24.80 1.15
bin-true no-host 679 544 2,287 812 805 3.37 1.20
configure.cpython no-host 15,071 15,128 29,186 15,307 15,391 1.94 1.02
configure.ocaml no-host 3,854 3,735 4,686 3,834 3,818 1.22 1.00
configure.tcc no-host 48 41 208 50 48 4.37 1.05
configure.util-linux no-host 14,057 14,920 31,518 14,427 14,405 2.24 1.03
configure.yash no-host 1,821 1,782 2,489 1,836 1,822 1.37 1.01
hello-world no-host 2 1 56 3 3 37.29 1.86

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,547 1,101 23,829 3,184 3,055 9.36 1.25
bin-true no-host 103,346 66,451 765,417 126,331 126,285 7.41 1.22
configure.cpython no-host 2,226,590 2,237,600 6,223,236 2,218,157 2,204,434 2.79 1.00
configure.ocaml no-host 410,475 390,667 646,376 412,898 412,467 1.57 1.01
configure.tcc no-host 6,543 5,487 24,014 6,962 6,942 3.67 1.06
configure.util-linux no-host 2,100,777 2,263,269 5,374,971 1,994,683 1,991,001 2.56 0.95
configure.yash no-host 256,025 244,655 387,561 257,070 257,446 1.51 1.00
hello-world no-host 151 84 3,939 340 336 26.09 2.25

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.5 3.5 22.6 8.9 8.7 5.06 2.00
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.09 2.70
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.1 19.4 19.3 0.99 1.01
configure.util-linux no-host 30.0 30.1 30.1 30.3 30.1 1.00 1.01
configure.yash no-host 24.4 24.2 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.1 6.0 5.9 6.26 2.09

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.0 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.1 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,307 1 62 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,427 3 61 21.2 30.3 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,834 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 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,782 14,286 271 0 50,000 0
configure.yash no-host 1,836 1 2 2.5 24.2 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,527 57,233 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 805 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,391 1 62 14.9 27.5 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,405 3 62 21.2 30.1 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,818 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 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,782 14,284 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,527 57,231 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 16 4 4.5 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 475 412 65 22.6 osh-cpython
31 no-host abuild-print-help 22 18 5 8.9 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 679 512 195 3.0 bash
9 no-host bin-true 544 422 130 1.4 dash
17 no-host bin-true 2,287 1,498 1,044 18.4 osh-cpython
25 no-host bin-true 812 584 244 8.1 osh-native
33 no-host bin-true 805 582 239 7.6 osh-native-souffle
2 no-host configure.cpython 15,071 9,084 6,392 27.4 bash
10 no-host configure.cpython 15,128 9,156 6,389 27.4 dash
18 no-host configure.cpython 29,186 17,751 13,327 27.4 osh-cpython
26 no-host configure.cpython 15,307 8,999 6,570 27.4 osh-native
34 no-host configure.cpython 15,391 8,992 6,533 27.5 osh-native-souffle
4 no-host configure.ocaml 3,854 1,683 1,200 20.6 bash
12 no-host configure.ocaml 3,735 1,536 1,218 20.6 dash
20 no-host configure.ocaml 4,686 2,342 1,555 20.6 osh-cpython
28 no-host configure.ocaml 3,834 1,694 1,177 20.6 osh-native
36 no-host configure.ocaml 3,818 1,660 1,190 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 41 26 16 19.3 dash
21 no-host configure.tcc 208 163 48 19.1 osh-cpython
29 no-host configure.tcc 50 31 19 19.4 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,057 9,084 5,421 30.0 bash
11 no-host configure.util-linux 14,920 8,956 6,460 30.1 dash
19 no-host configure.util-linux 31,518 21,067 11,528 30.1 osh-cpython
27 no-host configure.util-linux 14,427 8,783 5,821 30.3 osh-native
35 no-host configure.util-linux 14,405 8,687 5,899 30.1 osh-native-souffle
6 no-host configure.yash 1,821 1,015 814 24.4 bash
14 no-host configure.yash 1,782 1,011 774 24.2 dash
22 no-host configure.yash 2,489 1,561 970 24.2 osh-cpython
30 no-host configure.yash 1,836 1,051 789 24.2 osh-native
38 no-host configure.yash 1,822 1,035 791 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 25 32 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,547 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,829 0 0 0 8 0 45 15 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,055 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 103,346 0 0 0 8 0 1,997 33 bash
9 no-host bin-true 66,451 0 0 0 8 0 1,984 45 dash
17 no-host bin-true 765,417 0 0 0 8 0 1,994 208 osh-cpython
25 no-host bin-true 126,331 0 0 0 16 0 1,986 70 osh-native
33 no-host bin-true 126,285 0 0 0 16 0 1,990 55 osh-native-souffle
2 no-host configure.cpython 2,226,590 2 0 0 32,928 0 14,498 943 bash
10 no-host configure.cpython 2,237,600 0 0 0 32,992 0 14,627 1,204 dash
18 no-host configure.cpython 6,223,236 0 0 0 27,512 0 13,286 1,269 osh-cpython
26 no-host configure.cpython 2,218,157 0 0 0 27,520 0 13,212 1,125 osh-native
34 no-host configure.cpython 2,204,434 1 0 0 27,520 0 13,211 967 osh-native-souffle
4 no-host configure.ocaml 410,475 0 0 0 5,120 0 1,950 164 bash
12 no-host configure.ocaml 390,667 0 0 0 5,112 0 1,875 125 dash
20 no-host configure.ocaml 646,376 0 0 0 5,112 0 1,856 171 osh-cpython
28 no-host configure.ocaml 412,898 0 0 0 5,120 0 1,931 146 osh-native
36 no-host configure.ocaml 412,467 0 0 0 5,120 0 1,939 148 osh-native-souffle
5 no-host configure.tcc 6,543 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,014 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,942 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,100,777 4 0 0 42,400 0 18,575 1,029 bash
11 no-host configure.util-linux 2,263,269 1 0 0 42,584 0 17,426 1,033 dash
19 no-host configure.util-linux 5,374,971 4 0 0 39,120 0 16,945 1,181 osh-cpython
27 no-host configure.util-linux 1,994,683 1 0 0 39,120 0 16,984 886 osh-native
35 no-host configure.util-linux 1,991,001 0 0 0 39,128 0 16,985 982 osh-native-souffle
6 no-host configure.yash 256,025 0 0 0 4,120 0 873 82 bash
14 no-host configure.yash 244,655 0 0 0 3,720 0 867 100 dash
22 no-host configure.yash 387,561 0 0 0 3,728 0 853 68 osh-cpython
30 no-host configure.yash 257,070 0 0 0 3,736 0 845 81 osh-native
38 no-host configure.yash 257,446 0 0 0 3,736 0 846 83 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5d32ac1d
dash dash-0ebcf347
osh-cpython osh-f8003dbd
osh-native osh-77571533
osh-native-souffle osh-e6dd640f
host label host id
no-host no-host-556df3ee