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 25 13 547 27 27 21.65 1.07
bin-true no-host 807 652 2,950 995 984 3.66 1.23
configure.cpython no-host 18,751 19,024 36,922 19,109 19,216 1.97 1.02
configure.ocaml no-host 4,516 4,385 5,538 4,531 4,524 1.23 1.00
configure.tcc no-host 59 51 239 60 61 4.02 1.01
configure.util-linux no-host 17,602 18,506 39,685 18,208 17,837 2.25 1.03
configure.yash no-host 2,262 2,180 3,092 2,277 2,272 1.37 1.01
hello-world no-host 2 1 63 4 4 35.41 2.08

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,574 1,132 23,329 3,243 3,152 9.06 1.26
bin-true no-host 108,264 65,371 771,935 128,080 124,873 7.13 1.18
configure.cpython no-host 2,222,752 2,239,078 6,222,926 2,225,999 2,212,657 2.80 1.00
configure.ocaml no-host 410,529 390,413 646,752 413,744 412,243 1.58 1.01
configure.tcc no-host 6,563 5,468 23,626 7,002 6,952 3.60 1.07
configure.util-linux no-host 2,100,472 2,260,298 5,331,314 1,997,826 1,992,136 2.54 0.95
configure.yash no-host 256,406 243,994 387,595 258,577 258,373 1.51 1.01
hello-world no-host 148 84 3,736 351 346 25.24 2.37

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 21.9 9.0 8.7 4.91 2.03
bin-true no-host 2.8 1.4 17.7 8.3 7.6 6.43 3.00
configure.cpython no-host 27.4 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.6 1.4 17.3 6.3 6.0 6.60 2.40

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 4 0 0 0.2 6.3 3,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 995 1 2 2.6 8.3 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 19,109 2 88 15.0 27.4 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 18,208 3 83 21.3 30.1 2,703,599 29,745 65,870 109,705 1,320,615 1,273,279 27,394 41 131,740 1
configure.ocaml no-host 4,531 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 60 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 2,277 1 3 2.6 24.4 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 27 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 4 0 0 0.2 6.0 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 984 1 2 2.6 7.6 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 19,216 2 87 14.9 27.4 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 17,837 4 83 21.3 30.0 2,703,490 42,741 65,808 109,677 1,320,579 1,273,234 27,391 41 131,616 1
configure.ocaml no-host 4,524 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 61 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 2,272 1 3 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 27 1 2 2.8 8.7 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 25 16 10 4.5 bash
15 no-host abuild-print-help 13 10 3 3.4 dash
23 no-host abuild-print-help 547 481 70 21.9 osh-cpython
31 no-host abuild-print-help 27 22 6 9.0 osh-native
39 no-host abuild-print-help 27 24 4 8.7 osh-native-souffle
1 no-host bin-true 807 569 277 2.8 bash
9 no-host bin-true 652 487 177 1.4 dash
17 no-host bin-true 2,950 1,800 1,466 17.7 osh-cpython
25 no-host bin-true 995 672 342 8.3 osh-native
33 no-host bin-true 984 675 327 7.6 osh-native-souffle
2 no-host configure.cpython 18,751 10,835 8,427 27.4 bash
10 no-host configure.cpython 19,024 11,143 8,422 27.4 dash
18 no-host configure.cpython 36,922 21,894 17,458 27.3 osh-cpython
26 no-host configure.cpython 19,109 11,093 8,373 27.4 osh-native
34 no-host configure.cpython 19,216 11,042 8,364 27.4 osh-native-souffle
4 no-host configure.ocaml 4,516 1,960 1,608 20.6 bash
12 no-host configure.ocaml 4,385 1,933 1,476 20.6 dash
20 no-host configure.ocaml 5,538 2,648 2,161 20.6 osh-cpython
28 no-host configure.ocaml 4,531 2,027 1,559 20.6 osh-native
36 no-host configure.ocaml 4,524 2,049 1,521 20.6 osh-native-souffle
5 no-host configure.tcc 59 28 32 19.3 bash
13 no-host configure.tcc 51 37 14 19.4 dash
21 no-host configure.tcc 239 168 75 19.3 osh-cpython
29 no-host configure.tcc 60 41 20 19.3 osh-native
37 no-host configure.tcc 61 45 17 19.3 osh-native-souffle
3 no-host configure.util-linux 17,602 10,717 7,465 30.1 bash
11 no-host configure.util-linux 18,506 11,000 8,126 30.1 dash
19 no-host configure.util-linux 39,685 25,907 15,141 30.3 osh-cpython
27 no-host configure.util-linux 18,208 10,466 7,988 30.1 osh-native
35 no-host configure.util-linux 17,837 10,362 7,719 30.0 osh-native-souffle
6 no-host configure.yash 2,262 1,295 978 24.2 bash
14 no-host configure.yash 2,180 1,281 902 24.2 dash
22 no-host configure.yash 3,092 1,796 1,348 24.2 osh-cpython
30 no-host configure.yash 2,277 1,230 1,051 24.4 osh-native
38 no-host configure.yash 2,272 1,302 973 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 63 38 25 17.3 osh-cpython
24 no-host hello-world 4 4 0 6.3 osh-native
32 no-host hello-world 4 0 4 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,574 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,132 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,329 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,243 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,152 0 0 0 16 0 38 0 osh-native-souffle
1 no-host bin-true 108,264 0 0 0 8 0 1,990 58 bash
9 no-host bin-true 65,371 0 0 0 8 0 1,983 46 dash
17 no-host bin-true 771,935 0 0 0 8 0 1,997 448 osh-cpython
25 no-host bin-true 128,080 0 0 0 16 0 1,992 55 osh-native
33 no-host bin-true 124,873 0 0 0 16 0 1,990 148 osh-native-souffle
2 no-host configure.cpython 2,222,752 0 0 0 32,928 0 14,457 1,182 bash
10 no-host configure.cpython 2,239,078 0 0 0 32,992 0 14,667 1,296 dash
18 no-host configure.cpython 6,222,926 2 0 0 27,536 0 13,211 1,522 osh-cpython
26 no-host configure.cpython 2,225,999 0 0 0 27,520 0 13,461 1,113 osh-native
34 no-host configure.cpython 2,212,657 0 0 0 27,520 0 13,382 1,261 osh-native-souffle
4 no-host configure.ocaml 410,529 0 0 0 5,120 0 1,946 181 bash
12 no-host configure.ocaml 390,413 0 0 0 5,112 0 1,926 164 dash
20 no-host configure.ocaml 646,752 0 0 0 5,112 0 1,857 210 osh-cpython
28 no-host configure.ocaml 413,744 0 0 0 5,120 0 1,933 181 osh-native
36 no-host configure.ocaml 412,243 0 0 0 5,120 0 1,926 160 osh-native-souffle
5 no-host configure.tcc 6,563 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,626 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,002 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,952 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,100,472 1 0 0 42,408 0 18,614 1,172 bash
11 no-host configure.util-linux 2,260,298 7 0 0 42,592 0 17,600 1,210 dash
19 no-host configure.util-linux 5,331,314 13 0 0 39,144 0 16,959 1,492 osh-cpython
27 no-host configure.util-linux 1,997,826 2 0 0 39,144 0 16,910 1,108 osh-native
35 no-host configure.util-linux 1,992,136 1 0 0 39,136 0 16,941 1,146 osh-native-souffle
6 no-host configure.yash 256,406 0 0 0 4,120 0 867 96 bash
14 no-host configure.yash 243,994 0 0 0 3,720 0 858 89 dash
22 no-host configure.yash 387,595 0 0 0 3,728 0 846 112 osh-cpython
30 no-host configure.yash 258,577 0 0 0 3,736 0 842 103 osh-native
38 no-host configure.yash 258,373 0 0 0 3,736 0 844 97 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,736 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 346 0 0 0 16 0 0 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b7e259be
dash dash-0ebcf347
osh-cpython osh-0462a457
osh-native osh-71b3fec9
osh-native-souffle osh-fafd08cc
host label host id
no-host no-host-556df3ee