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 481 22 21 25.77 1.16
bin-true no-host 654 528 2,256 791 800 3.45 1.21
configure.cpython no-host 14,655 14,819 28,435 14,861 14,830 1.94 1.01
configure.ocaml no-host 3,701 3,675 4,601 3,789 3,780 1.24 1.02
configure.tcc no-host 47 40 192 49 47 4.10 1.05
configure.util-linux no-host 13,532 14,620 30,602 14,081 13,885 2.26 1.04
configure.yash no-host 1,806 1,723 2,427 1,793 1,809 1.34 0.99
hello-world no-host 1 1 48 3 3 36.86 2.21

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,567 1,115 23,281 3,209 3,130 9.07 1.25
bin-true no-host 105,328 65,396 759,461 128,082 129,257 7.21 1.22
configure.cpython no-host 1,994,053 2,029,024 5,965,544 2,012,443 2,001,311 2.99 1.01
configure.ocaml no-host 373,013 353,911 607,660 376,496 375,554 1.63 1.01
configure.tcc no-host 6,097 5,013 23,004 6,504 6,445 3.77 1.07
configure.util-linux no-host 1,901,343 2,067,164 5,155,317 1,812,680 1,809,382 2.71 0.95
configure.yash no-host 232,691 221,995 362,827 235,115 234,839 1.56 1.01
hello-world no-host 146 77 3,730 353 342 25.55 2.42

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.2 3.4 21.9 9.0 8.5 5.22 2.16
bin-true no-host 3.0 1.4 17.4 8.1 7.7 5.78 2.70
configure.cpython no-host 29.2 29.3 29.2 29.2 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.7 19.7 19.7 19.6 1.01 1.01
configure.util-linux no-host 30.4 30.2 30.3 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.3 26.4 26.4 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.3 5.8 6.33 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,711 3,711 0 691 1,833 1,187 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.1 154,676 13,060 2,812 9,741 78,302 66,633 3,008 3 50,000 0
configure.cpython no-host 14,861 1 67 14.9 29.2 1,772,658 49,102 28,522 86,394 908,054 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,081 3 65 21.3 30.2 2,703,394 42,739 65,826 109,656 1,320,552 1,273,186 27,391 41 131,652 1
configure.ocaml no-host 3,789 1 2 2.6 22.6 150,028 10,987 5,157 7,526 71,590 70,912 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.7 30,517 30,517 0 1,517 14,757 14,243 226 0 50,000 0
configure.yash no-host 1,793 1 2 2.6 26.4 139,685 7,955 6,614 6,333 70,262 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,260 64,465 42,675 4,568 54,502 57,190 270 3 85,350 1
hello-world no-host 3 0 0 0.2 5.8 3,710 3,710 0 692 1,833 1,185 2 0 50,000 0
bin-true no-host 800 1 2 2.6 7.7 154,675 12,775 2,750 9,742 78,302 66,631 3,008 3 50,000 0
configure.cpython no-host 14,830 2 68 15.0 29.3 1,772,657 44,554 28,460 86,395 908,054 778,208 22,694 60 50,000 0
configure.util-linux no-host 13,885 3 64 21.3 30.3 2,703,394 44,640 65,763 109,658 1,320,552 1,273,184 27,391 41 131,526 1
configure.ocaml no-host 3,780 1 2 2.6 22.6 150,028 10,924 5,094 7,528 71,590 70,910 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,517 30,517 0 1,519 14,757 14,241 226 0 50,000 0
configure.yash no-host 1,809 1 2 2.6 26.4 139,685 7,893 6,552 6,335 70,262 63,088 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,259 64,403 42,613 4,569 54,502 57,188 270 3 85,226 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 9 10 4.2 bash
15 no-host abuild-print-help 9 6 4 3.4 dash
23 no-host abuild-print-help 481 424 61 21.9 osh-cpython
31 no-host abuild-print-help 22 10 13 9.0 osh-native
39 no-host abuild-print-help 21 9 13 8.5 osh-native-souffle
1 no-host bin-true 654 304 384 3.0 bash
9 no-host bin-true 528 272 267 1.4 dash
17 no-host bin-true 2,256 781 1,739 17.4 osh-cpython
25 no-host bin-true 791 311 497 8.1 osh-native
33 no-host bin-true 800 301 517 7.7 osh-native-souffle
2 no-host configure.cpython 14,655 6,561 8,526 29.2 bash
10 no-host configure.cpython 14,819 6,607 8,663 29.3 dash
18 no-host configure.cpython 28,435 14,177 16,159 29.2 osh-cpython
26 no-host configure.cpython 14,861 6,480 8,665 29.2 osh-native
34 no-host configure.cpython 14,830 6,374 8,659 29.3 osh-native-souffle
4 no-host configure.ocaml 3,701 1,281 1,462 22.6 bash
12 no-host configure.ocaml 3,675 1,299 1,398 22.6 dash
20 no-host configure.ocaml 4,601 1,859 1,957 22.6 osh-cpython
28 no-host configure.ocaml 3,789 1,277 1,553 22.6 osh-native
36 no-host configure.ocaml 3,780 1,331 1,487 22.6 osh-native-souffle
5 no-host configure.tcc 47 24 23 19.6 bash
13 no-host configure.tcc 40 25 15 19.7 dash
21 no-host configure.tcc 192 133 63 19.7 osh-cpython
29 no-host configure.tcc 49 19 31 19.7 osh-native
37 no-host configure.tcc 47 21 27 19.6 osh-native-souffle
3 no-host configure.util-linux 13,532 5,742 8,299 30.4 bash
11 no-host configure.util-linux 14,620 5,874 9,238 30.2 dash
19 no-host configure.util-linux 30,602 17,515 14,182 30.3 osh-cpython
27 no-host configure.util-linux 14,081 5,561 8,750 30.2 osh-native
35 no-host configure.util-linux 13,885 5,556 8,513 30.3 osh-native-souffle
6 no-host configure.yash 1,806 903 910 26.4 bash
14 no-host configure.yash 1,723 889 839 26.4 dash
22 no-host configure.yash 2,427 1,354 1,118 26.3 osh-cpython
30 no-host configure.yash 1,793 860 938 26.4 osh-native
38 no-host configure.yash 1,809 897 914 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 30 18 17.4 osh-cpython
24 no-host hello-world 3 1 1 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,567 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,281 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,209 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,130 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,328 0 0 0 8 0 1,982 100 bash
9 no-host bin-true 65,396 0 0 0 8 0 1,983 175 dash
17 no-host bin-true 759,461 0 0 0 8 0 1,984 224 osh-cpython
25 no-host bin-true 128,082 0 0 0 16 0 1,984 92 osh-native
33 no-host bin-true 129,257 0 0 0 16 0 1,980 156 osh-native-souffle
2 no-host configure.cpython 1,994,053 0 0 0 32,928 0 14,225 1,237 bash
10 no-host configure.cpython 2,029,024 0 0 0 32,992 0 14,335 1,141 dash
18 no-host configure.cpython 5,965,544 0 0 0 27,512 0 13,077 1,320 osh-cpython
26 no-host configure.cpython 2,012,443 0 0 0 27,520 0 13,062 1,236 osh-native
34 no-host configure.cpython 2,001,311 0 0 0 27,520 0 13,064 1,071 osh-native-souffle
4 no-host configure.ocaml 373,013 0 0 0 5,120 0 1,938 195 bash
12 no-host configure.ocaml 353,911 0 0 0 5,112 0 1,940 193 dash
20 no-host configure.ocaml 607,660 0 0 0 5,112 0 1,850 210 osh-cpython
28 no-host configure.ocaml 376,496 0 0 0 5,120 0 1,924 211 osh-native
36 no-host configure.ocaml 375,554 0 0 0 5,120 0 1,929 209 osh-native-souffle
5 no-host configure.tcc 6,097 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,013 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,004 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,504 0 0 0 104 0 47 7 osh-native
37 no-host configure.tcc 6,445 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 1,901,343 0 0 0 42,400 0 18,487 1,254 bash
11 no-host configure.util-linux 2,067,164 2 0 0 42,592 0 17,382 1,484 dash
19 no-host configure.util-linux 5,155,317 7 0 0 39,112 0 16,992 1,383 osh-cpython
27 no-host configure.util-linux 1,812,680 3 0 0 39,128 0 16,997 1,258 osh-native
35 no-host configure.util-linux 1,809,382 0 0 0 39,136 0 17,000 1,112 osh-native-souffle
6 no-host configure.yash 232,691 0 0 0 4,120 0 876 108 bash
14 no-host configure.yash 221,995 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 362,827 0 0 0 3,728 0 853 106 osh-cpython
30 no-host configure.yash 235,115 0 0 0 3,736 0 852 84 osh-native
38 no-host configure.yash 234,839 0 0 0 3,736 0 849 101 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,730 0 0 0 8 0 7 1 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-abbb4824
dash dash-0ebcf347
osh-cpython osh-02005fdd
osh-native osh-60297185
osh-native-souffle osh-785869c9
host label host id
no-host no-host-e5b8d3ee