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 21 10 469 23 21 22.21 1.07
bin-true no-host 684 561 2,284 810 813 3.34 1.19
configure.cpython no-host 15,722 15,645 29,297 15,582 16,955 1.86 0.99
configure.ocaml no-host 3,918 3,849 4,755 3,901 3,870 1.21 1.00
configure.tcc no-host 51 45 198 50 51 3.89 0.98
configure.util-linux no-host 14,708 15,489 31,862 14,742 14,605 2.17 1.00
configure.yash no-host 1,873 1,818 2,538 1,882 1,876 1.35 1.00
hello-world no-host 2 1 50 3 3 32.76 1.87

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,547 1,096 23,418 3,163 3,076 9.19 1.24
bin-true no-host 102,313 66,374 781,400 124,822 124,886 7.64 1.22
configure.cpython no-host 2,224,120 2,236,620 6,251,409 2,226,339 2,203,450 2.81 1.00
configure.ocaml no-host 411,163 390,593 646,883 412,775 412,546 1.57 1.00
configure.tcc no-host 6,565 5,481 23,753 6,972 6,908 3.62 1.06
configure.util-linux no-host 2,101,711 2,258,909 5,365,400 1,997,166 1,990,189 2.55 0.95
configure.yash no-host 256,675 244,543 387,822 257,673 258,003 1.51 1.00
hello-world no-host 152 83 3,744 350 343 24.63 2.30

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.2 9.0 8.5 4.97 2.03
bin-true no-host 3.0 1.4 17.6 8.1 7.5 5.83 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 20.4 1.01 1.01
configure.tcc no-host 19.3 19.3 19.1 19.4 19.4 0.99 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.3 30.0 1.00 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 17.6 6.0 5.9 6.38 2.19

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.0 3,774 3,774 0 695 1,851 1,228 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.1 154,739 13,221 2,878 9,745 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,582 1 66 15.0 27.4 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,742 3 64 21.3 30.3 2,703,489 29,746 65,871 109,676 1,320,578 1,273,235 27,391 41 131,742 1
configure.ocaml no-host 3,901 1 2 2.6 20.6 150,095 11,052 5,222 7,532 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 50 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,882 1 2 2.6 24.4 139,748 8,021 6,680 6,337 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 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.9 3,773 3,773 0 696 1,851 1,226 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.5 154,738 13,064 2,816 9,746 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 16,955 1 65 14.9 27.5 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,605 3 64 21.3 30.0 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,870 1 2 2.6 20.4 150,095 10,990 5,160 7,534 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,580 30,580 0 1,523 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 24.4 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.5 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 21 13 9 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 469 417 56 22.2 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
39 no-host abuild-print-help 21 16 5 8.5 osh-native-souffle
1 no-host bin-true 684 502 212 3.0 bash
9 no-host bin-true 561 416 153 1.4 dash
17 no-host bin-true 2,284 1,544 1,004 17.6 osh-cpython
25 no-host bin-true 810 605 219 8.1 osh-native
33 no-host bin-true 813 568 261 7.5 osh-native-souffle
2 no-host configure.cpython 15,722 9,369 6,745 27.5 bash
10 no-host configure.cpython 15,645 9,473 6,598 27.4 dash
18 no-host configure.cpython 29,297 17,734 13,462 27.4 osh-cpython
26 no-host configure.cpython 15,582 9,156 6,680 27.4 osh-native
34 no-host configure.cpython 16,955 9,138 6,695 27.5 osh-native-souffle
4 no-host configure.ocaml 3,918 1,625 1,333 20.4 bash
12 no-host configure.ocaml 3,849 1,624 1,244 20.4 dash
20 no-host configure.ocaml 4,755 2,269 1,701 20.6 osh-cpython
28 no-host configure.ocaml 3,901 1,714 1,224 20.6 osh-native
36 no-host configure.ocaml 3,870 1,720 1,186 20.4 osh-native-souffle
5 no-host configure.tcc 51 37 12 19.3 bash
13 no-host configure.tcc 45 29 16 19.3 dash
21 no-host configure.tcc 198 154 47 19.1 osh-cpython
29 no-host configure.tcc 50 26 24 19.4 osh-native
37 no-host configure.tcc 51 33 18 19.4 osh-native-souffle
3 no-host configure.util-linux 14,708 9,174 5,994 30.1 bash
11 no-host configure.util-linux 15,489 9,536 6,424 30.1 dash
19 no-host configure.util-linux 31,862 21,263 11,708 30.0 osh-cpython
27 no-host configure.util-linux 14,742 8,784 6,133 30.3 osh-native
35 no-host configure.util-linux 14,605 8,565 6,228 30.0 osh-native-souffle
6 no-host configure.yash 1,873 1,090 793 24.4 bash
14 no-host configure.yash 1,818 1,054 766 24.4 dash
22 no-host configure.yash 2,538 1,570 1,010 24.2 osh-cpython
30 no-host configure.yash 1,882 1,115 770 24.4 osh-native
38 no-host configure.yash 1,876 1,045 834 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 50 34 16 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,547 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,418 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,076 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 102,313 0 0 0 8 0 1,991 54 bash
9 no-host bin-true 66,374 0 0 0 8 0 1,978 54 dash
17 no-host bin-true 781,400 0 0 0 8 0 1,991 90 osh-cpython
25 no-host bin-true 124,822 0 0 0 16 0 1,990 60 osh-native
33 no-host bin-true 124,886 0 0 0 16 0 1,986 55 osh-native-souffle
2 no-host configure.cpython 2,224,120 0 0 0 32,928 0 14,441 1,058 bash
10 no-host configure.cpython 2,236,620 0 0 0 32,992 0 14,484 1,142 dash
18 no-host configure.cpython 6,251,409 0 0 0 27,512 0 13,282 1,325 osh-cpython
26 no-host configure.cpython 2,226,339 0 0 0 27,520 0 13,196 968 osh-native
34 no-host configure.cpython 2,203,450 0 0 0 27,520 0 13,266 958 osh-native-souffle
4 no-host configure.ocaml 411,163 0 0 0 5,120 0 1,945 215 bash
12 no-host configure.ocaml 390,593 0 0 0 5,112 0 1,874 146 dash
20 no-host configure.ocaml 646,883 0 0 0 5,112 0 1,853 189 osh-cpython
28 no-host configure.ocaml 412,775 0 0 0 5,120 0 1,930 166 osh-native
36 no-host configure.ocaml 412,546 0 0 0 5,120 0 1,929 179 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 50 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,753 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,101,711 1 0 0 42,400 0 18,563 1,101 bash
11 no-host configure.util-linux 2,258,909 3 0 0 42,592 0 17,395 1,181 dash
19 no-host configure.util-linux 5,365,400 6 0 0 39,136 0 16,981 1,210 osh-cpython
27 no-host configure.util-linux 1,997,166 2 0 0 39,128 0 16,927 1,071 osh-native
35 no-host configure.util-linux 1,990,189 4 0 0 39,136 0 17,009 979 osh-native-souffle
6 no-host configure.yash 256,675 0 0 0 4,120 0 870 83 bash
14 no-host configure.yash 244,543 0 0 0 3,720 0 869 91 dash
22 no-host configure.yash 387,822 1 0 0 3,728 0 852 103 osh-cpython
30 no-host configure.yash 257,673 0 0 0 3,736 0 850 78 osh-native
38 no-host configure.yash 258,003 0 0 0 3,736 0 851 66 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,744 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-402bad74
dash dash-0ebcf347
osh-cpython osh-b7275a48
osh-native osh-52a37f44
osh-native-souffle osh-99c581a8
host label host id
no-host no-host-556df3ee