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 471 22 20 25.00 1.15
bin-true no-host 673 539 2,287 806 798 3.40 1.20
configure.cpython no-host 15,168 15,132 28,689 15,231 15,356 1.89 1.00
configure.ocaml no-host 3,814 3,728 4,674 3,808 3,808 1.23 1.00
configure.tcc no-host 54 41 202 49 48 3.76 0.91
configure.util-linux no-host 14,144 14,807 31,481 14,469 14,321 2.23 1.02
configure.yash no-host 1,832 1,752 2,471 1,821 1,818 1.35 0.99
hello-world no-host 2 1 56 3 3 36.62 1.85

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,545 1,098 23,850 3,218 3,095 9.37 1.26
bin-true no-host 107,335 66,422 769,534 125,238 124,200 7.17 1.17
configure.cpython no-host 2,220,283 2,246,909 6,238,946 2,215,782 2,205,372 2.81 1.00
configure.ocaml no-host 410,298 391,712 647,545 412,968 412,038 1.58 1.01
configure.tcc no-host 6,557 5,467 24,125 6,981 6,912 3.68 1.06
configure.util-linux no-host 2,106,975 2,263,519 5,397,836 1,997,194 1,994,358 2.56 0.95
configure.yash no-host 256,395 244,242 389,303 257,242 257,856 1.52 1.00
hello-world no-host 153 84 3,941 343 337 25.76 2.24

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.8 9.2 8.4 5.28 2.12
bin-true no-host 2.8 1.4 18.4 8.1 7.5 6.67 2.95
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 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.4 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.0 30.3 30.1 0.99 1.00
configure.yash no-host 24.4 24.5 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.37 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 806 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,231 1 61 14.9 27.4 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,469 3 60 21.2 30.3 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,808 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,821 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.2 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 798 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,356 1 60 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,321 3 59 21.2 30.1 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,808 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.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,818 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 20 1 2 2.8 8.4 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 17 2 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 471 412 62 22.8 osh-cpython
31 no-host abuild-print-help 22 20 2 9.2 osh-native
39 no-host abuild-print-help 20 19 2 8.4 osh-native-souffle
1 no-host bin-true 673 503 203 2.8 bash
9 no-host bin-true 539 421 128 1.4 dash
17 no-host bin-true 2,287 1,549 998 18.4 osh-cpython
25 no-host bin-true 806 562 258 8.1 osh-native
33 no-host bin-true 798 564 250 7.5 osh-native-souffle
2 no-host configure.cpython 15,168 9,240 6,322 27.4 bash
10 no-host configure.cpython 15,132 8,997 6,550 27.4 dash
18 no-host configure.cpython 28,689 17,634 12,892 27.5 osh-cpython
26 no-host configure.cpython 15,231 8,848 6,649 27.4 osh-native
34 no-host configure.cpython 15,356 8,964 6,508 27.4 osh-native-souffle
4 no-host configure.ocaml 3,814 1,730 1,125 20.6 bash
12 no-host configure.ocaml 3,728 1,561 1,187 20.6 dash
20 no-host configure.ocaml 4,674 2,255 1,627 20.6 osh-cpython
28 no-host configure.ocaml 3,808 1,613 1,233 20.6 osh-native
36 no-host configure.ocaml 3,808 1,564 1,279 20.6 osh-native-souffle
5 no-host configure.tcc 54 27 27 19.3 bash
13 no-host configure.tcc 41 23 19 19.4 dash
21 no-host configure.tcc 202 160 45 19.4 osh-cpython
29 no-host configure.tcc 49 28 22 19.4 osh-native
37 no-host configure.tcc 48 19 29 19.4 osh-native-souffle
3 no-host configure.util-linux 14,144 8,924 5,688 30.3 bash
11 no-host configure.util-linux 14,807 9,164 6,116 30.1 dash
19 no-host configure.util-linux 31,481 21,001 11,557 30.0 osh-cpython
27 no-host configure.util-linux 14,469 8,653 6,007 30.3 osh-native
35 no-host configure.util-linux 14,321 8,617 5,898 30.1 osh-native-souffle
6 no-host configure.yash 1,832 1,073 768 24.4 bash
14 no-host configure.yash 1,752 1,016 739 24.5 dash
22 no-host configure.yash 2,471 1,508 1,003 24.4 osh-cpython
30 no-host configure.yash 1,821 1,087 738 24.2 osh-native
38 no-host configure.yash 1,818 1,012 809 24.2 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 32 23 18.4 osh-cpython
24 no-host hello-world 3 0 3 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,545 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,850 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,218 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,335 0 0 0 8 0 1,988 81 bash
9 no-host bin-true 66,422 0 0 0 8 0 1,983 88 dash
17 no-host bin-true 769,534 0 0 0 8 0 2,001 123 osh-cpython
25 no-host bin-true 125,238 0 0 0 16 0 1,986 76 osh-native
33 no-host bin-true 124,200 0 0 0 16 0 1,988 54 osh-native-souffle
2 no-host configure.cpython 2,220,283 0 0 0 32,928 0 14,456 1,005 bash
10 no-host configure.cpython 2,246,909 0 0 0 32,992 0 14,677 1,137 dash
18 no-host configure.cpython 6,238,946 1 0 0 27,512 0 13,261 1,112 osh-cpython
26 no-host configure.cpython 2,215,782 0 0 0 27,520 0 13,237 1,041 osh-native
34 no-host configure.cpython 2,205,372 0 0 0 27,520 0 13,289 939 osh-native-souffle
4 no-host configure.ocaml 410,298 0 0 0 5,120 0 1,948 154 bash
12 no-host configure.ocaml 391,712 0 0 0 5,112 0 1,935 162 dash
20 no-host configure.ocaml 647,545 0 0 0 5,112 0 1,857 166 osh-cpython
28 no-host configure.ocaml 412,968 0 0 0 5,120 0 1,924 181 osh-native
36 no-host configure.ocaml 412,038 0 0 0 5,120 0 1,933 150 osh-native-souffle
5 no-host configure.tcc 6,557 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,125 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,106,975 3 0 0 42,400 0 18,649 956 bash
11 no-host configure.util-linux 2,263,519 0 0 0 42,584 0 17,414 1,037 dash
19 no-host configure.util-linux 5,397,836 14 0 0 39,112 0 16,964 1,142 osh-cpython
27 no-host configure.util-linux 1,997,194 0 0 0 39,120 0 17,012 902 osh-native
35 no-host configure.util-linux 1,994,358 1 0 0 39,128 0 16,987 943 osh-native-souffle
6 no-host configure.yash 256,395 0 0 0 4,120 0 868 82 bash
14 no-host configure.yash 244,242 0 0 0 3,720 0 867 94 dash
22 no-host configure.yash 389,303 0 0 0 3,728 0 851 89 osh-cpython
30 no-host configure.yash 257,242 0 0 0 3,736 0 851 77 osh-native
38 no-host configure.yash 257,856 0 0 0 3,736 0 849 95 osh-native-souffle
0 no-host hello-world 153 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,941 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ac4d7c96
dash dash-0ebcf347
osh-cpython osh-2f12fb85
osh-native osh-5535e599
osh-native-souffle osh-7c8782a5
host label host id
no-host no-host-556df3ee