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 503 23 21 26.14 1.18
bin-true no-host 657 528 2,369 809 806 3.61 1.23
configure.cpython no-host 14,819 14,897 29,261 15,472 15,276 1.97 1.04
configure.ocaml no-host 3,806 3,713 4,666 3,843 3,813 1.23 1.01
configure.tcc no-host 47 40 206 49 47 4.41 1.04
configure.util-linux no-host 13,761 14,638 31,830 14,391 14,329 2.31 1.05
configure.yash no-host 1,814 1,747 2,529 1,839 1,819 1.39 1.01
hello-world no-host 1 1 57 3 3 38.39 1.89

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,534 1,107 25,362 3,197 3,106 10.01 1.26
bin-true no-host 104,296 66,403 809,645 127,318 127,228 7.76 1.22
configure.cpython no-host 1,998,143 2,021,257 6,105,140 2,015,378 2,001,837 3.06 1.01
configure.ocaml no-host 373,426 353,743 615,688 376,595 375,714 1.65 1.01
configure.tcc no-host 6,101 5,021 24,030 6,504 6,455 3.94 1.07
configure.util-linux no-host 1,912,508 2,075,543 5,284,036 1,820,914 1,815,030 2.76 0.95
configure.yash no-host 233,299 221,243 369,748 235,031 235,782 1.58 1.01
hello-world no-host 148 76 3,974 346 339 26.85 2.34

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 9.0 8.7 5.26 2.09
bin-true no-host 3.0 1.4 18.5 8.1 7.7 6.15 2.70
configure.cpython no-host 29.2 29.2 29.2 29.3 29.0 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.2 22.5 22.5 0.98 0.99
configure.tcc no-host 19.4 19.6 19.7 19.5 19.7 1.01 1.00
configure.util-linux no-host 30.3 30.2 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.2 26.4 26.3 26.4 26.3 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.3 6.0 6.32 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,811 3,811 0 701 1,872 1,238 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.1 156,778 15,417 2,904 8,753 77,339 70,686 3,008 3 50,000 0
configure.cpython no-host 15,472 2 70 15.5 29.3 1,785,019 30,562 28,529 91,506 886,576 806,937 25,736 61 50,000 0
configure.util-linux no-host 14,391 3 67 21.6 30.2 2,709,220 53,764 65,708 114,373 1,295,039 1,299,808 32,241 41 131,416 1
configure.ocaml no-host 3,843 1 2 2.6 22.5 149,865 11,181 5,224 7,734 70,876 71,255 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.5 30,581 30,581 0 1,543 14,638 14,400 271 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 26.4 139,887 8,048 6,703 6,398 68,341 65,148 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,343 64,422 42,630 4,545 54,464 57,334 277 3 85,260 1
hello-world no-host 3 0 0 0.3 6.0 3,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 806 1 2 2.6 7.7 156,777 15,412 2,899 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 15,276 1 72 15.5 29.0 1,785,018 30,549 28,524 91,507 886,576 806,935 25,736 61 50,000 0
configure.util-linux no-host 14,329 3 67 21.6 30.3 2,709,220 53,741 65,723 114,375 1,295,039 1,299,806 32,241 41 131,446 1
configure.ocaml no-host 3,813 1 2 2.6 22.5 149,865 11,176 5,219 7,736 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,581 30,581 0 1,545 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.6 26.3 139,887 8,037 6,692 6,400 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,342 64,417 42,625 4,546 54,464 57,332 277 3 85,250 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 7 13 4.3 bash
15 no-host abuild-print-help 9 3 7 3.4 dash
23 no-host abuild-print-help 503 438 68 22.7 osh-cpython
31 no-host abuild-print-help 23 13 10 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 657 299 390 3.0 bash
9 no-host bin-true 528 280 260 1.4 dash
17 no-host bin-true 2,369 804 1,828 18.5 osh-cpython
25 no-host bin-true 809 300 525 8.1 osh-native
33 no-host bin-true 806 285 536 7.7 osh-native-souffle
2 no-host configure.cpython 14,819 6,712 8,533 29.2 bash
10 no-host configure.cpython 14,897 6,746 8,594 29.2 dash
18 no-host configure.cpython 29,261 14,530 16,663 29.2 osh-cpython
26 no-host configure.cpython 15,472 6,824 8,953 29.3 osh-native
34 no-host configure.cpython 15,276 6,745 8,831 29.0 osh-native-souffle
4 no-host configure.ocaml 3,806 1,326 1,512 22.6 bash
12 no-host configure.ocaml 3,713 1,287 1,449 22.6 dash
20 no-host configure.ocaml 4,666 1,890 1,993 22.2 osh-cpython
28 no-host configure.ocaml 3,843 1,308 1,579 22.5 osh-native
36 no-host configure.ocaml 3,813 1,302 1,551 22.5 osh-native-souffle
5 no-host configure.tcc 47 25 23 19.4 bash
13 no-host configure.tcc 40 21 19 19.6 dash
21 no-host configure.tcc 206 142 68 19.7 osh-cpython
29 no-host configure.tcc 49 25 24 19.5 osh-native
37 no-host configure.tcc 47 19 28 19.7 osh-native-souffle
3 no-host configure.util-linux 13,761 5,876 8,372 30.3 bash
11 no-host configure.util-linux 14,638 5,884 9,284 30.2 dash
19 no-host configure.util-linux 31,830 18,212 14,726 30.2 osh-cpython
27 no-host configure.util-linux 14,391 5,738 8,884 30.2 osh-native
35 no-host configure.util-linux 14,329 5,798 8,758 30.3 osh-native-souffle
6 no-host configure.yash 1,814 956 868 26.2 bash
14 no-host configure.yash 1,747 879 873 26.4 dash
22 no-host configure.yash 2,529 1,384 1,190 26.3 osh-cpython
30 no-host configure.yash 1,839 917 927 26.4 osh-native
38 no-host configure.yash 1,819 922 902 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 57 38 19 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,362 0 0 0 8 0 44 11 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,106 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 104,296 0 0 0 8 0 1,976 239 bash
9 no-host bin-true 66,403 0 0 0 8 0 1,978 69 dash
17 no-host bin-true 809,645 0 0 0 8 0 1,986 161 osh-cpython
25 no-host bin-true 127,318 0 0 0 16 0 1,957 143 osh-native
33 no-host bin-true 127,228 0 0 0 16 0 1,972 105 osh-native-souffle
2 no-host configure.cpython 1,998,143 0 0 0 32,928 0 14,229 1,523 bash
10 no-host configure.cpython 2,021,257 0 0 0 32,992 0 14,385 1,162 dash
18 no-host configure.cpython 6,105,140 0 0 0 27,512 0 13,051 1,162 osh-cpython
26 no-host configure.cpython 2,015,378 0 0 0 27,520 0 13,030 1,129 osh-native
34 no-host configure.cpython 2,001,837 0 0 0 27,520 0 13,072 1,009 osh-native-souffle
4 no-host configure.ocaml 373,426 0 0 0 5,120 0 1,965 262 bash
12 no-host configure.ocaml 353,743 0 0 0 5,112 0 1,942 173 dash
20 no-host configure.ocaml 615,688 0 0 0 5,112 0 1,844 196 osh-cpython
28 no-host configure.ocaml 376,595 0 0 0 5,120 0 1,926 214 osh-native
36 no-host configure.ocaml 375,714 0 0 0 5,120 0 1,919 197 osh-native-souffle
5 no-host configure.tcc 6,101 0 0 0 104 0 48 0 bash
13 no-host configure.tcc 5,021 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,030 0 0 0 96 0 52 11 osh-cpython
29 no-host configure.tcc 6,504 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,455 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,912,508 1 0 0 42,400 0 18,358 1,354 bash
11 no-host configure.util-linux 2,075,543 1 0 0 42,584 0 17,269 1,401 dash
19 no-host configure.util-linux 5,284,036 17 0 0 39,112 0 17,106 1,370 osh-cpython
27 no-host configure.util-linux 1,820,914 2 0 0 39,128 0 16,942 1,177 osh-native
35 no-host configure.util-linux 1,815,030 2 0 0 39,136 0 16,840 1,101 osh-native-souffle
6 no-host configure.yash 233,299 0 0 0 4,120 0 868 79 bash
14 no-host configure.yash 221,243 0 0 0 3,720 0 872 95 dash
22 no-host configure.yash 369,748 1 0 0 3,728 0 852 97 osh-cpython
30 no-host configure.yash 235,031 0 0 0 3,736 0 850 93 osh-native
38 no-host configure.yash 235,782 0 0 0 3,736 0 848 83 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 1 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,974 0 0 0 8 0 7 2 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 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ab7b6074
dash dash-0ebcf347
osh-cpython osh-6037e87d
osh-native osh-d38d853a
osh-native-souffle osh-ad8fbd87
host label host id
no-host no-host-e4839999