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 10 465 22 21 24.32 1.17
bin-true no-host 669 559 2,265 808 812 3.38 1.21
configure.cpython no-host 15,116 15,163 29,324 15,368 15,331 1.94 1.02
configure.ocaml no-host 3,859 3,767 4,703 3,843 3,836 1.22 1.00
configure.tcc no-host 48 42 197 48 48 4.10 1.01
configure.util-linux no-host 14,097 15,099 31,695 14,424 14,364 2.25 1.02
configure.yash no-host 1,835 1,774 2,465 1,847 1,833 1.34 1.01
hello-world no-host 2 1 49 3 3 31.81 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,565 1,099 23,454 3,203 3,083 9.14 1.25
bin-true no-host 106,376 66,406 771,061 123,278 124,279 7.25 1.16
configure.cpython no-host 2,218,401 2,237,432 6,224,881 2,217,639 2,197,683 2.81 1.00
configure.ocaml no-host 410,320 391,355 645,009 412,984 411,865 1.57 1.01
configure.tcc no-host 6,563 5,463 23,702 6,993 6,910 3.61 1.07
configure.util-linux no-host 2,108,719 2,258,377 5,361,811 1,993,807 1,989,495 2.54 0.95
configure.yash no-host 256,600 245,032 387,713 256,983 257,541 1.51 1.00
hello-world no-host 151 80 3,746 349 343 24.81 2.31

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 22.0 9.0 8.5 4.94 2.03
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.5 27.1 27.4 27.3 27.4 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.0 30.3 30.3 0.99 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 24.2 0.99 1.00
hello-world no-host 2.8 1.4 17.6 6.2 5.9 6.38 2.24

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.2 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 808 1 2 2.6 8.0 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,368 1 59 14.9 27.3 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,424 3 59 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,843 1 2 2.6 20.6 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,847 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 812 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,331 1 60 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,364 2 59 21.2 30.3 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,836 1 2 2.6 20.6 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.4 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,833 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.5 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 19 18 1 4.5 bash
15 no-host abuild-print-help 10 9 2 3.4 dash
23 no-host abuild-print-help 465 425 43 22.0 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 669 494 205 3.0 bash
9 no-host bin-true 559 427 144 1.4 dash
17 no-host bin-true 2,265 1,505 1,025 17.7 osh-cpython
25 no-host bin-true 808 564 259 8.0 osh-native
33 no-host bin-true 812 566 261 7.7 osh-native-souffle
2 no-host configure.cpython 15,116 9,116 6,398 27.5 bash
10 no-host configure.cpython 15,163 9,215 6,345 27.1 dash
18 no-host configure.cpython 29,324 17,619 13,621 27.4 osh-cpython
26 no-host configure.cpython 15,368 9,002 6,631 27.3 osh-native
34 no-host configure.cpython 15,331 9,058 6,447 27.4 osh-native-souffle
4 no-host configure.ocaml 3,859 1,665 1,213 20.6 bash
12 no-host configure.ocaml 3,767 1,663 1,120 20.6 dash
20 no-host configure.ocaml 4,703 2,202 1,712 20.6 osh-cpython
28 no-host configure.ocaml 3,843 1,615 1,266 20.6 osh-native
36 no-host configure.ocaml 3,836 1,626 1,241 20.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 19.3 bash
13 no-host configure.tcc 42 30 13 19.4 dash
21 no-host configure.tcc 197 137 63 19.3 osh-cpython
29 no-host configure.tcc 48 26 23 19.3 osh-native
37 no-host configure.tcc 48 32 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,097 8,838 5,731 30.3 bash
11 no-host configure.util-linux 15,099 9,313 6,272 30.3 dash
19 no-host configure.util-linux 31,695 21,241 11,554 30.0 osh-cpython
27 no-host configure.util-linux 14,424 8,761 5,860 30.3 osh-native
35 no-host configure.util-linux 14,364 8,531 6,022 30.3 osh-native-souffle
6 no-host configure.yash 1,835 1,071 771 24.4 bash
14 no-host configure.yash 1,774 1,076 701 24.4 dash
22 no-host configure.yash 2,465 1,568 940 24.2 osh-cpython
30 no-host configure.yash 1,847 1,110 740 24.4 osh-native
38 no-host configure.yash 1,833 1,019 819 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.4 dash
16 no-host hello-world 49 33 16 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 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,565 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,454 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,203 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,083 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,376 0 0 0 8 0 1,995 59 bash
9 no-host bin-true 66,406 0 0 0 8 0 1,974 68 dash
17 no-host bin-true 771,061 0 0 0 8 0 1,996 186 osh-cpython
25 no-host bin-true 123,278 0 0 0 16 0 1,994 62 osh-native
33 no-host bin-true 124,279 0 0 0 16 0 1,990 111 osh-native-souffle
2 no-host configure.cpython 2,218,401 0 0 0 32,928 0 14,561 1,056 bash
10 no-host configure.cpython 2,237,432 0 0 0 32,992 0 14,588 949 dash
18 no-host configure.cpython 6,224,881 1 0 0 27,512 0 13,290 1,269 osh-cpython
26 no-host configure.cpython 2,217,639 0 0 0 27,520 0 13,254 991 osh-native
34 no-host configure.cpython 2,197,683 0 0 0 27,520 0 13,259 1,038 osh-native-souffle
4 no-host configure.ocaml 410,320 0 0 0 5,120 0 1,960 166 bash
12 no-host configure.ocaml 391,355 0 0 0 5,112 0 1,927 191 dash
20 no-host configure.ocaml 645,009 0 0 0 5,112 0 1,860 161 osh-cpython
28 no-host configure.ocaml 412,984 0 0 0 5,120 0 1,934 187 osh-native
36 no-host configure.ocaml 411,865 0 0 0 5,120 0 1,932 166 osh-native-souffle
5 no-host configure.tcc 6,563 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,463 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,702 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,910 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,108,719 0 0 0 42,400 0 18,590 988 bash
11 no-host configure.util-linux 2,258,377 0 0 0 42,584 0 17,490 1,150 dash
19 no-host configure.util-linux 5,361,811 13 0 0 39,112 0 16,965 1,306 osh-cpython
27 no-host configure.util-linux 1,993,807 1 0 0 39,120 0 16,962 950 osh-native
35 no-host configure.util-linux 1,989,495 0 0 0 39,136 0 16,962 921 osh-native-souffle
6 no-host configure.yash 256,600 0 0 0 4,120 0 871 87 bash
14 no-host configure.yash 245,032 0 0 0 3,720 0 868 88 dash
22 no-host configure.yash 387,713 0 0 0 3,728 0 851 102 osh-cpython
30 no-host configure.yash 256,983 0 0 0 3,736 0 850 81 osh-native
38 no-host configure.yash 257,541 0 0 0 3,736 0 850 82 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,746 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-9e5ebdae
dash dash-0ebcf347
osh-cpython osh-86347751
osh-native osh-4c45e11d
osh-native-souffle osh-f33b566e
host label host id
no-host no-host-556df3ee