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 484 22 22 25.72 1.18
bin-true no-host 638 523 2,320 767 775 3.63 1.20
configure.cpython no-host 14,555 14,560 28,434 14,697 14,749 1.95 1.01
configure.ocaml no-host 3,721 3,654 4,617 3,745 3,754 1.24 1.01
configure.tcc no-host 45 40 205 47 47 4.53 1.04
configure.util-linux no-host 13,453 14,314 31,231 13,889 13,746 2.32 1.03
configure.yash no-host 1,820 1,743 2,449 1,783 1,784 1.35 0.98
hello-world no-host 1 1 57 3 3 41.43 2.03

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,538 1,108 24,416 3,155 3,078 9.62 1.24
bin-true no-host 107,347 66,446 793,131 124,238 127,135 7.39 1.16
configure.cpython no-host 2,000,968 2,021,815 6,118,730 2,019,123 2,000,967 3.06 1.01
configure.ocaml no-host 372,850 354,193 616,466 376,917 376,314 1.65 1.01
configure.tcc no-host 6,072 5,027 23,894 6,498 6,450 3.94 1.07
configure.util-linux no-host 1,908,356 2,068,027 5,319,522 1,827,780 1,819,470 2.79 0.96
configure.yash no-host 233,689 222,397 368,208 235,703 235,179 1.58 1.01
hello-world no-host 145 75 3,984 347 341 27.48 2.39

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.3 3.5 23.0 9.0 8.5 5.32 2.09
bin-true no-host 3.0 1.4 18.4 8.3 7.7 6.11 2.74
configure.cpython no-host 29.2 29.2 29.3 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.4 19.7 19.7 19.7 19.7 1.01 1.01
configure.util-linux no-host 30.2 30.3 30.2 30.5 30.2 1.00 1.01
configure.yash no-host 26.3 26.5 26.4 26.3 26.3 1.01 1.00
hello-world no-host 2.6 1.4 18.4 6.4 5.9 7.03 2.45

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,809 3,809 0 702 1,870 1,237 2 0 50,000 0
bin-true no-host 767 1 2 2.6 8.3 156,776 15,415 2,902 8,754 77,337 70,685 3,008 3 50,000 0
configure.cpython no-host 14,697 1 68 15.2 29.1 1,785,026 49,178 25,897 91,515 886,574 806,937 25,736 62 50,000 0
configure.util-linux no-host 13,889 3 64 21.6 30.5 2,709,208 56,212 66,557 114,377 1,295,026 1,299,805 32,241 42 133,114 1
configure.ocaml no-host 3,745 1 2 2.6 22.5 149,878 12,466 6,509 7,749 70,874 71,255 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,579 30,579 0 1,544 14,636 14,399 271 0 50,000 0
configure.yash no-host 1,783 1 2 2.6 26.3 139,885 8,046 6,701 6,399 68,339 65,147 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,339 64,421 42,626 4,546 54,461 57,332 277 3 85,252 1
hello-world no-host 3 0 0 0.3 5.9 3,808 3,808 0 703 1,870 1,235 2 0 50,000 0
bin-true no-host 775 1 2 2.6 7.7 156,775 15,410 2,897 8,755 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 14,749 1 71 15.2 29.2 1,785,025 49,165 25,884 91,516 886,574 806,935 25,736 62 50,000 0
configure.util-linux no-host 13,746 3 66 21.6 30.2 2,709,208 56,187 66,550 114,379 1,295,026 1,299,803 32,241 42 133,100 1
configure.ocaml no-host 3,754 1 2 2.6 22.6 149,878 12,460 6,503 7,751 70,874 71,253 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,579 30,579 0 1,546 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,784 1 2 2.6 26.3 139,885 8,035 6,690 6,401 68,339 65,145 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,338 64,416 42,621 4,547 54,461 57,330 277 3 85,242 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 10 4.3 bash
15 no-host abuild-print-help 9 3 7 3.5 dash
23 no-host abuild-print-help 484 425 63 23.0 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 22 11 12 8.5 osh-native-souffle
1 no-host bin-true 638 310 363 3.0 bash
9 no-host bin-true 523 285 249 1.4 dash
17 no-host bin-true 2,320 814 1,769 18.4 osh-cpython
25 no-host bin-true 767 301 483 8.3 osh-native
33 no-host bin-true 775 311 481 7.7 osh-native-souffle
2 no-host configure.cpython 14,555 6,608 8,350 29.2 bash
10 no-host configure.cpython 14,560 6,655 8,333 29.2 dash
18 no-host configure.cpython 28,434 14,522 15,785 29.3 osh-cpython
26 no-host configure.cpython 14,697 6,519 8,473 29.1 osh-native
34 no-host configure.cpython 14,749 6,577 8,336 29.2 osh-native-souffle
4 no-host configure.ocaml 3,721 1,291 1,470 22.6 bash
12 no-host configure.ocaml 3,654 1,274 1,402 22.6 dash
20 no-host configure.ocaml 4,617 1,891 1,939 22.6 osh-cpython
28 no-host configure.ocaml 3,745 1,344 1,442 22.5 osh-native
36 no-host configure.ocaml 3,754 1,276 1,517 22.6 osh-native-souffle
5 no-host configure.tcc 45 23 23 19.4 bash
13 no-host configure.tcc 40 17 24 19.7 dash
21 no-host configure.tcc 205 149 60 19.7 osh-cpython
29 no-host configure.tcc 47 27 21 19.7 osh-native
37 no-host configure.tcc 47 22 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,453 5,748 8,193 30.2 bash
11 no-host configure.util-linux 14,314 5,917 8,907 30.3 dash
19 no-host configure.util-linux 31,231 18,011 14,281 30.2 osh-cpython
27 no-host configure.util-linux 13,889 5,696 8,401 30.5 osh-native
35 no-host configure.util-linux 13,746 5,609 8,363 30.2 osh-native-souffle
6 no-host configure.yash 1,820 903 909 26.3 bash
14 no-host configure.yash 1,743 887 860 26.5 dash
22 no-host configure.yash 2,449 1,359 1,135 26.4 osh-cpython
30 no-host configure.yash 1,783 914 873 26.3 osh-native
38 no-host configure.yash 1,784 907 882 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.6 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 35 22 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 1 2 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,538 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,416 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,155 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,078 0 0 0 16 0 39 17 osh-native-souffle
1 no-host bin-true 107,347 0 0 0 8 0 1,987 98 bash
9 no-host bin-true 66,446 0 0 0 8 0 1,988 86 dash
17 no-host bin-true 793,131 0 0 0 8 0 1,991 423 osh-cpython
25 no-host bin-true 124,238 0 0 0 16 0 1,987 152 osh-native
33 no-host bin-true 127,135 0 0 0 16 0 1,986 182 osh-native-souffle
2 no-host configure.cpython 2,000,968 0 0 0 32,928 0 14,231 1,230 bash
10 no-host configure.cpython 2,021,815 0 0 0 32,992 0 14,320 1,088 dash
18 no-host configure.cpython 6,118,730 0 0 0 27,512 0 13,029 1,164 osh-cpython
26 no-host configure.cpython 2,019,123 0 0 0 27,520 0 13,039 1,187 osh-native
34 no-host configure.cpython 2,000,967 0 0 0 27,520 0 13,016 1,017 osh-native-souffle
4 no-host configure.ocaml 372,850 0 0 0 5,120 0 1,952 197 bash
12 no-host configure.ocaml 354,193 0 0 0 5,112 0 1,937 183 dash
20 no-host configure.ocaml 616,466 0 0 0 5,112 0 1,847 187 osh-cpython
28 no-host configure.ocaml 376,917 0 0 0 5,120 0 1,925 194 osh-native
36 no-host configure.ocaml 376,314 0 0 0 5,120 0 1,934 185 osh-native-souffle
5 no-host configure.tcc 6,072 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,027 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,894 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,498 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,450 0 0 0 104 0 47 8 osh-native-souffle
3 no-host configure.util-linux 1,908,356 0 0 0 42,400 0 18,501 1,200 bash
11 no-host configure.util-linux 2,068,027 0 0 0 42,584 0 17,356 1,492 dash
19 no-host configure.util-linux 5,319,522 7 0 0 39,112 0 16,984 1,356 osh-cpython
27 no-host configure.util-linux 1,827,780 2 0 0 39,120 0 17,035 1,161 osh-native
35 no-host configure.util-linux 1,819,470 1 0 0 39,128 0 17,064 1,287 osh-native-souffle
6 no-host configure.yash 233,689 0 0 0 4,120 0 884 96 bash
14 no-host configure.yash 222,397 0 0 0 3,720 0 872 83 dash
22 no-host configure.yash 368,208 0 0 0 3,728 0 853 96 osh-cpython
30 no-host configure.yash 235,703 0 0 0 3,736 0 848 115 osh-native
38 no-host configure.yash 235,179 0 0 0 3,736 0 851 94 osh-native-souffle
0 no-host hello-world 145 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,984 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e980156c
dash dash-0ebcf347
osh-cpython osh-ebff624a
osh-native osh-52b6d3b4
osh-native-souffle osh-ed16a902
host label host id
no-host no-host-20fc69f9