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 483 22 20 26.02 1.17
bin-true no-host 655 528 2,346 796 780 3.58 1.22
configure.cpython no-host 14,666 14,638 28,634 14,795 14,881 1.95 1.01
configure.ocaml no-host 3,775 3,674 4,612 3,744 3,742 1.22 0.99
configure.tcc no-host 46 40 205 47 47 4.44 1.02
configure.util-linux no-host 13,632 14,461 31,289 13,911 13,827 2.30 1.02
configure.yash no-host 1,795 1,734 2,445 1,777 1,785 1.36 0.99
hello-world no-host 1 1 57 3 3 43.42 2.38

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,566 1,127 25,389 3,206 3,086 9.89 1.25
bin-true no-host 106,372 65,397 802,656 128,263 127,252 7.55 1.21
configure.cpython no-host 1,991,848 2,019,035 6,101,346 2,014,852 1,996,993 3.06 1.01
configure.ocaml no-host 373,240 353,916 615,077 376,592 375,920 1.65 1.01
configure.tcc no-host 6,067 5,006 24,028 6,516 6,455 3.96 1.07
configure.util-linux no-host 1,912,717 2,073,558 5,291,631 1,817,900 1,810,114 2.77 0.95
configure.yash no-host 233,578 222,149 368,970 235,310 235,054 1.58 1.01
hello-world no-host 147 77 3,976 346 340 27.05 2.35

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.7 9.0 8.8 5.10 2.03
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.10 2.65
configure.cpython no-host 29.2 29.2 29.2 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.5 22.5 1.01 1.00
configure.tcc no-host 19.7 19.6 19.8 19.6 19.7 1.01 0.99
configure.util-linux no-host 30.5 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.2 26.3 26.4 26.2 1.00 1.00
hello-world no-host 2.8 1.4 18.4 6.4 6.0 6.69 2.33

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.4 3,811 3,811 0 701 1,872 1,238 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.0 156,778 15,417 2,904 8,753 77,339 70,686 3,008 3 50,000 0
configure.cpython no-host 14,795 1 66 15.5 29.3 1,785,019 30,562 28,529 91,506 886,576 806,937 25,736 61 50,000 0
configure.util-linux no-host 13,911 3 62 21.6 30.3 2,709,220 53,764 65,728 114,373 1,295,039 1,299,808 32,241 41 131,456 1
configure.ocaml no-host 3,744 1 2 2.6 22.5 149,865 11,181 5,224 7,734 70,876 71,255 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,581 30,581 0 1,543 14,638 14,400 271 0 50,000 0
configure.yash no-host 1,777 1 2 2.6 26.4 139,887 8,048 6,703 6,398 68,341 65,148 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,343 64,422 42,630 4,545 54,464 57,334 277 3 85,260 1
hello-world no-host 3 0 0 0.3 6.0 3,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 780 1 2 2.6 7.6 156,777 15,412 2,899 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 14,881 1 67 15.5 29.3 1,785,018 30,549 28,524 91,507 886,576 806,935 25,736 61 50,000 0
configure.util-linux no-host 13,827 3 62 21.6 30.3 2,709,220 53,741 65,723 114,375 1,295,039 1,299,806 32,241 41 131,446 1
configure.ocaml no-host 3,742 1 2 2.6 22.5 149,865 11,176 5,219 7,736 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,581 30,581 0 1,545 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,785 1 2 2.6 26.2 139,887 8,037 6,692 6,400 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,342 64,417 42,625 4,546 54,464 57,332 277 3 85,250 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 10 9 4.5 bash
15 no-host abuild-print-help 9 2 7 3.4 dash
23 no-host abuild-print-help 483 424 63 22.7 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 20 8 13 8.8 osh-native-souffle
1 no-host bin-true 655 295 391 3.0 bash
9 no-host bin-true 528 274 265 1.4 dash
17 no-host bin-true 2,346 794 1,809 18.4 osh-cpython
25 no-host bin-true 796 300 511 8.0 osh-native
33 no-host bin-true 780 290 509 7.6 osh-native-souffle
2 no-host configure.cpython 14,666 6,731 8,351 29.2 bash
10 no-host configure.cpython 14,638 6,690 8,381 29.2 dash
18 no-host configure.cpython 28,634 14,081 16,435 29.2 osh-cpython
26 no-host configure.cpython 14,795 6,510 8,577 29.3 osh-native
34 no-host configure.cpython 14,881 6,549 8,620 29.3 osh-native-souffle
4 no-host configure.ocaml 3,775 1,314 1,478 22.5 bash
12 no-host configure.ocaml 3,674 1,239 1,458 22.6 dash
20 no-host configure.ocaml 4,612 1,918 1,911 22.6 osh-cpython
28 no-host configure.ocaml 3,744 1,297 1,485 22.5 osh-native
36 no-host configure.ocaml 3,742 1,272 1,510 22.5 osh-native-souffle
5 no-host configure.tcc 46 23 24 19.7 bash
13 no-host configure.tcc 40 16 25 19.6 dash
21 no-host configure.tcc 205 146 63 19.8 osh-cpython
29 no-host configure.tcc 47 26 22 19.6 osh-native
37 no-host configure.tcc 47 23 24 19.7 osh-native-souffle
3 no-host configure.util-linux 13,632 5,866 8,264 30.5 bash
11 no-host configure.util-linux 14,461 5,909 9,076 30.3 dash
19 no-host configure.util-linux 31,289 17,723 14,639 30.3 osh-cpython
27 no-host configure.util-linux 13,911 5,579 8,555 30.3 osh-native
35 no-host configure.util-linux 13,827 5,562 8,492 30.3 osh-native-souffle
6 no-host configure.yash 1,795 928 877 26.4 bash
14 no-host configure.yash 1,734 879 860 26.2 dash
22 no-host configure.yash 2,445 1,345 1,144 26.3 osh-cpython
30 no-host configure.yash 1,777 904 878 26.4 osh-native
38 no-host configure.yash 1,785 881 909 26.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 36 21 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.4 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,566 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,389 0 0 0 8 0 44 9 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,086 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,372 0 0 0 8 0 1,979 134 bash
9 no-host bin-true 65,397 0 0 0 8 0 1,973 135 dash
17 no-host bin-true 802,656 0 0 0 8 0 1,982 284 osh-cpython
25 no-host bin-true 128,263 0 0 0 16 0 1,973 245 osh-native
33 no-host bin-true 127,252 0 0 0 16 0 1,982 83 osh-native-souffle
2 no-host configure.cpython 1,991,848 0 0 0 32,928 0 14,281 1,386 bash
10 no-host configure.cpython 2,019,035 1 0 0 32,992 0 14,372 1,165 dash
18 no-host configure.cpython 6,101,346 1 0 0 27,512 0 13,059 1,232 osh-cpython
26 no-host configure.cpython 2,014,852 0 0 0 27,520 0 13,091 1,098 osh-native
34 no-host configure.cpython 1,996,993 0 0 0 27,520 0 13,067 1,248 osh-native-souffle
4 no-host configure.ocaml 373,240 0 0 0 5,120 0 1,952 197 bash
12 no-host configure.ocaml 353,916 0 0 0 5,112 0 1,938 184 dash
20 no-host configure.ocaml 615,077 1 0 0 5,112 0 1,853 198 osh-cpython
28 no-host configure.ocaml 376,592 0 0 0 5,120 0 1,921 202 osh-native
36 no-host configure.ocaml 375,920 0 0 0 5,120 0 1,909 201 osh-native-souffle
5 no-host configure.tcc 6,067 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,006 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,028 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,516 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,455 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,912,717 1 0 0 42,400 0 18,362 1,291 bash
11 no-host configure.util-linux 2,073,558 0 0 0 42,584 0 17,199 1,350 dash
19 no-host configure.util-linux 5,291,631 5 0 0 39,136 0 16,979 1,394 osh-cpython
27 no-host configure.util-linux 1,817,900 0 0 0 39,120 0 16,973 1,302 osh-native
35 no-host configure.util-linux 1,810,114 1 0 0 39,128 0 16,925 1,106 osh-native-souffle
6 no-host configure.yash 233,578 0 0 0 4,120 0 870 89 bash
14 no-host configure.yash 222,149 0 0 0 3,720 0 866 83 dash
22 no-host configure.yash 368,970 0 0 0 3,728 0 855 121 osh-cpython
30 no-host configure.yash 235,310 0 0 0 3,736 0 846 104 osh-native
38 no-host configure.yash 235,054 0 0 0 3,736 0 846 84 osh-native-souffle
0 no-host hello-world 147 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,976 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 1 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-f4865eec
dash dash-0ebcf347
osh-cpython osh-1b3bb315
osh-native osh-76fa1263
osh-native-souffle osh-5f83a65f
host label host id
no-host no-host-e4839999