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 457 22 23.91 1.17
bin-true no-host 676 543 2,236 817 3.31 1.21
configure.cpython no-host 14,897 14,996 29,537 15,554 1.98 1.04
configure.ocaml no-host 3,764 3,774 4,649 3,801 1.24 1.01
configure.tcc no-host 47 43 225 48 4.78 1.02
configure.util-linux no-host 13,877 15,035 31,788 14,583 2.29 1.05
configure.yash no-host 1,797 1,789 2,476 1,803 1.38 1.00
hello-world no-host 2 1 49 3 32.27 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,532 1,128 23,037 3,208 9.10 1.27
bin-true no-host 106,422 66,427 734,273 126,216 6.90 1.19
configure.cpython no-host 2,222,721 2,255,512 6,091,772 2,237,271 2.74 1.01
configure.ocaml no-host 410,810 391,041 635,927 413,879 1.55 1.01
configure.tcc no-host 6,537 5,488 22,968 7,018 3.51 1.07
configure.util-linux no-host 2,095,234 2,267,395 5,301,904 2,023,652 2.53 0.97
configure.yash no-host 255,694 245,321 384,042 259,180 1.50 1.01
hello-world no-host 152 86 3,649 341 24.01 2.24

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.5 21.4 8.8 4.94 2.03
bin-true no-host 3.0 1.6 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.4 27.1 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.6 17.2 6.2 6.24 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,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 817 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,554 1 63 15.9 27.1 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 14,583 3 62 22.2 30.3 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,801 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,803 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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 19 0 4.3 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 457 414 46 21.4 osh-cpython
31 no-host abuild-print-help 22 16 7 8.8 osh-native
1 no-host bin-true 676 507 201 3.0 bash
9 no-host bin-true 543 409 143 1.6 dash
17 no-host bin-true 2,236 1,446 1,051 17.3 osh-cpython
25 no-host bin-true 817 589 243 8.0 osh-native
2 no-host configure.cpython 14,897 8,948 6,352 27.4 bash
10 no-host configure.cpython 14,996 8,942 6,475 27.4 dash
18 no-host configure.cpython 29,537 17,894 13,528 27.4 osh-cpython
26 no-host configure.cpython 15,554 9,280 6,486 27.1 osh-native
4 no-host configure.ocaml 3,764 1,625 1,178 20.6 bash
12 no-host configure.ocaml 3,774 1,601 1,190 20.6 dash
20 no-host configure.ocaml 4,649 2,263 1,588 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,640 1,198 20.6 osh-native
5 no-host configure.tcc 47 29 19 19.4 bash
13 no-host configure.tcc 43 35 8 19.3 dash
21 no-host configure.tcc 225 160 69 19.4 osh-cpython
29 no-host configure.tcc 48 25 23 19.3 osh-native
3 no-host configure.util-linux 13,877 8,807 5,545 30.3 bash
11 no-host configure.util-linux 15,035 9,152 6,378 30.0 dash
19 no-host configure.util-linux 31,788 21,030 11,848 30.1 osh-cpython
27 no-host configure.util-linux 14,583 8,651 6,115 30.3 osh-native
6 no-host configure.yash 1,797 1,072 733 24.4 bash
14 no-host configure.yash 1,789 1,068 724 24.2 dash
22 no-host configure.yash 2,476 1,518 1,002 24.4 osh-cpython
30 no-host configure.yash 1,803 1,035 772 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 27 22 17.2 osh-cpython
24 no-host hello-world 3 0 3 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,532 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,128 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,037 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,208 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 106,422 0 0 0 8 0 1,989 155 bash
9 no-host bin-true 66,427 0 0 0 8 0 1,989 76 dash
17 no-host bin-true 734,273 0 0 0 8 0 1,994 213 osh-cpython
25 no-host bin-true 126,216 0 0 0 16 0 1,994 49 osh-native
2 no-host configure.cpython 2,222,721 0 0 0 32,928 0 14,440 1,091 bash
10 no-host configure.cpython 2,255,512 0 0 0 32,992 0 14,574 1,065 dash
18 no-host configure.cpython 6,091,772 1 0 0 27,512 0 13,304 1,334 osh-cpython
26 no-host configure.cpython 2,237,271 0 0 0 27,520 0 13,224 1,235 osh-native
4 no-host configure.ocaml 410,810 0 0 0 5,120 0 1,945 307 bash
12 no-host configure.ocaml 391,041 0 0 0 5,112 0 1,907 156 dash
20 no-host configure.ocaml 635,927 0 0 0 5,112 0 1,862 194 osh-cpython
28 no-host configure.ocaml 413,879 0 0 0 5,120 0 1,928 180 osh-native
5 no-host configure.tcc 6,537 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 22,968 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 46 3 osh-native
3 no-host configure.util-linux 2,095,234 0 0 0 42,400 0 18,661 996 bash
11 no-host configure.util-linux 2,267,395 1 0 0 42,584 0 17,436 1,071 dash
19 no-host configure.util-linux 5,301,904 4 0 0 39,128 0 17,014 1,265 osh-cpython
27 no-host configure.util-linux 2,023,652 0 0 0 39,128 0 17,060 1,103 osh-native
6 no-host configure.yash 255,694 0 0 0 4,120 0 868 69 bash
14 no-host configure.yash 245,321 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 384,042 0 0 0 3,728 0 857 80 osh-cpython
30 no-host configure.yash 259,180 0 0 0 3,736 0 849 76 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,649 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-67567957
dash dash-308ec8e6
osh-cpython osh-7a2349b7
osh-native osh-4c47b516
host label host id
no-host no-host-e54d7702