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 10 483 23 23 23.57 1.10
bin-true no-host 682 552 2,347 833 819 3.44 1.22
configure.cpython no-host 15,754 15,739 30,328 16,177 16,391 1.93 1.03
configure.ocaml no-host 3,900 3,881 4,917 4,056 4,039 1.26 1.04
configure.tcc no-host 49 43 215 51 49 4.38 1.05
configure.util-linux no-host 14,423 15,541 32,950 15,403 15,163 2.28 1.07
configure.yash no-host 1,927 1,836 2,601 1,952 1,932 1.35 1.01
hello-world no-host 2 1 57 3 3 35.25 1.82

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,143 23,698 3,197 3,071 9.35 1.26
bin-true no-host 109,439 66,383 774,716 123,263 124,294 7.08 1.13
configure.cpython no-host 2,224,471 2,235,336 6,209,524 2,216,289 2,212,779 2.79 1.00
configure.ocaml no-host 410,602 391,798 647,623 413,048 412,417 1.58 1.01
configure.tcc no-host 6,531 5,468 24,092 6,986 6,932 3.69 1.07
configure.util-linux no-host 2,104,102 2,259,152 5,377,714 1,994,885 1,993,419 2.56 0.95
configure.yash no-host 255,110 244,653 389,488 258,255 256,028 1.53 1.01
hello-world no-host 152 83 3,939 344 338 25.91 2.26

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 9.0 8.5 5.09 2.03
bin-true no-host 2.9 1.4 18.2 8.1 7.5 6.33 2.82
configure.cpython no-host 27.5 27.5 27.4 27.3 27.5 1.00 0.99
configure.ocaml no-host 20.4 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.1 24.4 24.2 0.99 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.8 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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 833 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 16,177 2 71 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 15,403 4 73 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 4,056 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,952 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 16,391 2 72 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 15,163 3 68 21.2 30.1 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 4,039 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,932 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 12 9 4.5 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 483 443 43 22.7 osh-cpython
31 no-host abuild-print-help 23 17 6 9.0 osh-native
39 no-host abuild-print-help 23 13 11 8.5 osh-native-souffle
1 no-host bin-true 682 507 208 2.9 bash
9 no-host bin-true 552 413 149 1.4 dash
17 no-host bin-true 2,347 1,507 1,114 18.2 osh-cpython
25 no-host bin-true 833 582 265 8.1 osh-native
33 no-host bin-true 819 573 258 7.5 osh-native-souffle
2 no-host configure.cpython 15,754 9,310 6,845 27.5 bash
10 no-host configure.cpython 15,739 9,353 6,823 27.5 dash
18 no-host configure.cpython 30,328 18,451 13,871 27.4 osh-cpython
26 no-host configure.cpython 16,177 9,506 6,950 27.3 osh-native
34 no-host configure.cpython 16,391 9,488 7,032 27.5 osh-native-souffle
4 no-host configure.ocaml 3,900 1,712 1,229 20.4 bash
12 no-host configure.ocaml 3,881 1,595 1,306 20.4 dash
20 no-host configure.ocaml 4,917 2,344 1,806 20.6 osh-cpython
28 no-host configure.ocaml 4,056 1,715 1,379 20.6 osh-native
36 no-host configure.ocaml 4,039 1,705 1,373 20.6 osh-native-souffle
5 no-host configure.tcc 49 27 22 19.3 bash
13 no-host configure.tcc 43 29 15 19.3 dash
21 no-host configure.tcc 215 161 57 19.4 osh-cpython
29 no-host configure.tcc 51 31 21 19.3 osh-native
37 no-host configure.tcc 49 25 25 19.3 osh-native-souffle
3 no-host configure.util-linux 14,423 8,931 5,981 30.3 bash
11 no-host configure.util-linux 15,541 9,378 6,669 30.3 dash
19 no-host configure.util-linux 32,950 21,622 12,488 30.1 osh-cpython
27 no-host configure.util-linux 15,403 9,063 6,543 30.1 osh-native
35 no-host configure.util-linux 15,163 9,076 6,280 30.1 osh-native-souffle
6 no-host configure.yash 1,927 1,096 840 24.2 bash
14 no-host configure.yash 1,836 1,065 774 24.4 dash
22 no-host configure.yash 2,601 1,621 1,025 24.1 osh-cpython
30 no-host configure.yash 1,952 1,114 842 24.4 osh-native
38 no-host configure.yash 1,932 1,094 841 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 35 22 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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 2 bash
15 no-host abuild-print-help 1,143 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,698 0 0 0 8 0 45 15 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 109,439 0 0 0 8 0 1,989 63 bash
9 no-host bin-true 66,383 0 0 0 8 0 1,988 63 dash
17 no-host bin-true 774,716 0 0 0 8 0 1,998 204 osh-cpython
25 no-host bin-true 123,263 0 0 0 16 0 1,981 66 osh-native
33 no-host bin-true 124,294 0 0 0 16 0 1,984 46 osh-native-souffle
2 no-host configure.cpython 2,224,471 1 0 0 32,928 0 14,616 1,048 bash
10 no-host configure.cpython 2,235,336 0 0 0 32,992 0 14,678 1,025 dash
18 no-host configure.cpython 6,209,524 0 0 0 27,512 0 13,245 1,125 osh-cpython
26 no-host configure.cpython 2,216,289 1 0 0 27,520 0 13,265 1,006 osh-native
34 no-host configure.cpython 2,212,779 0 0 0 27,520 0 13,277 913 osh-native-souffle
4 no-host configure.ocaml 410,602 0 0 0 5,120 0 1,949 149 bash
12 no-host configure.ocaml 391,798 0 0 0 5,112 0 1,928 150 dash
20 no-host configure.ocaml 647,623 0 0 0 5,112 0 1,855 170 osh-cpython
28 no-host configure.ocaml 413,048 0 0 0 5,120 0 1,925 218 osh-native
36 no-host configure.ocaml 412,417 0 0 0 5,120 0 1,930 145 osh-native-souffle
5 no-host configure.tcc 6,531 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,092 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 2,104,102 1 0 0 42,400 0 18,551 1,060 bash
11 no-host configure.util-linux 2,259,152 0 0 0 42,584 0 17,398 1,321 dash
19 no-host configure.util-linux 5,377,714 6 0 0 39,120 0 16,954 1,227 osh-cpython
27 no-host configure.util-linux 1,994,885 4 0 0 39,128 0 16,987 940 osh-native
35 no-host configure.util-linux 1,993,419 0 0 0 39,136 0 16,933 982 osh-native-souffle
6 no-host configure.yash 255,110 0 0 0 4,120 0 870 78 bash
14 no-host configure.yash 244,653 0 0 0 3,720 0 868 95 dash
22 no-host configure.yash 389,488 0 0 0 3,728 0 853 96 osh-cpython
30 no-host configure.yash 258,255 0 0 0 3,736 0 847 88 osh-native
38 no-host configure.yash 256,028 0 0 0 3,736 0 849 90 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6439520a
dash dash-0ebcf347
osh-cpython osh-4411f4b6
osh-native osh-ba702c78
osh-native-souffle osh-439e68a7
host label host id
no-host no-host-556df3ee