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 20 9 494 23 21 25.08 1.19
bin-true no-host 661 539 2,471 803 807 3.74 1.22
configure.cpython no-host 15,174 15,134 30,042 15,730 15,812 1.98 1.04
configure.ocaml no-host 3,837 3,796 4,851 3,912 3,946 1.26 1.02
configure.tcc no-host 47 42 213 49 50 4.49 1.03
configure.util-linux no-host 14,085 14,936 33,402 14,630 14,661 2.37 1.04
configure.yash no-host 1,887 1,807 2,590 1,948 1,895 1.37 1.03
hello-world no-host 1 1 61 3 3 44.62 2.18

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,551 1,092 24,342 3,228 3,096 9.54 1.27
bin-true no-host 104,312 66,472 808,680 127,194 128,138 7.75 1.22
configure.cpython no-host 1,995,290 2,025,340 6,088,752 2,011,446 2,004,782 3.05 1.01
configure.ocaml no-host 372,872 353,919 616,908 377,751 376,080 1.65 1.01
configure.tcc no-host 6,082 4,994 24,056 6,510 6,448 3.96 1.07
configure.util-linux no-host 1,911,467 2,071,845 5,310,591 1,817,016 1,800,830 2.78 0.95
configure.yash no-host 233,870 221,872 369,863 235,736 234,833 1.58 1.01
hello-world no-host 147 78 3,980 345 341 27.07 2.35

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.7 5.10 2.00
bin-true no-host 3.0 1.4 18.5 8.0 7.6 6.15 2.65
configure.cpython no-host 29.2 29.2 29.3 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.5 1.00 1.00
configure.tcc no-host 19.6 19.7 19.7 19.6 19.6 1.00 1.00
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.2 1.00 1.00
configure.yash no-host 26.3 26.4 26.5 26.4 26.4 1.01 1.00
hello-world no-host 2.8 1.6 18.5 6.3 5.9 6.73 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.0 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 15,730 2 74 15.3 29.2 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,630 3 70 21.6 30.3 2,704,674 53,757 65,705 114,372 1,293,957 1,296,345 32,241 41 131,410 1
configure.ocaml no-host 3,912 1 2 2.6 22.6 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,948 1 2 2.6 26.4 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,321 64,419 42,627 4,544 54,454 57,323 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.6 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,812 2 74 15.3 29.2 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,661 4 74 21.6 30.2 2,704,674 53,734 65,700 114,374 1,293,957 1,296,343 32,241 41 131,400 1
configure.ocaml no-host 3,946 1 2 2.6 22.5 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.6 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,895 1 2 2.6 26.4 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,320 64,414 42,622 4,545 54,454 57,321 277 3 85,244 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 20 10 10 4.5 bash
15 no-host abuild-print-help 9 5 4 3.4 dash
23 no-host abuild-print-help 494 432 66 22.7 osh-cpython
31 no-host abuild-print-help 23 11 13 8.9 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 661 297 398 3.0 bash
9 no-host bin-true 539 280 271 1.4 dash
17 no-host bin-true 2,471 842 1,910 18.5 osh-cpython
25 no-host bin-true 803 296 524 8.0 osh-native
33 no-host bin-true 807 287 537 7.6 osh-native-souffle
2 no-host configure.cpython 15,174 6,885 8,718 29.2 bash
10 no-host configure.cpython 15,134 6,829 8,755 29.2 dash
18 no-host configure.cpython 30,042 14,925 17,139 29.3 osh-cpython
26 no-host configure.cpython 15,730 6,884 9,054 29.2 osh-native
34 no-host configure.cpython 15,812 6,876 9,119 29.2 osh-native-souffle
4 no-host configure.ocaml 3,837 1,386 1,496 22.6 bash
12 no-host configure.ocaml 3,796 1,322 1,497 22.6 dash
20 no-host configure.ocaml 4,851 1,949 2,136 22.6 osh-cpython
28 no-host configure.ocaml 3,912 1,353 1,600 22.6 osh-native
36 no-host configure.ocaml 3,946 1,390 1,597 22.5 osh-native-souffle
5 no-host configure.tcc 47 20 28 19.6 bash
13 no-host configure.tcc 42 24 19 19.7 dash
21 no-host configure.tcc 213 146 71 19.7 osh-cpython
29 no-host configure.tcc 49 21 28 19.6 osh-native
37 no-host configure.tcc 50 24 26 19.6 osh-native-souffle
3 no-host configure.util-linux 14,085 5,982 8,615 30.3 bash
11 no-host configure.util-linux 14,936 6,086 9,381 30.2 dash
19 no-host configure.util-linux 33,402 18,801 15,810 30.3 osh-cpython
27 no-host configure.util-linux 14,630 5,785 9,059 30.3 osh-native
35 no-host configure.util-linux 14,661 5,848 9,049 30.2 osh-native-souffle
6 no-host configure.yash 1,887 944 950 26.3 bash
14 no-host configure.yash 1,807 935 878 26.4 dash
22 no-host configure.yash 2,590 1,461 1,177 26.5 osh-cpython
30 no-host configure.yash 1,948 984 969 26.4 osh-native
38 no-host configure.yash 1,895 923 977 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 61 36 24 18.5 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,551 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,342 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,228 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,312 0 0 0 8 0 1,987 57 bash
9 no-host bin-true 66,472 0 0 0 8 0 1,972 123 dash
17 no-host bin-true 808,680 0 0 0 8 0 1,996 301 osh-cpython
25 no-host bin-true 127,194 0 0 0 16 0 1,974 106 osh-native
33 no-host bin-true 128,138 0 0 0 16 0 1,985 86 osh-native-souffle
2 no-host configure.cpython 1,995,290 3 0 0 32,928 0 14,241 1,193 bash
10 no-host configure.cpython 2,025,340 0 0 0 32,992 0 14,323 1,207 dash
18 no-host configure.cpython 6,088,752 0 0 0 27,512 0 13,052 1,029 osh-cpython
26 no-host configure.cpython 2,011,446 1 0 0 27,520 0 13,231 1,076 osh-native
34 no-host configure.cpython 2,004,782 0 0 0 27,520 0 13,058 1,035 osh-native-souffle
4 no-host configure.ocaml 372,872 0 0 0 5,120 0 1,946 185 bash
12 no-host configure.ocaml 353,919 0 0 0 5,112 0 1,930 188 dash
20 no-host configure.ocaml 616,908 0 0 0 5,112 0 1,858 200 osh-cpython
28 no-host configure.ocaml 377,751 0 0 0 5,120 0 1,922 198 osh-native
36 no-host configure.ocaml 376,080 0 0 0 5,120 0 1,924 187 osh-native-souffle
5 no-host configure.tcc 6,082 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,994 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,056 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,510 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,448 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,911,467 2 0 0 42,400 0 18,451 1,287 bash
11 no-host configure.util-linux 2,071,845 0 0 0 42,584 0 17,341 1,415 dash
19 no-host configure.util-linux 5,310,591 7 0 0 39,136 0 17,002 1,214 osh-cpython
27 no-host configure.util-linux 1,817,016 3 0 0 39,120 0 16,999 1,176 osh-native
35 no-host configure.util-linux 1,800,830 2 0 0 39,128 0 17,082 1,096 osh-native-souffle
6 no-host configure.yash 233,870 0 0 0 4,120 0 868 109 bash
14 no-host configure.yash 221,872 0 0 0 3,720 0 869 91 dash
22 no-host configure.yash 369,863 0 0 0 3,728 0 856 85 osh-cpython
30 no-host configure.yash 235,736 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 234,833 0 0 0 3,736 0 849 89 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,980 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7265b04f
dash dash-0ebcf347
osh-cpython osh-4e45c777
osh-native osh-b32ec6f5
osh-native-souffle osh-c9b74a6f
host label host id
no-host no-host-e4839999