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 20 9 455 22 21 23.26 1.14
bin-true no-host 675 545 2,262 830 819 3.35 1.23
configure.cpython no-host 15,146 15,213 28,785 15,350 15,488 1.90 1.01
configure.ocaml no-host 3,806 3,765 4,662 3,858 3,862 1.22 1.01
configure.tcc no-host 47 42 193 49 49 4.09 1.04
configure.util-linux no-host 14,192 14,951 31,401 14,490 14,490 2.21 1.02
configure.yash no-host 1,838 1,779 2,493 1,841 1,864 1.36 1.00
hello-world no-host 1 1 50 3 3 33.63 1.89

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,537 1,125 23,527 3,174 3,073 9.27 1.25
bin-true no-host 105,435 66,382 761,439 127,234 127,801 7.22 1.21
configure.cpython no-host 2,221,482 2,239,350 6,207,880 2,226,363 2,227,179 2.79 1.00
configure.ocaml no-host 410,681 390,806 646,587 413,181 412,805 1.57 1.01
configure.tcc no-host 6,544 5,486 23,552 7,018 6,969 3.60 1.07
configure.util-linux no-host 2,100,156 2,260,954 5,352,893 1,997,018 1,990,431 2.55 0.95
configure.yash no-host 256,587 244,095 388,564 257,990 257,723 1.51 1.01
hello-world no-host 152 83 3,743 349 346 24.62 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 21.9 9.0 8.5 4.91 2.03
bin-true no-host 3.0 1.6 17.6 8.3 7.6 5.83 2.74
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.1 30.0 30.0 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.6 1.4 17.6 6.2 5.9 6.70 2.35

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,746 3,746 0 694 1,840 1,212 2 0 50,000 0
bin-true no-host 830 1 2 2.6 8.3 154,711 13,191 2,848 9,744 78,309 66,658 3,008 3 50,000 0
configure.cpython no-host 15,350 1 61 15.0 27.4 1,772,693 49,825 28,558 86,397 908,061 778,235 22,694 60 50,000 0
configure.util-linux no-host 14,490 3 61 21.3 30.3 2,703,461 42,774 65,841 109,675 1,320,567 1,273,219 27,391 41 131,682 1
configure.ocaml no-host 3,858 1 2 2.6 20.4 150,067 11,022 5,192 7,531 71,594 70,942 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,552 30,552 0 1,520 14,764 14,268 226 0 50,000 0
configure.yash no-host 1,841 1 2 2.6 24.2 139,720 7,991 6,650 6,336 70,269 63,115 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,295 64,501 42,711 4,571 54,509 57,215 270 3 85,422 1
hello-world no-host 3 0 0 0.2 5.9 3,745 3,745 0 695 1,840 1,210 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.6 154,710 12,979 2,786 9,745 78,309 66,656 3,008 3 50,000 0
configure.cpython no-host 15,488 1 60 15.0 27.4 1,772,692 49,076 28,496 86,398 908,061 778,233 22,694 60 50,000 0
configure.util-linux no-host 14,490 3 60 21.3 30.0 2,703,461 42,712 65,799 109,677 1,320,567 1,273,217 27,391 41 131,598 1
configure.ocaml no-host 3,862 1 2 2.6 20.4 150,067 10,960 5,130 7,533 71,594 70,940 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,552 30,552 0 1,522 14,764 14,266 226 0 50,000 0
configure.yash no-host 1,864 1 2 2.6 24.2 139,720 7,929 6,588 6,338 70,269 63,113 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,294 64,439 42,649 4,572 54,509 57,213 270 3 85,298 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 20 17 3 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 455 411 47 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 13 9 8.5 osh-native-souffle
1 no-host bin-true 675 507 199 3.0 bash
9 no-host bin-true 545 415 139 1.6 dash
17 no-host bin-true 2,262 1,476 1,048 17.6 osh-cpython
25 no-host bin-true 830 594 250 8.3 osh-native
33 no-host bin-true 819 579 255 7.6 osh-native-souffle
2 no-host configure.cpython 15,146 9,060 6,489 27.4 bash
10 no-host configure.cpython 15,213 9,207 6,427 27.3 dash
18 no-host configure.cpython 28,785 17,513 13,130 27.4 osh-cpython
26 no-host configure.cpython 15,350 9,083 6,541 27.4 osh-native
34 no-host configure.cpython 15,488 9,010 6,598 27.4 osh-native-souffle
4 no-host configure.ocaml 3,806 1,664 1,183 20.6 bash
12 no-host configure.ocaml 3,765 1,684 1,101 20.6 dash
20 no-host configure.ocaml 4,662 2,256 1,617 20.6 osh-cpython
28 no-host configure.ocaml 3,858 1,635 1,263 20.4 osh-native
36 no-host configure.ocaml 3,862 1,590 1,311 20.4 osh-native-souffle
5 no-host configure.tcc 47 19 29 19.4 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 193 144 52 19.4 osh-cpython
29 no-host configure.tcc 49 40 10 19.3 osh-native
37 no-host configure.tcc 49 32 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,192 8,944 5,726 30.1 bash
11 no-host configure.util-linux 14,951 9,125 6,315 30.0 dash
19 no-host configure.util-linux 31,401 21,037 11,458 30.0 osh-cpython
27 no-host configure.util-linux 14,490 8,803 5,880 30.3 osh-native
35 no-host configure.util-linux 14,490 8,554 6,134 30.0 osh-native-souffle
6 no-host configure.yash 1,838 1,098 749 24.2 bash
14 no-host configure.yash 1,779 1,034 749 24.2 dash
22 no-host configure.yash 2,493 1,569 969 24.2 osh-cpython
30 no-host configure.yash 1,841 1,102 744 24.2 osh-native
38 no-host configure.yash 1,864 1,091 777 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 41 8 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,537 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,125 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,527 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 105,435 0 0 0 8 0 1,989 53 bash
9 no-host bin-true 66,382 0 0 0 8 0 1,986 34 dash
17 no-host bin-true 761,439 0 0 0 8 0 1,992 273 osh-cpython
25 no-host bin-true 127,234 0 0 0 16 0 1,990 70 osh-native
33 no-host bin-true 127,801 0 0 0 16 0 1,993 52 osh-native-souffle
2 no-host configure.cpython 2,221,482 0 0 0 32,928 0 14,431 1,344 bash
10 no-host configure.cpython 2,239,350 0 0 0 32,992 0 14,653 1,005 dash
18 no-host configure.cpython 6,207,880 0 0 0 27,512 0 13,263 1,253 osh-cpython
26 no-host configure.cpython 2,226,363 0 0 0 27,520 0 13,237 992 osh-native
34 no-host configure.cpython 2,227,179 0 0 0 27,520 0 13,228 1,093 osh-native-souffle
4 no-host configure.ocaml 410,681 0 0 0 5,120 0 1,948 154 bash
12 no-host configure.ocaml 390,806 0 0 0 5,112 0 1,879 165 dash
20 no-host configure.ocaml 646,587 0 0 0 5,112 0 1,856 174 osh-cpython
28 no-host configure.ocaml 413,181 0 0 0 5,120 0 1,929 154 osh-native
36 no-host configure.ocaml 412,805 0 0 0 5,120 0 1,934 153 osh-native-souffle
5 no-host configure.tcc 6,544 0 0 0 104 0 47 4 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 46 7 dash
21 no-host configure.tcc 23,552 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,969 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,156 1 0 0 42,400 0 18,529 1,006 bash
11 no-host configure.util-linux 2,260,954 1 0 0 42,592 0 17,384 1,172 dash
19 no-host configure.util-linux 5,352,893 12 0 0 39,112 0 16,923 1,196 osh-cpython
27 no-host configure.util-linux 1,997,018 0 0 0 39,120 0 16,985 983 osh-native
35 no-host configure.util-linux 1,990,431 0 0 0 39,136 0 16,996 1,021 osh-native-souffle
6 no-host configure.yash 256,587 0 0 0 4,120 0 867 82 bash
14 no-host configure.yash 244,095 0 0 0 3,720 0 865 79 dash
22 no-host configure.yash 388,564 1 0 0 3,728 0 855 115 osh-cpython
30 no-host configure.yash 257,990 0 0 0 3,736 0 849 73 osh-native
38 no-host configure.yash 257,723 0 0 0 3,736 0 850 100 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,743 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-bf741a06
dash dash-0ebcf347
osh-cpython osh-74132663
osh-native osh-a4138ee4
osh-native-souffle osh-8ddfacc3
host label host id
no-host no-host-556df3ee