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 477 22 21 25.43 1.16
bin-true no-host 668 532 2,402 794 807 3.59 1.19
configure.cpython no-host 15,342 15,191 30,570 15,119 15,460 1.99 0.99
configure.ocaml no-host 3,798 3,761 4,671 3,891 3,802 1.23 1.02
configure.tcc no-host 48 41 204 51 48 4.27 1.06
configure.util-linux no-host 14,322 14,776 32,091 14,066 14,385 2.24 0.98
configure.yash no-host 1,831 1,777 2,445 1,827 1,826 1.33 1.00
hello-world no-host 1 1 58 3 3 41.63 1.99

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,528 1,086 24,341 3,224 3,104 9.63 1.28
bin-true no-host 107,322 66,460 806,606 127,161 127,183 7.52 1.18
configure.cpython no-host 1,994,446 2,022,037 6,097,920 2,019,608 2,001,212 3.06 1.01
configure.ocaml no-host 373,347 353,619 617,235 376,668 375,995 1.65 1.01
configure.tcc no-host 6,072 4,992 24,054 6,532 6,453 3.96 1.08
configure.util-linux no-host 1,912,264 2,075,873 5,311,809 1,817,561 1,807,063 2.78 0.95
configure.yash no-host 233,857 221,744 369,818 235,647 234,436 1.58 1.01
hello-world no-host 148 77 3,981 350 340 26.90 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.5 22.9 9.0 8.5 5.29 2.09
bin-true no-host 3.0 1.4 18.7 8.0 7.6 6.19 2.65
configure.cpython no-host 29.2 29.3 29.2 29.3 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.5 19.5 19.7 19.7 19.6 1.01 1.01
configure.util-linux no-host 30.3 30.2 30.2 30.3 30.1 0.99 1.00
configure.yash no-host 26.4 26.4 26.3 26.4 26.3 0.99 1.00
hello-world no-host 2.9 1.4 18.4 6.3 6.0 6.38 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,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.0 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 15,119 2 71 15.3 29.3 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,066 3 66 21.6 30.3 2,704,674 53,757 65,725 114,372 1,293,957 1,296,345 32,241 41 131,450 1
configure.ocaml no-host 3,891 1 2 2.6 22.6 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.7 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.6 26.4 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,321 64,419 42,627 4,544 54,454 57,323 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 807 1 2 2.6 7.6 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,460 2 73 15.3 29.2 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,385 4 74 21.6 30.1 2,704,674 53,734 65,700 114,374 1,293,957 1,296,343 32,241 41 131,400 1
configure.ocaml no-host 3,802 1 2 2.6 22.6 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 26.3 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,320 64,414 42,622 4,545 54,454 57,321 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 19 11 8 4.3 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 477 424 57 22.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.0 osh-native
39 no-host abuild-print-help 21 14 7 8.5 osh-native-souffle
1 no-host bin-true 668 300 401 3.0 bash
9 no-host bin-true 532 274 270 1.4 dash
17 no-host bin-true 2,402 817 1,845 18.7 osh-cpython
25 no-host bin-true 794 303 508 8.0 osh-native
33 no-host bin-true 807 295 531 7.6 osh-native-souffle
2 no-host configure.cpython 15,342 6,879 8,912 29.2 bash
10 no-host configure.cpython 15,191 6,767 8,884 29.3 dash
18 no-host configure.cpython 30,570 15,310 17,315 29.2 osh-cpython
26 no-host configure.cpython 15,119 6,597 8,821 29.3 osh-native
34 no-host configure.cpython 15,460 6,702 8,883 29.2 osh-native-souffle
4 no-host configure.ocaml 3,798 1,302 1,540 22.6 bash
12 no-host configure.ocaml 3,761 1,272 1,510 22.6 dash
20 no-host configure.ocaml 4,671 1,904 1,994 22.6 osh-cpython
28 no-host configure.ocaml 3,891 1,351 1,586 22.6 osh-native
36 no-host configure.ocaml 3,802 1,336 1,507 22.6 osh-native-souffle
5 no-host configure.tcc 48 26 23 19.5 bash
13 no-host configure.tcc 41 18 23 19.5 dash
21 no-host configure.tcc 204 141 67 19.7 osh-cpython
29 no-host configure.tcc 51 22 29 19.7 osh-native
37 no-host configure.tcc 48 23 25 19.6 osh-native-souffle
3 no-host configure.util-linux 14,322 6,129 8,718 30.3 bash
11 no-host configure.util-linux 14,776 6,088 9,226 30.2 dash
19 no-host configure.util-linux 32,091 18,209 15,035 30.2 osh-cpython
27 no-host configure.util-linux 14,066 5,561 8,730 30.3 osh-native
35 no-host configure.util-linux 14,385 5,734 8,875 30.1 osh-native-souffle
6 no-host configure.yash 1,831 897 945 26.4 bash
14 no-host configure.yash 1,777 889 891 26.4 dash
22 no-host configure.yash 2,445 1,330 1,158 26.3 osh-cpython
30 no-host configure.yash 1,827 905 927 26.4 osh-native
38 no-host configure.yash 1,826 917 913 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 58 36 23 18.4 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,528 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,341 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,104 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,322 0 0 0 8 0 1,987 148 bash
9 no-host bin-true 66,460 0 0 0 8 0 1,972 91 dash
17 no-host bin-true 806,606 0 0 0 8 0 1,979 338 osh-cpython
25 no-host bin-true 127,161 0 0 0 16 0 1,980 179 osh-native
33 no-host bin-true 127,183 0 0 0 16 0 1,984 116 osh-native-souffle
2 no-host configure.cpython 1,994,446 0 0 0 32,952 0 14,252 1,086 bash
10 no-host configure.cpython 2,022,037 0 0 0 32,992 0 14,336 1,089 dash
18 no-host configure.cpython 6,097,920 0 0 0 27,512 0 13,077 1,035 osh-cpython
26 no-host configure.cpython 2,019,608 0 0 0 27,520 0 13,120 1,203 osh-native
34 no-host configure.cpython 2,001,212 0 0 0 27,520 0 13,165 1,039 osh-native-souffle
4 no-host configure.ocaml 373,347 0 0 0 5,120 0 1,949 188 bash
12 no-host configure.ocaml 353,619 0 0 0 5,112 0 1,934 182 dash
20 no-host configure.ocaml 617,235 0 0 0 5,112 0 1,854 202 osh-cpython
28 no-host configure.ocaml 376,668 0 0 0 5,120 0 1,937 187 osh-native
36 no-host configure.ocaml 375,995 0 0 0 5,120 0 1,920 202 osh-native-souffle
5 no-host configure.tcc 6,072 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,992 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,054 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,532 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,453 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,912,264 0 0 0 42,400 0 18,567 1,164 bash
11 no-host configure.util-linux 2,075,873 2 0 0 42,584 0 17,308 1,390 dash
19 no-host configure.util-linux 5,311,809 8 0 0 39,120 0 17,007 1,292 osh-cpython
27 no-host configure.util-linux 1,817,561 0 0 0 39,128 0 17,001 1,095 osh-native
35 no-host configure.util-linux 1,807,063 0 0 0 39,136 0 16,990 1,078 osh-native-souffle
6 no-host configure.yash 233,857 0 0 0 4,120 0 870 81 bash
14 no-host configure.yash 221,744 0 0 0 3,720 0 865 100 dash
22 no-host configure.yash 369,818 0 0 0 3,728 0 854 101 osh-cpython
30 no-host configure.yash 235,647 0 0 0 3,736 0 850 89 osh-native
38 no-host configure.yash 234,436 0 0 0 3,736 0 850 105 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,981 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-138d38cf
dash dash-0ebcf347
osh-cpython osh-870b5e72
osh-native osh-f31f4d3d
osh-native-souffle osh-41ca9165
host label host id
no-host no-host-e4839999