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 473 23 22 23.48 1.13
bin-true no-host 695 564 2,346 824 829 3.38 1.19
configure.cpython no-host 15,899 15,707 30,117 15,764 16,258 1.89 0.99
configure.ocaml no-host 3,942 3,867 4,723 3,974 3,963 1.20 1.01
configure.tcc no-host 50 42 221 51 50 4.42 1.02
configure.util-linux no-host 14,724 15,536 32,805 15,214 15,299 2.23 1.03
configure.yash no-host 1,943 1,795 2,530 1,935 1,945 1.30 1.00
hello-world no-host 2 1 60 3 3 37.55 1.86

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,573 1,097 23,658 3,176 3,051 9.19 1.23
bin-true no-host 108,325 66,461 775,699 124,262 124,287 7.16 1.15
configure.cpython no-host 2,227,008 2,249,814 6,204,649 2,217,382 2,199,526 2.79 1.00
configure.ocaml no-host 410,312 390,799 646,758 412,993 412,085 1.58 1.01
configure.tcc no-host 6,552 5,482 24,087 6,973 6,906 3.68 1.06
configure.util-linux no-host 2,100,001 2,259,596 5,385,165 2,002,312 1,988,359 2.56 0.95
configure.yash no-host 256,289 244,460 388,550 257,223 258,316 1.52 1.00
hello-world no-host 152 82 3,949 345 338 25.98 2.27

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.0 8.7 5.09 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.4 27.4 27.3 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 18.2 6.3 5.8 6.62 2.29

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 824 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,764 1 64 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,214 3 66 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 3,974 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,935 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 829 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 16,258 1 66 14.9 27.3 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,299 3 66 21.2 30.0 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 3,963 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 50 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,945 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 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 10 10 4.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 473 419 56 22.7 osh-cpython
31 no-host abuild-print-help 23 21 2 9.0 osh-native
39 no-host abuild-print-help 22 12 10 8.7 osh-native-souffle
1 no-host bin-true 695 510 216 2.9 bash
9 no-host bin-true 564 433 137 1.4 dash
17 no-host bin-true 2,346 1,561 1,052 18.4 osh-cpython
25 no-host bin-true 824 576 262 8.0 osh-native
33 no-host bin-true 829 582 260 7.6 osh-native-souffle
2 no-host configure.cpython 15,899 9,384 6,931 27.4 bash
10 no-host configure.cpython 15,707 9,431 6,709 27.4 dash
18 no-host configure.cpython 30,117 18,243 13,835 27.3 osh-cpython
26 no-host configure.cpython 15,764 9,257 6,772 27.3 osh-native
34 no-host configure.cpython 16,258 9,540 6,788 27.3 osh-native-souffle
4 no-host configure.ocaml 3,942 1,679 1,306 20.6 bash
12 no-host configure.ocaml 3,867 1,661 1,226 20.4 dash
20 no-host configure.ocaml 4,723 2,246 1,691 20.6 osh-cpython
28 no-host configure.ocaml 3,974 1,659 1,355 20.6 osh-native
36 no-host configure.ocaml 3,963 1,647 1,349 20.6 osh-native-souffle
5 no-host configure.tcc 50 28 23 19.4 bash
13 no-host configure.tcc 42 26 17 19.4 dash
21 no-host configure.tcc 221 162 63 19.4 osh-cpython
29 no-host configure.tcc 51 34 18 19.3 osh-native
37 no-host configure.tcc 50 35 16 19.3 osh-native-souffle
3 no-host configure.util-linux 14,724 9,281 5,928 30.3 bash
11 no-host configure.util-linux 15,536 9,395 6,627 30.0 dash
19 no-host configure.util-linux 32,805 21,477 12,457 30.3 osh-cpython
27 no-host configure.util-linux 15,214 9,003 6,417 30.1 osh-native
35 no-host configure.util-linux 15,299 9,028 6,468 30.0 osh-native-souffle
6 no-host configure.yash 1,943 1,107 845 24.2 bash
14 no-host configure.yash 1,795 1,038 761 24.5 dash
22 no-host configure.yash 2,530 1,562 1,011 24.4 osh-cpython
30 no-host configure.yash 1,935 1,100 838 24.4 osh-native
38 no-host configure.yash 1,945 1,076 874 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 44 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,573 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,658 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,051 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,325 0 0 0 8 0 1,986 47 bash
9 no-host bin-true 66,461 0 0 0 8 0 1,987 111 dash
17 no-host bin-true 775,699 0 0 0 8 0 1,993 222 osh-cpython
25 no-host bin-true 124,262 0 0 0 16 0 1,988 62 osh-native
33 no-host bin-true 124,287 0 0 0 16 0 1,989 73 osh-native-souffle
2 no-host configure.cpython 2,227,008 0 0 0 32,928 0 14,525 1,038 bash
10 no-host configure.cpython 2,249,814 1 0 0 32,992 0 14,563 1,098 dash
18 no-host configure.cpython 6,204,649 0 0 0 27,512 0 13,212 1,206 osh-cpython
26 no-host configure.cpython 2,217,382 0 0 0 27,520 0 13,206 982 osh-native
34 no-host configure.cpython 2,199,526 0 0 0 27,520 0 13,259 941 osh-native-souffle
4 no-host configure.ocaml 410,312 0 0 0 5,120 0 1,951 146 bash
12 no-host configure.ocaml 390,799 0 0 0 5,112 0 1,910 132 dash
20 no-host configure.ocaml 646,758 0 0 0 5,112 0 1,856 170 osh-cpython
28 no-host configure.ocaml 412,993 0 0 0 5,120 0 1,931 199 osh-native
36 no-host configure.ocaml 412,085 0 0 0 5,120 0 1,933 138 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,087 0 0 0 96 0 52 13 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,906 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,001 0 0 0 42,408 0 18,608 931 bash
11 no-host configure.util-linux 2,259,596 0 0 0 42,592 0 17,452 1,163 dash
19 no-host configure.util-linux 5,385,165 11 0 0 39,112 0 16,989 1,341 osh-cpython
27 no-host configure.util-linux 2,002,312 3 0 0 39,128 0 17,048 984 osh-native
35 no-host configure.util-linux 1,988,359 2 0 0 39,136 0 16,949 1,025 osh-native-souffle
6 no-host configure.yash 256,289 0 0 0 4,120 0 870 86 bash
14 no-host configure.yash 244,460 0 0 0 3,720 0 867 92 dash
22 no-host configure.yash 388,550 0 0 0 3,728 0 857 95 osh-cpython
30 no-host configure.yash 257,223 0 0 0 3,736 0 850 192 osh-native
38 no-host configure.yash 258,316 0 0 0 3,736 0 847 92 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,949 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b7fbe819
dash dash-0ebcf347
osh-cpython osh-695cce3d
osh-native osh-1bf9dc69
osh-native-souffle osh-673905c8
host label host id
no-host no-host-556df3ee