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 9 455 22 23.86 1.17
bin-true no-host 678 547 2,447 957 3.61 1.41
configure.cpython no-host 15,076 15,265 28,510 15,515 1.89 1.03
configure.ocaml no-host 3,819 3,753 4,656 3,893 1.22 1.02
configure.tcc no-host 48 42 191 50 3.99 1.03
configure.util-linux no-host 14,062 14,812 31,161 14,640 2.22 1.04
configure.yash no-host 1,850 1,794 2,455 1,859 1.33 1.00
hello-world no-host 2 1 49 3 29.49 1.73

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,092 23,036 3,199 9.11 1.27
bin-true no-host 107,393 66,419 790,732 233,481 7.36 2.17
configure.cpython no-host 2,217,337 2,244,381 6,185,187 2,223,326 2.79 1.00
configure.ocaml no-host 410,654 391,257 642,004 413,908 1.56 1.01
configure.tcc no-host 6,565 5,462 23,386 7,013 3.56 1.07
configure.util-linux no-host 2,101,851 2,260,696 5,324,211 1,996,964 2.53 0.95
configure.yash no-host 256,794 244,198 386,673 261,041 1.51 1.02
hello-world no-host 154 83 3,693 348 23.98 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.5 3.5 21.6 9.2 4.85 2.06
bin-true no-host 2.9 1.6 17.7 8.1 6.14 2.82
configure.cpython no-host 27.4 27.1 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.5 1.00 1.01
hello-world no-host 2.9 1.6 17.3 6.2 6.00 2.14

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.2 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 957 1 2 2.6 8.1 178,726 37,089 2,818 9,734 94,369 74,623 3,008 3 50,000 0
configure.cpython no-host 15,515 1 65 15.0 27.3 1,772,707 49,108 28,528 86,381 908,126 778,200 22,694 60 50,000 0
configure.util-linux no-host 14,640 3 64 21.3 30.1 2,703,491 42,745 65,812 109,643 1,320,656 1,273,192 27,391 41 131,624 1
configure.ocaml no-host 3,893 1 2 2.6 20.6 150,072 10,993 5,163 7,513 71,657 70,902 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,561 30,561 0 1,504 14,824 14,233 226 0 50,000 0
configure.yash no-host 1,859 1 2 2.6 24.5 141,340 9,010 6,550 6,320 71,404 63,616 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 2 4.5 bash
15 no-host abuild-print-help 9 9 1 3.5 dash
23 no-host abuild-print-help 455 394 65 21.6 osh-cpython
31 no-host abuild-print-help 22 17 5 9.2 osh-native
1 no-host bin-true 678 498 212 2.9 bash
9 no-host bin-true 547 416 140 1.6 dash
17 no-host bin-true 2,447 1,601 1,115 17.7 osh-cpython
25 no-host bin-true 957 611 364 8.1 osh-native
2 no-host configure.cpython 15,076 9,095 6,375 27.4 bash
10 no-host configure.cpython 15,265 9,267 6,424 27.1 dash
18 no-host configure.cpython 28,510 17,206 13,146 27.3 osh-cpython
26 no-host configure.cpython 15,515 9,048 6,741 27.3 osh-native
4 no-host configure.ocaml 3,819 1,615 1,244 20.6 bash
12 no-host configure.ocaml 3,753 1,634 1,136 20.6 dash
20 no-host configure.ocaml 4,656 2,263 1,601 20.6 osh-cpython
28 no-host configure.ocaml 3,893 1,674 1,258 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 191 132 63 19.3 osh-cpython
29 no-host configure.tcc 50 27 24 19.3 osh-native
3 no-host configure.util-linux 14,062 8,902 5,632 30.3 bash
11 no-host configure.util-linux 14,812 9,185 6,114 30.0 dash
19 no-host configure.util-linux 31,161 21,068 11,146 30.3 osh-cpython
27 no-host configure.util-linux 14,640 8,798 6,037 30.1 osh-native
6 no-host configure.yash 1,850 1,122 737 24.4 bash
14 no-host configure.yash 1,794 1,020 777 24.2 dash
22 no-host configure.yash 2,455 1,477 1,020 24.4 osh-cpython
30 no-host configure.yash 1,859 1,036 827 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 41 8 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,528 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,036 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 39 6 osh-native
1 no-host bin-true 107,393 0 0 0 8 0 1,990 53 bash
9 no-host bin-true 66,419 0 0 0 8 0 1,992 48 dash
17 no-host bin-true 790,732 0 0 0 8 0 1,994 221 osh-cpython
25 no-host bin-true 233,481 0 0 0 16 0 1,985 152 osh-native
2 no-host configure.cpython 2,217,337 0 0 0 32,928 0 14,438 959 bash
10 no-host configure.cpython 2,244,381 1 0 0 32,992 0 14,622 1,064 dash
18 no-host configure.cpython 6,185,187 1 0 0 27,512 0 13,217 1,136 osh-cpython
26 no-host configure.cpython 2,223,326 0 0 0 27,520 0 13,182 934 osh-native
4 no-host configure.ocaml 410,654 0 0 0 5,120 0 1,945 169 bash
12 no-host configure.ocaml 391,257 0 0 0 5,112 0 1,915 198 dash
20 no-host configure.ocaml 642,004 1 0 0 5,112 0 1,862 195 osh-cpython
28 no-host configure.ocaml 413,908 0 0 0 5,120 0 1,927 313 osh-native
5 no-host configure.tcc 6,565 0 0 0 104 0 49 10 bash
13 no-host configure.tcc 5,462 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,386 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,013 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,101,851 0 0 0 42,400 0 18,607 1,038 bash
11 no-host configure.util-linux 2,260,696 0 0 0 42,584 0 17,460 1,177 dash
19 no-host configure.util-linux 5,324,211 12 0 0 39,120 0 16,946 1,297 osh-cpython
27 no-host configure.util-linux 1,996,964 1 0 0 39,120 0 16,977 988 osh-native
6 no-host configure.yash 256,794 0 0 0 4,120 0 871 77 bash
14 no-host configure.yash 244,198 0 0 0 3,720 0 869 80 dash
22 no-host configure.yash 386,673 0 0 0 3,728 0 853 88 osh-cpython
30 no-host configure.yash 261,041 0 0 0 3,736 0 852 97 osh-native
0 no-host hello-world 154 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,693 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-fd8e233c
dash dash-308ec8e6
osh-cpython osh-979786fb
osh-native osh-b80d862c
host label host id
no-host no-host-556df3ee