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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 22 22 19 1.31 1.14
bin-true no-host 652 455 827 842 679 1.27 1.04
configure.cpython no-host 14,626 14,717 14,435 14,264 13,778 0.99 0.94
configure.ocaml no-host 3,818 3,777 3,877 3,887 3,812 1.02 1.00
configure.tcc no-host 48 43 50 49 45 1.05 0.95
configure.util-linux no-host 13,246 14,105 13,421 13,172 12,793 1.01 0.97
configure.yash no-host 1,785 1,756 1,807 1,816 1,764 1.01 0.99
hello-world no-host 1 1 3 3 1 2.33 0.99

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,383 1,157 3,293 3,378 2,810 1.38 1.18
bin-true no-host 104,529 49,410 135,380 135,021 111,024 1.30 1.06
configure.cpython no-host 1,623,239 1,642,919 1,592,204 1,612,230 1,523,582 0.98 0.94
configure.ocaml no-host 299,127 280,878 305,406 306,232 301,146 1.02 1.01
configure.tcc no-host 5,224 4,220 5,573 5,708 5,138 1.07 0.98
configure.util-linux no-host 1,537,963 1,697,387 1,497,457 1,517,764 1,458,730 0.97 0.95
configure.yash no-host 173,272 159,503 177,236 177,056 173,032 1.02 1.00
hello-world no-host 151 88 385 394 183 2.55 1.21

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.8 3.9 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.8 9.0 5.2 2.79 1.67
configure.cpython no-host 34.4 34.5 34.6 34.3 34.4 1.01 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.1 26.4 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.4 39.7 1.00 1.00
configure.yash no-host 33.4 33.3 33.3 33.4 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.8 3.4 2.04 1.08

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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 827 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 14,435 2 75 14.8 34.6 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,421 3 74 21.6 39.6 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,877 1 2 2.8 28.8 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,807 1 2 2.7 33.3 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 9.4 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 842 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 14,264 1 71 14.8 34.3 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 13,172 4 70 21.6 39.4 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,887 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.4 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,816 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 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 16 8 9 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 22 9 13 9.4 osh-native
31 no-host abuild-print-help 22 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.4 osh-static
1 no-host bin-true 652 314 374 3.1 bash
9 no-host bin-true 455 270 187 1.6 dash
17 no-host bin-true 827 302 541 8.8 osh-native
25 no-host bin-true 842 293 565 9.0 osh-nosouffle
33 no-host bin-true 679 308 386 5.2 osh-static
2 no-host configure.cpython 14,626 7,828 7,211 34.4 bash
10 no-host configure.cpython 14,717 7,922 7,221 34.5 dash
18 no-host configure.cpython 14,435 7,600 7,131 34.6 osh-native
26 no-host configure.cpython 14,264 7,525 7,043 34.3 osh-nosouffle
34 no-host configure.cpython 13,778 7,623 6,410 34.4 osh-static
4 no-host configure.ocaml 3,818 1,519 1,341 28.7 bash
12 no-host configure.ocaml 3,777 1,535 1,267 28.8 dash
20 no-host configure.ocaml 3,877 1,545 1,373 28.8 osh-native
28 no-host configure.ocaml 3,887 1,586 1,347 28.7 osh-nosouffle
36 no-host configure.ocaml 3,812 1,565 1,279 28.6 osh-static
5 no-host configure.tcc 48 22 26 26.2 bash
13 no-host configure.tcc 43 24 19 26.2 dash
21 no-host configure.tcc 50 29 22 26.1 osh-native
29 no-host configure.tcc 49 23 27 26.4 osh-nosouffle
37 no-host configure.tcc 45 24 21 26.1 osh-static
3 no-host configure.util-linux 13,246 6,900 6,836 39.7 bash
11 no-host configure.util-linux 14,105 6,875 7,745 39.6 dash
19 no-host configure.util-linux 13,421 6,597 7,060 39.6 osh-native
27 no-host configure.util-linux 13,172 6,546 6,855 39.4 osh-nosouffle
35 no-host configure.util-linux 12,793 6,469 6,548 39.7 osh-static
6 no-host configure.yash 1,785 983 810 33.4 bash
14 no-host configure.yash 1,756 1,019 737 33.3 dash
22 no-host configure.yash 1,807 965 845 33.3 osh-native
30 no-host configure.yash 1,816 1,018 800 33.4 osh-nosouffle
38 no-host configure.yash 1,764 981 785 33.3 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 1 2 6.8 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 osh-static

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,383 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,293 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,378 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,810 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 104,529 0 0 0 8 0 2,000 99 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,993 66 dash
17 no-host bin-true 135,380 0 0 0 16 0 2,002 106 osh-native
25 no-host bin-true 135,021 0 0 0 16 0 1,999 100 osh-nosouffle
33 no-host bin-true 111,024 0 0 0 8 0 2,000 89 osh-static
2 no-host configure.cpython 1,623,239 0 0 0 25,272 0 14,076 1,059 bash
10 no-host configure.cpython 1,642,919 0 0 0 25,272 0 14,105 1,037 dash
18 no-host configure.cpython 1,592,204 0 0 0 25,280 0 11,299 889 osh-native
26 no-host configure.cpython 1,612,230 0 0 0 25,280 0 11,308 845 osh-nosouffle
34 no-host configure.cpython 1,523,582 0 0 0 25,272 0 11,299 871 osh-static
4 no-host configure.ocaml 299,127 0 0 0 4,432 0 2,015 192 bash
12 no-host configure.ocaml 280,878 0 0 0 4,432 0 2,104 198 dash
20 no-host configure.ocaml 305,406 0 0 0 4,440 0 1,999 229 osh-native
28 no-host configure.ocaml 306,232 0 0 0 4,440 0 1,992 185 osh-nosouffle
36 no-host configure.ocaml 301,146 0 0 0 4,432 0 1,998 242 osh-static
5 no-host configure.tcc 5,224 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,220 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,573 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,708 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,138 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,537,963 1 0 232 35,944 0 18,960 1,102 bash
11 no-host configure.util-linux 1,697,387 0 0 0 35,936 0 17,167 1,169 dash
19 no-host configure.util-linux 1,497,457 1 0 0 35,952 0 16,172 970 osh-native
27 no-host configure.util-linux 1,517,764 1 0 0 35,944 0 16,217 922 osh-nosouffle
35 no-host configure.util-linux 1,458,730 4 0 0 35,936 0 16,200 969 osh-static
6 no-host configure.yash 173,272 0 0 0 3,616 0 878 92 bash
14 no-host configure.yash 159,503 0 0 0 3,616 0 998 105 dash
22 no-host configure.yash 177,236 0 0 0 3,624 0 857 89 osh-native
30 no-host configure.yash 177,056 0 0 0 3,624 0 856 101 osh-nosouffle
38 no-host configure.yash 173,032 0 0 0 3,624 0 856 96 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 385 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 394 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-a8d38150
osh-nosouffle osh-30ad8cb5
osh-static osh-static-64e1d212
host label host id
no-host no-host-9c670df1