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 478 22 22 25.22 1.17
bin-true no-host 655 522 2,361 799 793 3.60 1.22
configure.cpython no-host 14,821 14,703 28,741 15,110 15,038 1.94 1.02
configure.ocaml no-host 3,764 3,683 4,632 3,790 3,920 1.23 1.01
configure.tcc no-host 46 40 220 47 50 4.81 1.03
configure.util-linux no-host 13,714 14,482 31,406 14,330 14,546 2.29 1.04
configure.yash no-host 1,785 1,743 2,484 1,832 1,906 1.39 1.03
hello-world no-host 1 1 57 3 3 43.46 2.10

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,090 24,168 3,198 3,122 9.46 1.25
bin-true no-host 104,383 65,432 802,397 127,169 127,138 7.69 1.22
configure.cpython no-host 1,995,053 2,022,992 6,097,446 2,009,001 2,002,244 3.06 1.01
configure.ocaml no-host 373,491 353,674 616,795 376,573 375,977 1.65 1.01
configure.tcc no-host 6,093 5,011 24,048 6,508 6,466 3.95 1.07
configure.util-linux no-host 1,908,597 2,070,392 5,305,791 1,817,446 1,812,420 2.78 0.95
configure.yash no-host 233,904 222,397 369,635 235,811 235,462 1.58 1.01
hello-world no-host 150 75 3,971 344 342 26.47 2.29

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.7 8.9 8.8 5.10 2.00
bin-true no-host 2.9 1.6 18.5 8.0 7.7 6.43 2.77
configure.cpython no-host 29.2 29.3 28.9 29.3 29.1 0.99 1.00
configure.ocaml no-host 22.6 22.5 22.5 22.6 22.6 1.00 1.00
configure.tcc no-host 19.4 19.8 19.8 19.7 19.7 1.02 1.01
configure.util-linux no-host 30.3 30.5 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.4 26.4 1.00 1.01
hello-world no-host 2.9 1.4 18.4 6.3 5.9 6.38 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.0 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,110 2 73 15.5 29.3 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 14,330 3 70 21.6 30.2 2,709,214 53,761 65,705 114,372 1,296,230 1,298,612 32,241 41 131,410 1
configure.ocaml no-host 3,790 1 2 2.6 22.6 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,832 1 2 2.6 26.4 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,337 64,419 42,627 4,544 54,462 57,331 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 793 1 2 2.6 7.7 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 15,038 1 68 15.4 29.1 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 14,546 3 67 21.6 30.3 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,920 1 2 2.6 22.6 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.7 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,906 1 2 2.6 26.4 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,336 64,414 42,622 4,545 54,462 57,329 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 19 11 9 4.5 bash
15 no-host abuild-print-help 9 3 7 3.5 dash
23 no-host abuild-print-help 478 418 64 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
39 no-host abuild-print-help 22 11 11 8.8 osh-native-souffle
1 no-host bin-true 655 294 394 2.9 bash
9 no-host bin-true 522 277 256 1.6 dash
17 no-host bin-true 2,361 786 1,831 18.5 osh-cpython
25 no-host bin-true 799 302 515 8.0 osh-native
33 no-host bin-true 793 291 518 7.7 osh-native-souffle
2 no-host configure.cpython 14,821 6,749 8,479 29.2 bash
10 no-host configure.cpython 14,703 6,686 8,450 29.3 dash
18 no-host configure.cpython 28,741 14,292 16,340 28.9 osh-cpython
26 no-host configure.cpython 15,110 6,730 8,669 29.3 osh-native
34 no-host configure.cpython 15,038 6,635 8,689 29.1 osh-native-souffle
4 no-host configure.ocaml 3,764 1,335 1,463 22.6 bash
12 no-host configure.ocaml 3,683 1,296 1,409 22.5 dash
20 no-host configure.ocaml 4,632 1,890 1,962 22.5 osh-cpython
28 no-host configure.ocaml 3,790 1,320 1,511 22.6 osh-native
36 no-host configure.ocaml 3,920 1,368 1,593 22.6 osh-native-souffle
5 no-host configure.tcc 46 21 25 19.4 bash
13 no-host configure.tcc 40 21 19 19.8 dash
21 no-host configure.tcc 220 151 73 19.8 osh-cpython
29 no-host configure.tcc 47 22 26 19.7 osh-native
37 no-host configure.tcc 50 21 30 19.7 osh-native-souffle
3 no-host configure.util-linux 13,714 5,820 8,304 30.3 bash
11 no-host configure.util-linux 14,482 5,886 9,108 30.5 dash
19 no-host configure.util-linux 31,406 17,874 14,625 30.3 osh-cpython
27 no-host configure.util-linux 14,330 5,710 8,842 30.2 osh-native
35 no-host configure.util-linux 14,546 5,744 9,023 30.3 osh-native-souffle
6 no-host configure.yash 1,785 894 900 26.3 bash
14 no-host configure.yash 1,743 873 874 26.3 dash
22 no-host configure.yash 2,484 1,330 1,198 26.4 osh-cpython
30 no-host configure.yash 1,832 919 908 26.4 osh-native
38 no-host configure.yash 1,906 927 984 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 35 22 18.4 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,554 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,168 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 38 0 osh-native
39 no-host abuild-print-help 3,122 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,383 0 0 0 8 0 1,984 315 bash
9 no-host bin-true 65,432 0 0 0 8 0 1,985 92 dash
17 no-host bin-true 802,397 0 0 0 8 0 1,988 206 osh-cpython
25 no-host bin-true 127,169 0 0 0 16 0 1,974 116 osh-native
33 no-host bin-true 127,138 0 0 0 16 0 1,976 182 osh-native-souffle
2 no-host configure.cpython 1,995,053 0 0 0 32,928 0 14,238 1,223 bash
10 no-host configure.cpython 2,022,992 0 0 0 32,992 0 14,345 1,042 dash
18 no-host configure.cpython 6,097,446 2 0 0 27,512 0 13,027 1,165 osh-cpython
26 no-host configure.cpython 2,009,001 0 0 0 27,520 0 13,093 1,115 osh-native
34 no-host configure.cpython 2,002,244 0 0 0 27,520 0 12,988 1,091 osh-native-souffle
4 no-host configure.ocaml 373,491 0 0 0 5,120 0 1,952 193 bash
12 no-host configure.ocaml 353,674 0 0 0 5,112 0 1,937 177 dash
20 no-host configure.ocaml 616,795 0 0 0 5,112 0 1,844 205 osh-cpython
28 no-host configure.ocaml 376,573 0 0 0 5,120 0 1,920 205 osh-native
36 no-host configure.ocaml 375,977 0 0 0 5,120 0 1,917 211 osh-native-souffle
5 no-host configure.tcc 6,093 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,048 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,508 0 0 0 104 0 46 3 osh-native
37 no-host configure.tcc 6,466 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,908,597 0 0 0 42,400 0 18,427 1,343 bash
11 no-host configure.util-linux 2,070,392 2 0 0 42,584 0 17,349 1,394 dash
19 no-host configure.util-linux 5,305,791 9 0 0 39,128 0 17,036 1,267 osh-cpython
27 no-host configure.util-linux 1,817,446 2 0 0 39,128 0 17,017 1,116 osh-native
35 no-host configure.util-linux 1,812,420 0 0 0 39,136 0 16,952 1,071 osh-native-souffle
6 no-host configure.yash 233,904 0 0 0 4,120 0 871 88 bash
14 no-host configure.yash 222,397 0 0 0 3,720 0 872 81 dash
22 no-host configure.yash 369,635 0 0 0 3,728 0 852 90 osh-cpython
30 no-host configure.yash 235,811 0 0 0 3,736 0 851 92 osh-native
38 no-host configure.yash 235,462 0 0 0 3,736 0 851 85 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,971 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-26839bdd
dash dash-0ebcf347
osh-cpython osh-f8c45e81
osh-native osh-a80f55f1
osh-native-souffle osh-12b73fbc
host label host id
no-host no-host-e4839999