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 18 9 465 22 21 25.28 1.17
bin-true no-host 650 526 2,401 786 787 3.69 1.21
configure.cpython no-host 14,461 14,532 28,324 14,701 14,598 1.96 1.02
configure.ocaml no-host 3,705 3,660 4,570 3,750 3,714 1.23 1.01
configure.tcc no-host 46 40 203 47 47 4.46 1.04
configure.util-linux no-host 13,459 14,278 31,035 13,906 13,748 2.31 1.03
configure.yash no-host 1,808 1,708 2,418 1,772 1,769 1.34 0.98
hello-world no-host 1 1 55 3 3 42.19 2.13

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,531 1,111 24,185 3,203 3,083 9.56 1.27
bin-true no-host 105,354 66,423 801,391 127,232 128,157 7.61 1.21
configure.cpython no-host 2,002,094 2,019,024 6,108,710 2,027,729 1,996,828 3.05 1.01
configure.ocaml no-host 373,033 354,086 616,273 376,553 376,005 1.65 1.01
configure.tcc no-host 6,087 5,003 24,051 6,513 6,443 3.95 1.07
configure.util-linux no-host 1,912,539 2,073,923 5,312,299 1,814,339 1,813,522 2.78 0.95
configure.yash no-host 233,698 221,645 369,863 235,939 234,929 1.58 1.01
hello-world no-host 147 76 3,967 347 341 26.99 2.36

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.7 8.9 8.7 5.26 2.06
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.10 2.65
configure.cpython no-host 29.1 29.2 29.1 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 1.00
configure.tcc no-host 19.7 19.5 19.7 19.5 19.7 1.00 0.99
configure.util-linux no-host 30.2 30.3 30.3 30.2 30.5 1.00 1.00
configure.yash no-host 26.4 26.3 26.4 26.3 26.3 1.00 1.00
hello-world no-host 2.9 1.4 18.4 6.4 6.0 6.38 2.23

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.4 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 786 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 14,701 2 69 15.5 29.2 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 13,906 3 63 21.6 30.2 2,709,214 53,761 65,725 114,372 1,296,230 1,298,612 32,241 41 131,450 1
configure.ocaml no-host 3,750 1 2 2.6 22.5 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.5 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,772 1 2 2.6 26.3 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 6.0 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 787 1 2 2.6 7.6 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,598 1 65 15.4 29.2 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 13,748 3 61 21.6 30.5 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,714 0 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 47 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,769 1 2 2.6 26.3 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 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 18 12 6 4.3 bash
15 no-host abuild-print-help 9 5 4 3.4 dash
23 no-host abuild-print-help 465 404 64 22.7 osh-cpython
31 no-host abuild-print-help 22 12 10 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 650 292 391 3.0 bash
9 no-host bin-true 526 274 262 1.4 dash
17 no-host bin-true 2,401 829 1,825 18.4 osh-cpython
25 no-host bin-true 786 295 507 8.0 osh-native
33 no-host bin-true 787 294 511 7.6 osh-native-souffle
2 no-host configure.cpython 14,461 6,487 8,378 29.1 bash
10 no-host configure.cpython 14,532 6,554 8,405 29.2 dash
18 no-host configure.cpython 28,324 14,126 16,050 29.1 osh-cpython
26 no-host configure.cpython 14,701 6,384 8,608 29.2 osh-native
34 no-host configure.cpython 14,598 6,336 8,539 29.2 osh-native-souffle
4 no-host configure.ocaml 3,705 1,293 1,453 22.6 bash
12 no-host configure.ocaml 3,660 1,288 1,394 22.6 dash
20 no-host configure.ocaml 4,570 1,832 1,951 22.6 osh-cpython
28 no-host configure.ocaml 3,750 1,304 1,487 22.5 osh-native
36 no-host configure.ocaml 3,714 1,267 1,485 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 26 19.7 bash
13 no-host configure.tcc 40 19 21 19.5 dash
21 no-host configure.tcc 203 140 67 19.7 osh-cpython
29 no-host configure.tcc 47 19 29 19.5 osh-native
37 no-host configure.tcc 47 19 29 19.7 osh-native-souffle
3 no-host configure.util-linux 13,459 5,717 8,231 30.2 bash
11 no-host configure.util-linux 14,278 5,753 9,035 30.3 dash
19 no-host configure.util-linux 31,035 17,830 14,276 30.3 osh-cpython
27 no-host configure.util-linux 13,906 5,616 8,496 30.2 osh-native
35 no-host configure.util-linux 13,748 5,497 8,472 30.5 osh-native-souffle
6 no-host configure.yash 1,808 892 896 26.4 bash
14 no-host configure.yash 1,708 897 816 26.3 dash
22 no-host configure.yash 2,418 1,337 1,124 26.4 osh-cpython
30 no-host configure.yash 1,772 884 891 26.3 osh-native
38 no-host configure.yash 1,769 890 884 26.3 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 55 35 20 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 0 3 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,531 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,185 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,083 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,354 0 0 0 8 0 1,988 120 bash
9 no-host bin-true 66,423 0 0 0 8 0 1,978 102 dash
17 no-host bin-true 801,391 0 0 0 8 0 1,983 514 osh-cpython
25 no-host bin-true 127,232 0 0 0 16 0 1,980 175 osh-native
33 no-host bin-true 128,157 0 0 0 16 0 1,982 133 osh-native-souffle
2 no-host configure.cpython 2,002,094 0 0 0 32,928 0 14,223 1,240 bash
10 no-host configure.cpython 2,019,024 0 0 0 32,992 0 14,366 1,173 dash
18 no-host configure.cpython 6,108,710 0 0 0 27,512 0 13,071 1,156 osh-cpython
26 no-host configure.cpython 2,027,729 0 0 0 27,520 0 13,161 1,142 osh-native
34 no-host configure.cpython 1,996,828 0 0 0 27,520 0 13,009 1,217 osh-native-souffle
4 no-host configure.ocaml 373,033 0 0 0 5,120 0 1,944 215 bash
12 no-host configure.ocaml 354,086 0 0 0 5,112 0 1,928 184 dash
20 no-host configure.ocaml 616,273 0 0 0 5,112 0 1,846 249 osh-cpython
28 no-host configure.ocaml 376,553 0 0 0 5,120 0 1,928 189 osh-native
36 no-host configure.ocaml 376,005 0 0 0 5,120 0 1,922 208 osh-native-souffle
5 no-host configure.tcc 6,087 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,003 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 24,051 0 0 0 96 0 53 2 osh-cpython
29 no-host configure.tcc 6,513 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,443 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,912,539 0 0 0 42,400 0 18,437 1,178 bash
11 no-host configure.util-linux 2,073,923 2 0 0 42,584 0 17,292 1,300 dash
19 no-host configure.util-linux 5,312,299 9 0 0 39,120 0 17,021 1,258 osh-cpython
27 no-host configure.util-linux 1,814,339 0 0 0 39,120 0 17,031 1,164 osh-native
35 no-host configure.util-linux 1,813,522 0 0 0 39,128 0 17,003 1,217 osh-native-souffle
6 no-host configure.yash 233,698 0 0 0 4,120 0 880 89 bash
14 no-host configure.yash 221,645 0 0 0 3,720 0 870 75 dash
22 no-host configure.yash 369,863 0 0 0 3,728 0 852 88 osh-cpython
30 no-host configure.yash 235,939 0 0 0 3,736 0 849 111 osh-native
38 no-host configure.yash 234,929 0 0 0 3,736 0 852 83 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,967 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d91e8db6
dash dash-0ebcf347
osh-cpython osh-2c211de4
osh-native osh-7b221fa4
osh-native-souffle osh-3d452253
host label host id
no-host no-host-e4839999