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 10 451 22 21 23.96 1.17
bin-true no-host 681 544 2,314 813 812 3.40 1.20
configure.cpython no-host 14,749 14,855 28,374 15,018 14,999 1.92 1.02
configure.ocaml no-host 3,739 3,692 4,569 3,782 3,774 1.22 1.01
configure.tcc no-host 47 41 194 48 55 4.09 1.02
configure.util-linux no-host 13,841 14,659 30,947 14,155 14,098 2.24 1.02
configure.yash no-host 1,824 1,737 2,423 1,799 1,800 1.33 0.99
hello-world no-host 1 1 49 3 3 33.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,535 1,106 23,427 3,191 3,059 9.24 1.26
bin-true no-host 106,356 66,397 780,419 126,873 124,863 7.34 1.19
configure.cpython no-host 2,220,257 2,242,845 6,258,323 2,228,555 2,216,847 2.82 1.00
configure.ocaml no-host 410,618 391,030 648,006 413,144 412,278 1.58 1.01
configure.tcc no-host 6,555 5,472 23,842 6,996 6,902 3.64 1.07
configure.util-linux no-host 2,108,207 2,261,532 5,370,526 1,997,756 1,990,479 2.55 0.95
configure.yash no-host 256,822 244,645 388,701 258,154 258,205 1.51 1.01
hello-world no-host 154 80 3,749 349 342 24.34 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.5 22.0 9.0 8.7 4.94 2.03
bin-true no-host 3.0 1.6 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.4 27.4 27.4 27.1 27.4 1.00 0.99
configure.ocaml no-host 20.6 21.0 20.6 20.7 20.6 1.00 1.01
configure.tcc no-host 19.1 19.4 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.0 30.0 30.3 30.1 30.3 1.01 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.3 5.8 6.09 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,774 3,774 0 695 1,851 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 154,739 13,221 2,878 9,745 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,018 1 60 15.0 27.1 1,772,721 49,855 28,588 86,398 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,155 3 58 21.3 30.1 2,703,489 29,147 65,891 109,676 1,320,578 1,273,235 27,391 41 131,782 1
configure.ocaml no-host 3,782 1 2 2.6 20.7 150,095 11,052 5,222 7,532 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,580 30,580 0 1,521 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,799 1 2 2.6 24.2 139,748 8,021 6,680 6,337 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,323 64,531 42,741 4,572 54,520 57,231 270 3 85,482 1
hello-world no-host 3 0 0 0.2 5.8 3,773 3,773 0 696 1,851 1,226 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.7 154,738 13,064 2,816 9,746 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 14,999 1 61 14.9 27.4 1,772,720 49,106 28,526 86,399 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,098 3 60 21.3 30.3 2,703,489 42,742 65,829 109,678 1,320,578 1,273,233 27,391 41 131,658 1
configure.ocaml no-host 3,774 1 2 2.6 20.6 150,095 10,990 5,160 7,534 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 55 0 0 1.3 19.3 30,580 30,580 0 1,523 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,800 1 2 2.6 24.2 139,748 7,959 6,618 6,339 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,322 64,469 42,679 4,573 54,520 57,229 270 3 85,358 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 16 3 4.5 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 451 393 61 22.0 osh-cpython
31 no-host abuild-print-help 22 17 5 9.0 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 681 501 211 3.0 bash
9 no-host bin-true 544 423 132 1.6 dash
17 no-host bin-true 2,314 1,483 1,092 17.7 osh-cpython
25 no-host bin-true 813 583 245 8.0 osh-native
33 no-host bin-true 812 583 243 7.7 osh-native-souffle
2 no-host configure.cpython 14,749 8,975 6,172 27.4 bash
10 no-host configure.cpython 14,855 8,770 6,507 27.4 dash
18 no-host configure.cpython 28,374 17,075 13,158 27.4 osh-cpython
26 no-host configure.cpython 15,018 8,960 6,328 27.1 osh-native
34 no-host configure.cpython 14,999 8,889 6,295 27.4 osh-native-souffle
4 no-host configure.ocaml 3,739 1,581 1,197 20.6 bash
12 no-host configure.ocaml 3,692 1,638 1,072 21.0 dash
20 no-host configure.ocaml 4,569 2,216 1,563 20.6 osh-cpython
28 no-host configure.ocaml 3,782 1,627 1,193 20.7 osh-native
36 no-host configure.ocaml 3,774 1,592 1,215 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.1 bash
13 no-host configure.tcc 41 23 19 19.4 dash
21 no-host configure.tcc 194 146 51 19.4 osh-cpython
29 no-host configure.tcc 48 33 15 19.4 osh-native
37 no-host configure.tcc 55 28 27 19.3 osh-native-souffle
3 no-host configure.util-linux 13,841 8,792 5,522 30.0 bash
11 no-host configure.util-linux 14,659 9,033 6,118 30.0 dash
19 no-host configure.util-linux 30,947 20,634 11,393 30.3 osh-cpython
27 no-host configure.util-linux 14,155 8,409 5,930 30.1 osh-native
35 no-host configure.util-linux 14,098 8,614 5,676 30.3 osh-native-souffle
6 no-host configure.yash 1,824 1,027 786 24.2 bash
14 no-host configure.yash 1,737 1,001 740 24.4 dash
22 no-host configure.yash 2,423 1,493 973 24.2 osh-cpython
30 no-host configure.yash 1,799 987 816 24.2 osh-native
38 no-host configure.yash 1,800 1,012 792 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 25 24 17.6 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,535 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,427 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,059 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,356 0 0 0 8 0 1,996 94 bash
9 no-host bin-true 66,397 0 0 0 8 0 1,987 74 dash
17 no-host bin-true 780,419 0 0 0 8 0 1,997 513 osh-cpython
25 no-host bin-true 126,873 0 0 0 16 0 1,995 113 osh-native
33 no-host bin-true 124,863 0 0 0 16 0 1,995 160 osh-native-souffle
2 no-host configure.cpython 2,220,257 0 0 0 32,928 0 14,474 1,187 bash
10 no-host configure.cpython 2,242,845 0 0 0 32,992 0 14,605 1,329 dash
18 no-host configure.cpython 6,258,323 0 0 0 27,512 0 13,265 1,232 osh-cpython
26 no-host configure.cpython 2,228,555 0 0 0 27,520 0 13,274 1,175 osh-native
34 no-host configure.cpython 2,216,847 0 0 0 27,520 0 13,238 1,083 osh-native-souffle
4 no-host configure.ocaml 410,618 0 0 0 5,120 0 1,947 177 bash
12 no-host configure.ocaml 391,030 0 0 0 5,112 0 1,918 183 dash
20 no-host configure.ocaml 648,006 0 0 0 5,112 0 1,861 172 osh-cpython
28 no-host configure.ocaml 413,144 0 0 0 5,120 0 1,923 168 osh-native
36 no-host configure.ocaml 412,278 0 0 0 5,120 0 1,929 164 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,472 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,842 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,108,207 1 0 0 42,400 0 18,552 1,145 bash
11 no-host configure.util-linux 2,261,532 2 0 0 42,584 0 17,428 1,065 dash
19 no-host configure.util-linux 5,370,526 10 0 0 39,112 0 16,910 1,267 osh-cpython
27 no-host configure.util-linux 1,997,756 0 0 0 39,120 0 16,936 951 osh-native
35 no-host configure.util-linux 1,990,479 3 0 0 39,128 0 16,957 1,095 osh-native-souffle
6 no-host configure.yash 256,822 0 0 0 4,120 0 878 73 bash
14 no-host configure.yash 244,645 0 0 0 3,720 0 869 85 dash
22 no-host configure.yash 388,701 0 0 0 3,728 0 852 93 osh-cpython
30 no-host configure.yash 258,154 0 0 0 3,736 0 848 105 osh-native
38 no-host configure.yash 258,205 0 0 0 3,736 0 851 70 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,749 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-79241837
dash dash-0ebcf347
osh-cpython osh-351e442b
osh-native osh-58029e5a
osh-native-souffle osh-aa1f2134
host label host id
no-host no-host-556df3ee