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 468 22 21 24.47 1.15
bin-true no-host 675 542 2,294 814 815 3.40 1.20
configure.cpython no-host 15,170 15,179 29,186 15,384 15,525 1.92 1.01
configure.ocaml no-host 3,865 3,755 4,702 3,942 3,846 1.22 1.02
configure.tcc no-host 48 42 204 49 48 4.27 1.02
configure.util-linux no-host 14,151 15,010 31,881 14,443 14,421 2.25 1.02
configure.yash no-host 1,838 1,782 2,482 1,844 1,837 1.35 1.00
hello-world no-host 2 1 56 3 3 35.32 1.78

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,099 23,830 3,210 3,051 9.26 1.25
bin-true no-host 105,413 66,403 770,583 125,219 125,264 7.31 1.19
configure.cpython no-host 2,226,649 2,242,002 6,246,727 2,218,716 2,214,286 2.81 1.00
configure.ocaml no-host 410,636 391,240 648,097 411,758 412,689 1.58 1.00
configure.tcc no-host 6,589 5,476 24,110 6,954 6,897 3.66 1.06
configure.util-linux no-host 2,105,095 2,263,477 5,400,881 1,988,447 1,987,075 2.57 0.94
configure.yash no-host 256,253 244,635 389,203 257,362 258,337 1.52 1.00
hello-world no-host 149 80 3,937 344 339 26.42 2.31

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.4 9.0 8.7 5.03 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.09 2.70
configure.cpython no-host 27.3 27.3 27.5 27.4 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 20.6 0.99 0.99
configure.tcc no-host 19.3 19.4 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.4 30.3 30.0 30.1 30.0 0.99 0.99
configure.yash no-host 24.5 24.4 24.2 24.4 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.1 6.2 5.8 6.58 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 814 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,384 1 62 14.9 27.4 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,443 3 61 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,942 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 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,844 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 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 815 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,525 1 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,421 3 60 21.2 30.0 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,846 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,837 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.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 19 17 3 4.5 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 468 423 49 22.4 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
39 no-host abuild-print-help 21 17 5 8.7 osh-native-souffle
1 no-host bin-true 675 502 206 3.0 bash
9 no-host bin-true 542 411 139 1.4 dash
17 no-host bin-true 2,294 1,517 1,035 18.4 osh-cpython
25 no-host bin-true 814 585 242 8.1 osh-native
33 no-host bin-true 815 596 234 7.7 osh-native-souffle
2 no-host configure.cpython 15,170 9,039 6,536 27.3 bash
10 no-host configure.cpython 15,179 9,156 6,448 27.3 dash
18 no-host configure.cpython 29,186 17,816 13,264 27.5 osh-cpython
26 no-host configure.cpython 15,384 9,142 6,514 27.4 osh-native
34 no-host configure.cpython 15,525 9,184 6,470 27.5 osh-native-souffle
4 no-host configure.ocaml 3,865 1,620 1,273 20.6 bash
12 no-host configure.ocaml 3,755 1,606 1,168 20.6 dash
20 no-host configure.ocaml 4,702 2,270 1,645 20.4 osh-cpython
28 no-host configure.ocaml 3,942 1,622 1,266 20.4 osh-native
36 no-host configure.ocaml 3,846 1,647 1,237 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.3 bash
13 no-host configure.tcc 42 32 10 19.4 dash
21 no-host configure.tcc 204 141 67 19.4 osh-cpython
29 no-host configure.tcc 49 35 14 19.3 osh-native
37 no-host configure.tcc 48 26 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,151 8,920 5,710 30.4 bash
11 no-host configure.util-linux 15,010 9,080 6,424 30.3 dash
19 no-host configure.util-linux 31,881 21,206 11,796 30.0 osh-cpython
27 no-host configure.util-linux 14,443 8,659 5,977 30.1 osh-native
35 no-host configure.util-linux 14,421 8,687 5,931 30.0 osh-native-souffle
6 no-host configure.yash 1,838 1,072 774 24.5 bash
14 no-host configure.yash 1,782 1,067 718 24.4 dash
22 no-host configure.yash 2,482 1,419 1,106 24.2 osh-cpython
30 no-host configure.yash 1,844 1,093 755 24.4 osh-native
38 no-host configure.yash 1,837 1,037 804 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 43 13 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.2 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 40 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,830 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,210 0 0 0 16 0 38 2 osh-native
39 no-host abuild-print-help 3,051 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,413 0 0 0 8 0 1,994 54 bash
9 no-host bin-true 66,403 0 0 0 8 0 1,987 32 dash
17 no-host bin-true 770,583 0 0 0 8 0 2,000 196 osh-cpython
25 no-host bin-true 125,219 0 0 0 16 0 1,989 89 osh-native
33 no-host bin-true 125,264 0 0 0 16 0 1,991 82 osh-native-souffle
2 no-host configure.cpython 2,226,649 0 0 0 32,928 0 14,537 1,085 bash
10 no-host configure.cpython 2,242,002 0 0 0 32,992 0 14,642 1,069 dash
18 no-host configure.cpython 6,246,727 1 0 0 27,512 0 13,274 1,279 osh-cpython
26 no-host configure.cpython 2,218,716 0 0 0 27,520 0 13,299 997 osh-native
34 no-host configure.cpython 2,214,286 0 0 0 27,520 0 13,225 1,186 osh-native-souffle
4 no-host configure.ocaml 410,636 0 0 0 5,120 0 1,955 189 bash
12 no-host configure.ocaml 391,240 0 0 0 5,112 0 1,923 167 dash
20 no-host configure.ocaml 648,097 1 0 0 5,112 0 1,856 182 osh-cpython
28 no-host configure.ocaml 411,758 0 0 0 5,120 0 1,920 157 osh-native
36 no-host configure.ocaml 412,689 0 0 0 5,120 0 1,929 148 osh-native-souffle
5 no-host configure.tcc 6,589 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,110 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,954 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,897 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,105,095 2 0 0 42,400 0 18,457 1,026 bash
11 no-host configure.util-linux 2,263,477 4 0 0 42,592 0 17,430 1,096 dash
19 no-host configure.util-linux 5,400,881 17 0 0 39,136 0 17,011 1,434 osh-cpython
27 no-host configure.util-linux 1,988,447 0 0 0 39,120 0 17,014 1,026 osh-native
35 no-host configure.util-linux 1,987,075 0 0 0 39,136 0 16,973 958 osh-native-souffle
6 no-host configure.yash 256,253 0 0 0 4,120 0 870 102 bash
14 no-host configure.yash 244,635 0 0 0 3,720 0 863 79 dash
22 no-host configure.yash 389,203 0 0 0 3,728 0 850 104 osh-cpython
30 no-host configure.yash 257,362 0 0 0 3,736 0 849 84 osh-native
38 no-host configure.yash 258,337 0 0 0 3,736 0 849 73 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 1 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,937 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8ce98969
dash dash-0ebcf347
osh-cpython osh-b909a8da
osh-native osh-94b8d8ec
osh-native-souffle osh-8357d729
host label host id
no-host no-host-556df3ee