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 21 10 477 22 23 23.24 1.09
bin-true no-host 664 549 2,375 818 808 3.58 1.23
configure.cpython no-host 15,459 15,572 29,797 15,640 15,775 1.93 1.01
configure.ocaml no-host 3,915 3,731 4,755 3,908 3,858 1.21 1.00
configure.tcc no-host 48 41 212 49 49 4.42 1.03
configure.util-linux no-host 14,112 15,328 32,481 14,584 14,552 2.30 1.03
configure.yash no-host 1,913 1,883 2,557 1,856 1,923 1.34 0.97
hello-world no-host 1 1 62 3 3 47.34 2.12

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,548 1,090 23,986 3,189 3,099 9.41 1.25
bin-true no-host 108,361 65,428 779,698 126,193 126,169 7.20 1.16
configure.cpython no-host 2,003,762 2,019,013 6,039,961 1,999,355 1,992,378 3.01 1.00
configure.ocaml no-host 373,096 353,796 611,864 375,918 375,778 1.64 1.01
configure.tcc no-host 6,066 5,014 23,783 6,472 6,457 3.92 1.07
configure.util-linux no-host 1,902,686 2,070,467 5,255,852 1,816,391 1,800,849 2.76 0.95
configure.yash no-host 233,956 222,356 367,216 234,823 234,033 1.57 1.00
hello-world no-host 147 78 3,999 345 339 27.20 2.35

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.5 22.7 9.0 8.5 5.10 2.03
bin-true no-host 3.0 1.4 18.3 8.0 7.7 6.06 2.65
configure.cpython no-host 29.2 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.7 19.7 19.6 19.6 19.6 0.99 1.00
configure.util-linux no-host 30.0 30.3 30.3 30.3 30.4 1.01 1.01
configure.yash no-host 26.3 26.5 26.3 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.6 18.3 6.3 5.9 6.34 2.18

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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 15,640 2 74 14.9 29.2 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,584 3 71 21.2 30.3 2,698,991 29,940 65,698 108,700 1,288,281 1,302,010 32,241 41 131,396 1
configure.ocaml no-host 3,908 1 2 2.6 22.5 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,856 1 2 2.5 26.4 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 15,775 2 74 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,552 3 69 21.2 30.4 2,698,991 29,878 65,636 108,702 1,288,281 1,302,008 32,241 41 131,272 1
configure.ocaml no-host 3,858 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,923 1 2 2.5 26.3 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.5 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 21 9 12 4.5 bash
15 no-host abuild-print-help 10 5 4 3.5 dash
23 no-host abuild-print-help 477 424 57 22.7 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
39 no-host abuild-print-help 23 15 9 8.5 osh-native-souffle
1 no-host bin-true 664 311 386 3.0 bash
9 no-host bin-true 549 283 279 1.4 dash
17 no-host bin-true 2,375 831 1,818 18.3 osh-cpython
25 no-host bin-true 818 290 548 8.0 osh-native
33 no-host bin-true 808 284 540 7.7 osh-native-souffle
2 no-host configure.cpython 15,459 6,955 8,870 29.2 bash
10 no-host configure.cpython 15,572 7,027 8,931 29.2 dash
18 no-host configure.cpython 29,797 14,944 16,850 29.2 osh-cpython
26 no-host configure.cpython 15,640 6,847 9,105 29.2 osh-native
34 no-host configure.cpython 15,775 6,792 9,283 29.2 osh-native-souffle
4 no-host configure.ocaml 3,915 1,376 1,582 22.6 bash
12 no-host configure.ocaml 3,731 1,307 1,448 22.5 dash
20 no-host configure.ocaml 4,755 1,991 1,992 22.6 osh-cpython
28 no-host configure.ocaml 3,908 1,389 1,563 22.5 osh-native
36 no-host configure.ocaml 3,858 1,361 1,535 22.6 osh-native-souffle
5 no-host configure.tcc 48 21 28 19.7 bash
13 no-host configure.tcc 41 21 21 19.7 dash
21 no-host configure.tcc 212 146 70 19.6 osh-cpython
29 no-host configure.tcc 49 19 30 19.6 osh-native
37 no-host configure.tcc 49 28 22 19.6 osh-native-souffle
3 no-host configure.util-linux 14,112 5,925 8,703 30.0 bash
11 no-host configure.util-linux 15,328 6,229 9,661 30.3 dash
19 no-host configure.util-linux 32,481 18,503 15,121 30.3 osh-cpython
27 no-host configure.util-linux 14,584 5,710 9,104 30.3 osh-native
35 no-host configure.util-linux 14,552 5,823 8,924 30.4 osh-native-souffle
6 no-host configure.yash 1,913 901 1,019 26.3 bash
14 no-host configure.yash 1,883 900 919 26.5 dash
22 no-host configure.yash 2,557 1,401 1,202 26.3 osh-cpython
30 no-host configure.yash 1,856 939 922 26.4 osh-native
38 no-host configure.yash 1,923 988 941 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 62 46 17 18.3 osh-cpython
24 no-host hello-world 3 1 2 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,548 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,090 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,986 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,361 0 0 0 8 0 1,986 177 bash
9 no-host bin-true 65,428 0 0 0 8 0 1,978 125 dash
17 no-host bin-true 779,698 0 0 0 8 0 1,981 343 osh-cpython
25 no-host bin-true 126,193 0 0 0 16 0 1,980 132 osh-native
33 no-host bin-true 126,169 0 0 0 16 0 1,975 251 osh-native-souffle
2 no-host configure.cpython 2,003,762 0 0 0 32,928 0 14,227 1,234 bash
10 no-host configure.cpython 2,019,013 0 0 0 32,992 0 14,315 1,234 dash
18 no-host configure.cpython 6,039,961 0 0 0 27,512 0 13,043 1,087 osh-cpython
26 no-host configure.cpython 1,999,355 0 0 0 27,520 0 13,109 1,077 osh-native
34 no-host configure.cpython 1,992,378 0 0 0 27,520 0 13,046 1,002 osh-native-souffle
4 no-host configure.ocaml 373,096 0 0 0 5,120 0 1,949 188 bash
12 no-host configure.ocaml 353,796 0 0 0 5,112 0 1,940 176 dash
20 no-host configure.ocaml 611,864 1 0 0 5,112 0 1,877 202 osh-cpython
28 no-host configure.ocaml 375,918 0 0 0 5,120 0 1,929 183 osh-native
36 no-host configure.ocaml 375,778 0 0 0 5,120 0 1,927 200 osh-native-souffle
5 no-host configure.tcc 6,066 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,014 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,783 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,472 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,457 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,902,686 0 0 0 42,400 0 18,465 1,280 bash
11 no-host configure.util-linux 2,070,467 0 0 0 42,584 0 17,306 1,331 dash
19 no-host configure.util-linux 5,255,852 10 0 0 39,136 0 17,019 1,340 osh-cpython
27 no-host configure.util-linux 1,816,391 2 0 0 39,120 0 16,985 1,148 osh-native
35 no-host configure.util-linux 1,800,849 0 0 0 39,136 0 17,019 1,198 osh-native-souffle
6 no-host configure.yash 233,956 0 0 0 4,120 0 873 80 bash
14 no-host configure.yash 222,356 0 0 0 3,720 0 874 92 dash
22 no-host configure.yash 367,216 0 0 0 3,728 0 854 95 osh-cpython
30 no-host configure.yash 234,823 0 0 0 3,736 0 849 89 osh-native
38 no-host configure.yash 234,033 0 0 0 3,736 0 849 79 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,999 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ffa4bc1c
dash dash-0ebcf347
osh-cpython osh-ea7d9ff3
osh-native osh-d443dd5b
osh-native-souffle osh-155d1ee8
host label host id
no-host no-host-e4839999