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 py bash ratio native bash ratio
abuild-print-help no-host 19 10 455 22 23.72 1.17
bin-true no-host 674 540 2,212 816 3.28 1.21
configure.cpython no-host 15,007 15,090 28,625 15,260 1.91 1.02
configure.ocaml no-host 3,823 3,750 4,626 3,816 1.21 1.00
configure.tcc no-host 48 42 192 48 4.02 1.01
configure.util-linux no-host 14,019 14,883 31,343 14,404 2.24 1.03
configure.yash no-host 1,818 1,773 2,450 1,828 1.35 1.01
hello-world no-host 1 1 49 3 34.39 1.99

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,541 1,101 22,802 3,190 8.97 1.26
bin-true no-host 105,334 65,454 747,349 126,187 7.10 1.20
configure.cpython no-host 2,219,046 2,244,211 6,144,761 2,224,204 2.77 1.00
configure.ocaml no-host 410,607 391,382 637,789 413,557 1.55 1.01
configure.tcc no-host 6,568 5,486 23,192 6,962 3.53 1.06
configure.util-linux no-host 2,100,669 2,258,700 5,292,200 1,995,988 2.52 0.95
configure.yash no-host 256,630 244,073 383,347 257,339 1.49 1.00
hello-world no-host 153 83 3,723 346 24.33 2.26

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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 21.6 8.9 5.00 2.06
bin-true no-host 2.9 1.4 17.4 7.9 6.05 2.73
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.4 1.00 1.01
configure.yash no-host 24.4 24.5 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.3 6.00 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.3 6.3 3,728 3,728 0 681 1,878 1,169 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.9 154,693 12,993 2,800 9,731 78,347 66,615 5,012 3 50,000 0
configure.cpython no-host 15,260 1 61 15.0 27.4 1,772,669 49,198 28,509 86,378 908,099 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,404 3 60 21.3 30.4 2,703,405 44,767 65,793 109,640 1,320,597 1,273,168 49,081 41 131,586 1
configure.ocaml no-host 3,816 1 2 2.6 20.6 150,039 11,046 5,139 7,510 71,635 70,894 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,528 30,528 0 1,501 14,802 14,225 350 0 50,000 0
configure.yash no-host 1,828 1 2 2.6 24.4 139,696 7,965 6,601 6,317 70,307 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,271 64,456 42,664 4,552 54,547 57,172 478 3 85,328 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 17 3 4.3 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 455 414 44 21.6 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
1 no-host bin-true 674 494 211 2.9 bash
9 no-host bin-true 540 423 127 1.4 dash
17 no-host bin-true 2,212 1,397 1,075 17.4 osh-cpython
25 no-host bin-true 816 585 245 7.9 osh-native
2 no-host configure.cpython 15,007 9,207 6,203 27.4 bash
10 no-host configure.cpython 15,090 9,188 6,318 27.4 dash
18 no-host configure.cpython 28,625 17,446 13,036 27.5 osh-cpython
26 no-host configure.cpython 15,260 9,047 6,478 27.4 osh-native
4 no-host configure.ocaml 3,823 1,615 1,243 20.6 bash
12 no-host configure.ocaml 3,750 1,597 1,170 20.4 dash
20 no-host configure.ocaml 4,626 2,182 1,649 20.6 osh-cpython
28 no-host configure.ocaml 3,816 1,635 1,220 20.6 osh-native
5 no-host configure.tcc 48 24 24 19.3 bash
13 no-host configure.tcc 42 21 21 19.4 dash
21 no-host configure.tcc 192 147 49 19.3 osh-cpython
29 no-host configure.tcc 48 33 16 19.3 osh-native
3 no-host configure.util-linux 14,019 8,699 5,795 30.1 bash
11 no-host configure.util-linux 14,883 9,201 6,182 30.1 dash
19 no-host configure.util-linux 31,343 21,088 11,348 30.1 osh-cpython
27 no-host configure.util-linux 14,404 8,528 6,063 30.4 osh-native
6 no-host configure.yash 1,818 1,039 788 24.4 bash
14 no-host configure.yash 1,773 1,074 702 24.5 dash
22 no-host configure.yash 2,450 1,475 1,016 24.4 osh-cpython
30 no-host configure.yash 1,828 1,100 731 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 33 16 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native

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,541 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,802 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,334 0 0 0 8 0 1,991 103 bash
9 no-host bin-true 65,454 0 0 0 8 0 1,988 35 dash
17 no-host bin-true 747,349 0 0 0 8 0 1,999 199 osh-cpython
25 no-host bin-true 126,187 0 0 0 16 0 1,991 121 osh-native
2 no-host configure.cpython 2,219,046 0 0 0 32,928 0 14,510 1,028 bash
10 no-host configure.cpython 2,244,211 0 0 0 32,992 0 14,631 1,105 dash
18 no-host configure.cpython 6,144,761 0 0 0 27,512 0 13,207 1,069 osh-cpython
26 no-host configure.cpython 2,224,204 0 0 0 27,520 0 13,306 970 osh-native
4 no-host configure.ocaml 410,607 0 0 0 5,120 0 1,959 146 bash
12 no-host configure.ocaml 391,382 0 0 0 5,112 0 1,948 275 dash
20 no-host configure.ocaml 637,789 1 0 0 5,112 0 1,862 164 osh-cpython
28 no-host configure.ocaml 413,557 0 0 0 5,120 0 1,931 177 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,486 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,192 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,100,669 0 0 0 42,400 0 18,536 1,003 bash
11 no-host configure.util-linux 2,258,700 1 0 0 42,584 0 17,476 988 dash
19 no-host configure.util-linux 5,292,200 8 0 0 39,112 0 16,997 1,330 osh-cpython
27 no-host configure.util-linux 1,995,988 0 0 0 39,120 0 16,960 1,003 osh-native
6 no-host configure.yash 256,630 0 0 0 4,120 0 869 80 bash
14 no-host configure.yash 244,073 0 0 0 3,720 0 869 94 dash
22 no-host configure.yash 383,347 0 0 0 3,728 0 853 85 osh-cpython
30 no-host configure.yash 257,339 0 0 0 3,736 0 849 90 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,723 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-99d5f941
dash dash-308ec8e6
osh-cpython osh-4f739b31
osh-native osh-6b6a8f6f
host label host id
no-host no-host-556df3ee