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 455 22 21 23.45 1.14
bin-true no-host 681 555 2,254 822 814 3.31 1.21
configure.cpython no-host 14,974 15,064 28,682 15,180 15,214 1.92 1.01
configure.ocaml no-host 3,793 3,727 4,627 3,799 3,823 1.22 1.00
configure.tcc no-host 48 42 195 49 49 4.09 1.03
configure.util-linux no-host 14,111 14,830 31,202 14,294 14,260 2.21 1.01
configure.yash no-host 1,827 1,767 2,450 1,827 1,810 1.34 1.00
hello-world no-host 2 1 49 3 3 32.20 1.88

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,574 1,096 23,469 3,239 3,092 9.12 1.26
bin-true no-host 107,396 66,430 763,885 127,138 124,904 7.11 1.18
configure.cpython no-host 2,216,368 2,235,786 6,220,454 2,225,223 2,218,335 2.81 1.00
configure.ocaml no-host 410,929 391,512 645,572 414,408 412,984 1.57 1.01
configure.tcc no-host 6,548 5,471 23,527 7,008 6,920 3.59 1.07
configure.util-linux no-host 2,107,617 2,258,112 5,349,684 1,992,511 1,995,310 2.54 0.95
configure.yash no-host 256,597 244,996 387,650 258,511 257,400 1.51 1.01
hello-world no-host 154 82 3,751 351 346 24.36 2.28

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 21.9 9.2 8.7 4.91 2.06
bin-true no-host 2.9 1.6 17.7 8.0 7.7 6.14 2.77
configure.cpython no-host 27.5 27.4 27.4 27.4 27.4 1.00 1.00
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.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.0 30.3 30.0 30.0 30.4 1.00 1.00
configure.yash no-host 24.4 24.5 24.5 24.2 24.4 1.01 0.99
hello-world no-host 2.9 1.4 17.7 6.3 5.9 6.14 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,746 3,746 0 694 1,840 1,212 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.0 154,711 13,191 2,848 9,744 78,309 66,658 3,008 3 50,000 0
configure.cpython no-host 15,180 1 61 15.0 27.4 1,772,693 49,825 28,558 86,397 908,061 778,235 22,694 60 50,000 0
configure.util-linux no-host 14,294 3 58 21.3 30.0 2,703,461 29,117 65,861 109,675 1,320,567 1,273,219 27,391 41 131,722 1
configure.ocaml no-host 3,799 1 2 2.6 20.6 150,067 11,022 5,192 7,531 71,594 70,942 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,552 30,552 0 1,520 14,764 14,268 226 0 50,000 0
configure.yash no-host 1,827 1 2 2.6 24.2 139,720 7,991 6,650 6,336 70,269 63,115 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,295 64,501 42,711 4,571 54,509 57,215 270 3 85,422 1
hello-world no-host 3 0 0 0.2 5.9 3,745 3,745 0 695 1,840 1,210 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.7 154,710 12,979 2,786 9,745 78,309 66,656 3,008 3 50,000 0
configure.cpython no-host 15,214 1 61 15.0 27.4 1,772,692 49,076 28,496 86,398 908,061 778,233 22,694 60 50,000 0
configure.util-linux no-host 14,260 3 58 21.3 30.4 2,703,461 42,712 65,799 109,677 1,320,567 1,273,217 27,391 41 131,598 1
configure.ocaml no-host 3,823 1 2 2.6 20.6 150,067 10,960 5,130 7,533 71,594 70,940 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,552 30,552 0 1,522 14,764 14,266 226 0 50,000 0
configure.yash no-host 1,810 1 2 2.6 24.4 139,720 7,929 6,588 6,338 70,269 63,113 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,294 64,439 42,649 4,572 54,509 57,213 270 3 85,298 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 8 12 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 455 414 44 21.9 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 681 502 211 2.9 bash
9 no-host bin-true 555 422 142 1.6 dash
17 no-host bin-true 2,254 1,474 1,040 17.7 osh-cpython
25 no-host bin-true 822 574 262 8.0 osh-native
33 no-host bin-true 814 585 244 7.7 osh-native-souffle
2 no-host configure.cpython 14,974 8,980 6,393 27.5 bash
10 no-host configure.cpython 15,064 9,082 6,404 27.4 dash
18 no-host configure.cpython 28,682 17,132 13,428 27.4 osh-cpython
26 no-host configure.cpython 15,180 9,020 6,430 27.4 osh-native
34 no-host configure.cpython 15,214 8,774 6,624 27.4 osh-native-souffle
4 no-host configure.ocaml 3,793 1,607 1,220 20.6 bash
12 no-host configure.ocaml 3,727 1,549 1,198 20.6 dash
20 no-host configure.ocaml 4,627 2,223 1,613 20.6 osh-cpython
28 no-host configure.ocaml 3,799 1,661 1,177 20.6 osh-native
36 no-host configure.ocaml 3,823 1,647 1,213 20.6 osh-native-souffle
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 195 132 66 19.4 osh-cpython
29 no-host configure.tcc 49 24 26 19.4 osh-native
37 no-host configure.tcc 49 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,111 8,888 5,710 30.0 bash
11 no-host configure.util-linux 14,830 9,090 6,237 30.3 dash
19 no-host configure.util-linux 31,202 20,548 11,743 30.0 osh-cpython
27 no-host configure.util-linux 14,294 8,674 5,825 30.0 osh-native
35 no-host configure.util-linux 14,260 8,537 5,922 30.4 osh-native-souffle
6 no-host configure.yash 1,827 1,040 795 24.4 bash
14 no-host configure.yash 1,767 1,031 737 24.5 dash
22 no-host configure.yash 2,450 1,424 1,068 24.5 osh-cpython
30 no-host configure.yash 1,827 1,081 750 24.2 osh-native
38 no-host configure.yash 1,810 1,065 750 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 36 13 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,574 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 23,469 0 0 0 8 0 45 16 osh-cpython
31 no-host abuild-print-help 3,239 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,092 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,396 0 0 0 8 0 1,991 88 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,986 50 dash
17 no-host bin-true 763,885 0 0 0 8 0 1,996 101 osh-cpython
25 no-host bin-true 127,138 0 0 0 16 0 1,996 193 osh-native
33 no-host bin-true 124,904 0 0 0 16 0 1,992 85 osh-native-souffle
2 no-host configure.cpython 2,216,368 0 0 0 32,928 0 14,561 1,129 bash
10 no-host configure.cpython 2,235,786 0 0 0 32,992 0 14,654 1,077 dash
18 no-host configure.cpython 6,220,454 0 0 0 27,512 0 13,313 1,310 osh-cpython
26 no-host configure.cpython 2,225,223 1 0 0 27,520 0 13,203 997 osh-native
34 no-host configure.cpython 2,218,335 1 0 0 27,520 0 13,275 968 osh-native-souffle
4 no-host configure.ocaml 410,929 0 0 0 5,120 0 1,964 156 bash
12 no-host configure.ocaml 391,512 0 0 0 5,112 0 1,930 151 dash
20 no-host configure.ocaml 645,572 0 0 0 5,112 0 1,858 219 osh-cpython
28 no-host configure.ocaml 414,408 0 0 0 5,120 0 1,931 191 osh-native
36 no-host configure.ocaml 412,984 0 0 0 5,120 0 1,929 176 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 47 2 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,527 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,008 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,920 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,107,617 1 0 0 42,400 0 18,507 1,052 bash
11 no-host configure.util-linux 2,258,112 1 0 0 42,584 0 17,462 1,157 dash
19 no-host configure.util-linux 5,349,684 14 0 0 39,128 0 16,962 1,226 osh-cpython
27 no-host configure.util-linux 1,992,511 2 0 0 39,120 0 16,990 1,031 osh-native
35 no-host configure.util-linux 1,995,310 0 0 0 39,128 0 16,957 1,179 osh-native-souffle
6 no-host configure.yash 256,597 0 0 0 4,120 0 871 86 bash
14 no-host configure.yash 244,996 0 0 0 3,720 0 869 86 dash
22 no-host configure.yash 387,650 0 0 0 3,728 0 856 83 osh-cpython
30 no-host configure.yash 258,511 0 0 0 3,736 0 849 97 osh-native
38 no-host configure.yash 257,400 0 0 0 3,736 0 853 62 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,751 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c9576208
dash dash-0ebcf347
osh-cpython osh-de332187
osh-native osh-46631a51
osh-native-souffle osh-60d94c25
host label host id
no-host no-host-556df3ee