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 10 465 22 21 23.74 1.12
bin-true no-host 680 552 2,332 805 815 3.43 1.18
configure.cpython no-host 15,333 15,401 28,441 15,060 15,107 1.85 0.98
configure.ocaml no-host 3,861 3,765 4,672 3,796 3,788 1.21 0.98
configure.tcc no-host 49 41 202 49 48 4.14 0.99
configure.util-linux no-host 14,322 15,156 31,342 14,423 14,185 2.19 1.01
configure.yash no-host 1,851 1,757 2,447 1,812 1,807 1.32 0.98
hello-world no-host 2 1 56 3 3 36.08 1.85

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,535 1,117 24,021 3,177 3,092 9.48 1.25
bin-true no-host 104,405 66,449 787,931 126,241 127,333 7.55 1.21
configure.cpython no-host 2,219,682 2,240,874 6,275,034 2,212,988 2,203,388 2.83 1.00
configure.ocaml no-host 410,317 391,481 648,809 412,679 412,123 1.58 1.01
configure.tcc no-host 6,552 5,465 24,472 6,968 6,902 3.74 1.06
configure.util-linux no-host 2,098,465 2,262,511 5,406,645 1,998,562 1,981,294 2.58 0.95
configure.yash no-host 255,609 244,541 389,653 258,099 257,539 1.52 1.01
hello-world no-host 151 85 3,997 353 342 26.47 2.34

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 23.3 9.0 8.7 5.22 2.03
bin-true no-host 2.9 1.4 18.8 8.3 7.7 6.53 2.86
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.8 1.6 18.8 6.3 5.9 6.84 2.29

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.3 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 805 1 2 2.6 8.3 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,060 1 61 14.9 27.4 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,423 3 61 21.2 30.3 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,796 1 2 2.6 20.4 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.5 24.4 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 815 1 2 2.6 7.7 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,107 1 59 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,185 3 59 21.2 30.1 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,788 1 2 2.6 20.4 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,807 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 3 85,370 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 2 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 465 409 60 23.3 osh-cpython
31 no-host abuild-print-help 22 10 12 9.0 osh-native
39 no-host abuild-print-help 21 19 3 8.7 osh-native-souffle
1 no-host bin-true 680 498 212 2.9 bash
9 no-host bin-true 552 432 129 1.4 dash
17 no-host bin-true 2,332 1,553 1,032 18.8 osh-cpython
25 no-host bin-true 805 567 252 8.3 osh-native
33 no-host bin-true 815 570 259 7.7 osh-native-souffle
2 no-host configure.cpython 15,333 9,256 6,479 27.4 bash
10 no-host configure.cpython 15,401 9,236 6,586 27.4 dash
18 no-host configure.cpython 28,441 17,130 13,145 27.5 osh-cpython
26 no-host configure.cpython 15,060 8,916 6,407 27.4 osh-native
34 no-host configure.cpython 15,107 8,825 6,463 27.4 osh-native-souffle
4 no-host configure.ocaml 3,861 1,681 1,218 20.6 bash
12 no-host configure.ocaml 3,765 1,516 1,268 20.4 dash
20 no-host configure.ocaml 4,672 2,330 1,558 20.6 osh-cpython
28 no-host configure.ocaml 3,796 1,672 1,161 20.4 osh-native
36 no-host configure.ocaml 3,788 1,580 1,245 20.4 osh-native-souffle
5 no-host configure.tcc 49 31 18 19.4 bash
13 no-host configure.tcc 41 20 22 19.3 dash
21 no-host configure.tcc 202 151 55 19.3 osh-cpython
29 no-host configure.tcc 49 25 24 19.4 osh-native
37 no-host configure.tcc 48 31 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,322 9,085 5,710 30.3 bash
11 no-host configure.util-linux 15,156 9,056 6,582 30.1 dash
19 no-host configure.util-linux 31,342 20,948 11,477 30.1 osh-cpython
27 no-host configure.util-linux 14,423 8,503 6,119 30.3 osh-native
35 no-host configure.util-linux 14,185 8,619 5,758 30.1 osh-native-souffle
6 no-host configure.yash 1,851 1,141 718 24.4 bash
14 no-host configure.yash 1,757 962 798 24.2 dash
22 no-host configure.yash 2,447 1,517 972 24.4 osh-cpython
30 no-host configure.yash 1,812 1,081 735 24.4 osh-native
38 no-host configure.yash 1,807 1,079 732 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 32 24 18.8 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,535 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,021 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,177 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,092 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,405 0 0 0 8 0 1,995 119 bash
9 no-host bin-true 66,449 0 0 0 8 0 1,989 121 dash
17 no-host bin-true 787,931 0 0 0 8 0 2,005 364 osh-cpython
25 no-host bin-true 126,241 0 0 0 16 0 1,997 44 osh-native
33 no-host bin-true 127,333 0 0 0 16 0 1,994 182 osh-native-souffle
2 no-host configure.cpython 2,219,682 0 0 0 32,928 0 14,524 1,158 bash
10 no-host configure.cpython 2,240,874 0 0 0 32,992 0 14,655 1,078 dash
18 no-host configure.cpython 6,275,034 1 0 0 27,512 0 13,285 1,283 osh-cpython
26 no-host configure.cpython 2,212,988 0 0 0 27,520 0 13,013 970 osh-native
34 no-host configure.cpython 2,203,388 0 0 0 27,520 0 13,333 1,063 osh-native-souffle
4 no-host configure.ocaml 410,317 0 0 0 5,120 0 1,951 161 bash
12 no-host configure.ocaml 391,481 0 0 0 5,112 0 1,932 145 dash
20 no-host configure.ocaml 648,809 0 0 0 5,112 0 1,875 184 osh-cpython
28 no-host configure.ocaml 412,679 0 0 0 5,120 0 1,933 177 osh-native
36 no-host configure.ocaml 412,123 0 0 0 5,120 0 1,930 175 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,472 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,098,465 1 0 0 42,400 0 18,636 1,157 bash
11 no-host configure.util-linux 2,262,511 0 0 0 42,584 0 17,495 1,091 dash
19 no-host configure.util-linux 5,406,645 5 0 0 39,112 0 16,922 1,168 osh-cpython
27 no-host configure.util-linux 1,998,562 2 0 0 39,128 0 16,974 1,045 osh-native
35 no-host configure.util-linux 1,981,294 0 0 0 39,136 0 16,901 1,085 osh-native-souffle
6 no-host configure.yash 255,609 0 0 0 4,120 0 870 73 bash
14 no-host configure.yash 244,541 0 0 0 3,720 0 871 83 dash
22 no-host configure.yash 389,653 0 0 0 3,728 0 854 104 osh-cpython
30 no-host configure.yash 258,099 0 0 0 3,736 0 847 88 osh-native
38 no-host configure.yash 257,539 0 0 0 3,736 0 849 88 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,997 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 353 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3a065ccb
dash dash-0ebcf347
osh-cpython osh-6f65e4d8
osh-native osh-fd586baf
osh-native-souffle osh-4fa1d2c6
host label host id
no-host no-host-556df3ee