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 11 465 22 21 24.07 1.13
bin-true no-host 669 537 2,292 806 805 3.43 1.21
configure.cpython no-host 15,144 15,216 29,056 15,365 15,589 1.92 1.01
configure.ocaml no-host 3,876 3,769 4,692 3,849 3,852 1.21 0.99
configure.tcc no-host 47 42 205 50 48 4.32 1.05
configure.util-linux no-host 14,109 14,994 31,614 14,486 14,463 2.24 1.03
configure.yash no-host 1,825 1,788 2,499 1,835 1,839 1.37 1.01
hello-world no-host 1 1 56 3 3 38.03 1.93

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,570 1,107 23,700 3,142 3,082 9.22 1.22
bin-true no-host 104,373 66,363 770,329 126,283 123,253 7.38 1.21
configure.cpython no-host 2,223,676 2,239,826 6,216,312 2,223,714 2,209,009 2.80 1.00
configure.ocaml no-host 410,519 390,528 646,942 412,981 412,261 1.58 1.01
configure.tcc no-host 6,579 5,469 24,034 6,972 6,896 3.65 1.06
configure.util-linux no-host 2,106,604 2,263,691 5,373,733 1,993,388 1,993,675 2.55 0.95
configure.yash no-host 256,147 245,139 387,479 257,787 257,969 1.51 1.01
hello-world no-host 152 79 3,943 342 336 25.94 2.25

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.6 8.9 8.5 5.06 2.00
bin-true no-host 2.9 1.4 18.2 8.1 7.5 6.32 2.82
configure.cpython no-host 27.3 27.4 27.5 27.5 27.5 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.0 30.0 30.4 30.1 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.2 5.9 6.62 2.24

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 806 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 15,365 1 63 14.9 27.5 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,486 3 63 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,849 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 50 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,835 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 22 1 2 2.8 8.9 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.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 805 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 15,589 2 61 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 14,463 3 60 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,852 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 48 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,839 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 21 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 19 12 8 4.5 bash
15 no-host abuild-print-help 11 9 2 3.4 dash
23 no-host abuild-print-help 465 420 48 22.6 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 11 11 8.5 osh-native-souffle
1 no-host bin-true 669 510 190 2.9 bash
9 no-host bin-true 537 413 134 1.4 dash
17 no-host bin-true 2,292 1,501 1,047 18.2 osh-cpython
25 no-host bin-true 806 589 233 8.1 osh-native
33 no-host bin-true 805 564 255 7.5 osh-native-souffle
2 no-host configure.cpython 15,144 9,026 6,510 27.3 bash
10 no-host configure.cpython 15,216 9,189 6,440 27.4 dash
18 no-host configure.cpython 29,056 17,747 13,184 27.5 osh-cpython
26 no-host configure.cpython 15,365 8,991 6,646 27.5 osh-native
34 no-host configure.cpython 15,589 8,991 6,655 27.5 osh-native-souffle
4 no-host configure.ocaml 3,876 1,590 1,307 20.6 bash
12 no-host configure.ocaml 3,769 1,628 1,153 20.6 dash
20 no-host configure.ocaml 4,692 2,302 1,603 20.6 osh-cpython
28 no-host configure.ocaml 3,849 1,639 1,249 20.6 osh-native
36 no-host configure.ocaml 3,852 1,711 1,174 20.6 osh-native-souffle
5 no-host configure.tcc 47 29 19 19.4 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 205 137 71 19.3 osh-cpython
29 no-host configure.tcc 50 33 17 19.3 osh-native
37 no-host configure.tcc 48 23 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,109 8,818 5,768 30.0 bash
11 no-host configure.util-linux 14,994 9,134 6,353 30.0 dash
19 no-host configure.util-linux 31,614 21,227 11,459 30.4 osh-cpython
27 no-host configure.util-linux 14,486 8,712 5,974 30.1 osh-native
35 no-host configure.util-linux 14,463 8,674 5,972 30.1 osh-native-souffle
6 no-host configure.yash 1,825 1,066 768 24.4 bash
14 no-host configure.yash 1,788 1,050 741 24.4 dash
22 no-host configure.yash 2,499 1,552 989 24.2 osh-cpython
30 no-host configure.yash 1,835 1,066 773 24.4 osh-native
38 no-host configure.yash 1,839 1,021 822 24.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 39 18 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 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,570 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,700 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,142 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,082 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 104,373 0 0 0 8 0 1,992 71 bash
9 no-host bin-true 66,363 0 0 0 8 0 1,986 52 dash
17 no-host bin-true 770,329 0 0 0 8 0 1,985 171 osh-cpython
25 no-host bin-true 126,283 0 0 0 16 0 1,994 55 osh-native
33 no-host bin-true 123,253 0 0 0 16 0 1,990 58 osh-native-souffle
2 no-host configure.cpython 2,223,676 0 0 0 32,928 0 14,518 1,084 bash
10 no-host configure.cpython 2,239,826 0 0 0 32,992 0 14,614 1,177 dash
18 no-host configure.cpython 6,216,312 0 0 0 27,512 0 13,266 1,136 osh-cpython
26 no-host configure.cpython 2,223,714 0 0 0 27,520 0 13,168 911 osh-native
34 no-host configure.cpython 2,209,009 0 0 0 27,520 0 13,166 961 osh-native-souffle
4 no-host configure.ocaml 410,519 0 0 0 5,120 0 1,971 184 bash
12 no-host configure.ocaml 390,528 0 0 0 5,112 0 1,870 146 dash
20 no-host configure.ocaml 646,942 0 0 0 5,112 0 1,857 161 osh-cpython
28 no-host configure.ocaml 412,981 0 0 0 5,120 0 1,923 183 osh-native
36 no-host configure.ocaml 412,261 0 0 0 5,120 0 1,930 152 osh-native-souffle
5 no-host configure.tcc 6,579 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,034 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,896 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,604 0 0 0 42,400 0 18,576 1,012 bash
11 no-host configure.util-linux 2,263,691 0 0 0 42,584 0 17,419 1,102 dash
19 no-host configure.util-linux 5,373,733 8 0 0 39,128 0 16,966 1,174 osh-cpython
27 no-host configure.util-linux 1,993,388 0 0 0 39,120 0 16,981 977 osh-native
35 no-host configure.util-linux 1,993,675 0 0 0 39,136 0 16,982 986 osh-native-souffle
6 no-host configure.yash 256,147 0 0 0 4,120 0 870 84 bash
14 no-host configure.yash 245,139 0 0 0 3,720 0 869 85 dash
22 no-host configure.yash 387,479 0 0 0 3,736 0 854 93 osh-cpython
30 no-host configure.yash 257,787 0 0 0 3,736 0 849 66 osh-native
38 no-host configure.yash 257,969 0 0 0 3,736 0 850 55 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,943 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2d5c0829
dash dash-0ebcf347
osh-cpython osh-641712ed
osh-native osh-94355a28
osh-native-souffle osh-55720c1f
host label host id
no-host no-host-556df3ee