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 487 22 20 25.22 1.14
bin-true no-host 658 537 2,420 797 802 3.68 1.21
configure.cpython no-host 15,124 15,222 29,783 15,232 15,073 1.97 1.01
configure.ocaml no-host 3,862 3,765 4,723 3,821 3,798 1.22 0.99
configure.tcc no-host 48 42 206 48 48 4.28 1.01
configure.util-linux no-host 14,010 14,912 32,825 14,362 14,127 2.34 1.03
configure.yash no-host 1,851 1,801 2,518 1,825 1,816 1.36 0.99
hello-world no-host 1 1 59 3 3 42.80 2.04

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,109 24,211 3,187 3,073 9.48 1.25
bin-true no-host 105,417 66,428 800,580 127,267 129,260 7.59 1.21
configure.cpython no-host 1,993,399 2,023,709 6,102,021 2,011,242 1,997,971 3.06 1.01
configure.ocaml no-host 373,091 354,238 616,780 376,038 375,973 1.65 1.01
configure.tcc no-host 6,092 4,994 24,026 6,538 6,457 3.94 1.07
configure.util-linux no-host 1,919,140 2,073,755 5,316,821 1,825,666 1,812,485 2.77 0.95
configure.yash no-host 233,006 222,404 369,504 235,472 234,099 1.59 1.01
hello-world no-host 146 74 3,984 346 339 27.29 2.37

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 9.2 8.7 5.10 2.06
bin-true no-host 2.9 1.4 18.5 8.1 7.9 6.43 2.82
configure.cpython no-host 29.2 29.1 29.1 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.5 22.6 1.00 1.00
configure.tcc no-host 19.6 19.7 19.6 19.7 19.6 1.00 1.01
configure.util-linux no-host 30.2 30.3 30.2 30.3 30.5 1.00 1.00
configure.yash no-host 26.3 26.4 26.4 26.3 26.4 1.01 1.00
hello-world no-host 2.9 1.4 18.4 6.2 6.0 6.38 2.14

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.2 3,806 3,806 0 701 1,870 1,235 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.1 156,773 15,415 2,902 8,753 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,232 1 70 15.5 29.1 1,785,014 30,560 28,527 91,506 886,575 806,933 25,736 61 50,000 0
configure.util-linux no-host 14,362 3 66 21.6 30.3 2,709,215 53,762 65,706 114,373 1,295,038 1,299,804 32,241 41 131,412 1
configure.ocaml no-host 3,821 1 2 2.6 22.5 149,860 11,179 5,222 7,734 70,874 71,252 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,576 30,576 0 1,543 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,825 1 2 2.6 26.3 139,882 8,046 6,701 6,398 68,339 65,145 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,338 64,420 42,628 4,545 54,462 57,331 277 3 85,256 1
hello-world no-host 3 0 0 0.3 6.0 3,805 3,805 0 702 1,870 1,233 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.9 156,772 15,410 2,897 8,754 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 15,073 1 69 15.4 29.2 1,785,013 30,547 28,522 91,507 886,575 806,931 25,736 61 50,000 0
configure.util-linux no-host 14,127 3 65 21.6 30.5 2,709,215 53,739 65,721 114,375 1,295,038 1,299,802 32,241 41 131,442 1
configure.ocaml no-host 3,798 1 2 2.6 22.6 149,860 11,174 5,217 7,736 70,874 71,250 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,576 30,576 0 1,545 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,816 1 2 2.6 26.4 139,882 8,035 6,690 6,400 68,339 65,143 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,337 64,415 42,623 4,546 54,462 57,329 277 3 85,246 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 11 9 4.5 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 487 430 60 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.2 osh-native
39 no-host abuild-print-help 20 9 12 8.7 osh-native-souffle
1 no-host bin-true 658 300 393 2.9 bash
9 no-host bin-true 537 287 263 1.4 dash
17 no-host bin-true 2,420 817 1,864 18.5 osh-cpython
25 no-host bin-true 797 295 519 8.1 osh-native
33 no-host bin-true 802 299 518 7.9 osh-native-souffle
2 no-host configure.cpython 15,124 6,758 8,795 29.2 bash
10 no-host configure.cpython 15,222 6,793 8,877 29.1 dash
18 no-host configure.cpython 29,783 14,939 16,840 29.1 osh-cpython
26 no-host configure.cpython 15,232 6,663 8,865 29.1 osh-native
34 no-host configure.cpython 15,073 6,628 8,731 29.2 osh-native-souffle
4 no-host configure.ocaml 3,862 1,354 1,540 22.5 bash
12 no-host configure.ocaml 3,765 1,310 1,477 22.6 dash
20 no-host configure.ocaml 4,723 1,921 2,025 22.5 osh-cpython
28 no-host configure.ocaml 3,821 1,348 1,513 22.5 osh-native
36 no-host configure.ocaml 3,798 1,256 1,582 22.6 osh-native-souffle
5 no-host configure.tcc 48 21 27 19.6 bash
13 no-host configure.tcc 42 21 21 19.7 dash
21 no-host configure.tcc 206 138 72 19.6 osh-cpython
29 no-host configure.tcc 48 23 26 19.7 osh-native
37 no-host configure.tcc 48 21 27 19.6 osh-native-souffle
3 no-host configure.util-linux 14,010 5,898 8,616 30.2 bash
11 no-host configure.util-linux 14,912 6,034 9,408 30.3 dash
19 no-host configure.util-linux 32,825 18,638 15,350 30.2 osh-cpython
27 no-host configure.util-linux 14,362 5,739 8,852 30.3 osh-native
35 no-host configure.util-linux 14,127 5,682 8,656 30.5 osh-native-souffle
6 no-host configure.yash 1,851 907 955 26.3 bash
14 no-host configure.yash 1,801 913 893 26.4 dash
22 no-host configure.yash 2,518 1,350 1,214 26.4 osh-cpython
30 no-host configure.yash 1,825 880 950 26.3 osh-native
38 no-host configure.yash 1,816 908 913 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 59 38 21 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 1 2 6.0 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 1 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,211 0 0 0 8 0 44 7 osh-cpython
31 no-host abuild-print-help 3,187 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,417 0 0 0 8 0 1,984 160 bash
9 no-host bin-true 66,428 0 0 0 8 0 1,973 111 dash
17 no-host bin-true 800,580 0 0 0 8 0 1,987 487 osh-cpython
25 no-host bin-true 127,267 0 0 0 16 0 1,989 197 osh-native
33 no-host bin-true 129,260 0 0 0 16 0 1,967 160 osh-native-souffle
2 no-host configure.cpython 1,993,399 1 0 0 32,928 0 14,252 1,190 bash
10 no-host configure.cpython 2,023,709 0 0 0 32,992 0 14,333 1,160 dash
18 no-host configure.cpython 6,102,021 0 0 0 27,512 0 13,094 1,147 osh-cpython
26 no-host configure.cpython 2,011,242 0 0 0 27,520 0 13,050 1,052 osh-native
34 no-host configure.cpython 1,997,971 1 0 0 27,520 0 13,041 1,031 osh-native-souffle
4 no-host configure.ocaml 373,091 0 0 0 5,120 0 1,956 180 bash
12 no-host configure.ocaml 354,238 0 0 0 5,112 0 1,932 175 dash
20 no-host configure.ocaml 616,780 0 0 0 5,112 0 1,842 188 osh-cpython
28 no-host configure.ocaml 376,038 0 0 0 5,120 0 1,926 189 osh-native
36 no-host configure.ocaml 375,973 0 0 0 5,120 0 1,920 211 osh-native-souffle
5 no-host configure.tcc 6,092 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 4,994 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,026 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,538 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,457 0 0 0 104 0 47 15 osh-native-souffle
3 no-host configure.util-linux 1,919,140 0 0 0 42,400 0 18,279 1,270 bash
11 no-host configure.util-linux 2,073,755 1 0 0 42,584 0 17,330 1,372 dash
19 no-host configure.util-linux 5,316,821 11 0 0 39,152 0 17,020 1,325 osh-cpython
27 no-host configure.util-linux 1,825,666 7 0 0 39,128 0 17,018 1,237 osh-native
35 no-host configure.util-linux 1,812,485 0 0 0 39,136 0 17,062 1,190 osh-native-souffle
6 no-host configure.yash 233,006 0 0 0 4,120 0 869 110 bash
14 no-host configure.yash 222,404 0 0 0 3,720 0 868 88 dash
22 no-host configure.yash 369,504 0 0 0 3,728 0 855 78 osh-cpython
30 no-host configure.yash 235,472 0 0 0 3,736 0 848 87 osh-native
38 no-host configure.yash 234,099 0 0 0 3,736 0 845 86 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 74 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,984 0 0 0 8 0 7 1 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 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-0e2faca2
dash dash-0ebcf347
osh-cpython osh-6375e22d
osh-native osh-f1d6aace
osh-native-souffle osh-acfd94a5
host label host id
no-host no-host-e4839999