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 459 22 21 23.87 1.12
bin-true no-host 658 542 2,299 801 801 3.49 1.22
configure.cpython no-host 14,788 14,767 28,428 15,021 15,099 1.92 1.02
configure.ocaml no-host 3,749 3,679 4,621 3,789 3,773 1.23 1.01
configure.tcc no-host 48 41 206 49 47 4.30 1.03
configure.util-linux no-host 13,743 14,682 30,996 14,180 14,135 2.26 1.03
configure.yash no-host 1,781 1,738 2,435 1,802 1,792 1.37 1.01
hello-world no-host 1 1 56 3 3 37.74 2.11

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,554 1,119 23,659 3,187 3,081 9.26 1.25
bin-true no-host 105,361 67,405 775,716 124,301 125,210 7.36 1.18
configure.cpython no-host 2,217,560 2,236,187 6,210,825 2,221,741 2,203,129 2.80 1.00
configure.ocaml no-host 411,182 390,654 646,966 412,801 412,136 1.57 1.00
configure.tcc no-host 6,546 5,482 24,088 6,959 6,922 3.68 1.06
configure.util-linux no-host 2,103,387 2,260,579 5,389,877 1,999,087 1,990,206 2.56 0.95
configure.yash no-host 256,469 244,541 388,427 258,236 257,659 1.51 1.01
hello-world no-host 152 80 3,945 345 340 25.95 2.27

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.4 22.7 8.9 8.5 5.09 2.00
bin-true no-host 3.0 1.6 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.3 27.4 27.4 27.5 27.4 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.1 30.3 1.01 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 18.1 6.3 5.9 6.28 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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 801 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,021 1 58 14.9 27.5 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,180 2 58 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,789 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 49 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,802 1 2 2.5 24.4 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 8.9 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 801 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,099 1 58 14.9 27.4 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,135 2 57 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,773 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.5 24.4 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 18 2 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 459 401 61 22.7 osh-cpython
31 no-host abuild-print-help 22 20 2 8.9 osh-native
39 no-host abuild-print-help 21 15 6 8.5 osh-native-souffle
1 no-host bin-true 658 497 193 3.0 bash
9 no-host bin-true 542 425 129 1.6 dash
17 no-host bin-true 2,299 1,468 1,089 18.4 osh-cpython
25 no-host bin-true 801 562 252 8.0 osh-native
33 no-host bin-true 801 570 246 7.6 osh-native-souffle
2 no-host configure.cpython 14,788 8,927 6,246 27.3 bash
10 no-host configure.cpython 14,767 8,789 6,391 27.4 dash
18 no-host configure.cpython 28,428 17,268 12,992 27.4 osh-cpython
26 no-host configure.cpython 15,021 8,871 6,419 27.5 osh-native
34 no-host configure.cpython 15,099 8,957 6,259 27.4 osh-native-souffle
4 no-host configure.ocaml 3,749 1,604 1,180 20.6 bash
12 no-host configure.ocaml 3,679 1,568 1,128 20.6 dash
20 no-host configure.ocaml 4,621 2,239 1,589 20.6 osh-cpython
28 no-host configure.ocaml 3,789 1,640 1,186 20.6 osh-native
36 no-host configure.ocaml 3,773 1,551 1,259 20.4 osh-native-souffle
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 41 39 3 19.3 dash
21 no-host configure.tcc 206 140 69 19.3 osh-cpython
29 no-host configure.tcc 49 36 13 19.4 osh-native
37 no-host configure.tcc 47 27 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,743 8,723 5,482 30.0 bash
11 no-host configure.util-linux 14,682 9,085 6,076 30.1 dash
19 no-host configure.util-linux 30,996 20,936 11,132 30.3 osh-cpython
27 no-host configure.util-linux 14,180 8,527 5,842 30.1 osh-native
35 no-host configure.util-linux 14,135 8,411 5,918 30.3 osh-native-souffle
6 no-host configure.yash 1,781 1,063 727 24.2 bash
14 no-host configure.yash 1,738 1,050 691 24.2 dash
22 no-host configure.yash 2,435 1,565 911 24.4 osh-cpython
30 no-host configure.yash 1,802 1,060 745 24.4 osh-native
38 no-host configure.yash 1,792 996 800 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 44 12 18.1 osh-cpython
24 no-host hello-world 3 0 3 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,554 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,659 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,187 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,081 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 105,361 0 0 0 8 0 1,992 41 bash
9 no-host bin-true 67,405 0 0 0 8 0 1,988 61 dash
17 no-host bin-true 775,716 0 0 0 8 0 1,997 138 osh-cpython
25 no-host bin-true 124,301 0 0 0 16 0 1,995 81 osh-native
33 no-host bin-true 125,210 0 0 0 16 0 1,987 87 osh-native-souffle
2 no-host configure.cpython 2,217,560 0 0 0 32,960 0 14,555 1,137 bash
10 no-host configure.cpython 2,236,187 0 0 0 32,992 0 14,644 1,094 dash
18 no-host configure.cpython 6,210,825 1 0 0 27,512 0 13,273 1,204 osh-cpython
26 no-host configure.cpython 2,221,741 0 0 0 27,520 0 13,290 964 osh-native
34 no-host configure.cpython 2,203,129 0 0 0 27,520 0 13,292 1,081 osh-native-souffle
4 no-host configure.ocaml 411,182 0 0 0 5,120 0 1,945 166 bash
12 no-host configure.ocaml 390,654 0 0 0 5,112 0 1,894 145 dash
20 no-host configure.ocaml 646,966 0 0 0 5,112 0 1,857 175 osh-cpython
28 no-host configure.ocaml 412,801 0 0 0 5,120 0 1,935 164 osh-native
36 no-host configure.ocaml 412,136 0 0 0 5,120 0 1,936 135 osh-native-souffle
5 no-host configure.tcc 6,546 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,088 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,922 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,387 0 0 0 42,400 0 18,538 982 bash
11 no-host configure.util-linux 2,260,579 0 0 0 42,584 0 17,418 1,143 dash
19 no-host configure.util-linux 5,389,877 6 0 0 39,120 0 16,928 1,140 osh-cpython
27 no-host configure.util-linux 1,999,087 0 0 0 39,120 0 16,972 1,095 osh-native
35 no-host configure.util-linux 1,990,206 0 0 0 39,128 0 17,003 986 osh-native-souffle
6 no-host configure.yash 256,469 0 0 0 4,120 0 867 73 bash
14 no-host configure.yash 244,541 0 0 0 3,720 0 870 74 dash
22 no-host configure.yash 388,427 0 0 0 3,728 0 855 90 osh-cpython
30 no-host configure.yash 258,236 0 0 0 3,736 0 853 77 osh-native
38 no-host configure.yash 257,659 0 0 0 3,736 0 852 77 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 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-cb257b2a
dash dash-0ebcf347
osh-cpython osh-cf012a8a
osh-native osh-912dc388
osh-native-souffle osh-cec6018d
host label host id
no-host no-host-556df3ee