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.73 1.17
bin-true no-host 684 549 2,226 827 3.26 1.21
configure.cpython no-host 15,039 15,108 28,437 15,277 1.89 1.02
configure.ocaml no-host 3,812 3,749 4,652 3,826 1.22 1.00
configure.tcc no-host 48 42 195 49 4.07 1.03
configure.util-linux no-host 14,065 14,862 31,334 14,457 2.23 1.03
configure.yash no-host 1,816 1,766 2,446 1,838 1.35 1.01
hello-world no-host 1 1 49 3 32.59 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,562 1,102 23,338 3,205 9.11 1.25
bin-true no-host 107,347 66,444 745,561 129,254 6.95 1.20
configure.cpython no-host 2,226,051 2,243,907 6,150,222 2,228,249 2.76 1.00
configure.ocaml no-host 410,400 391,018 638,117 413,369 1.55 1.01
configure.tcc no-host 6,547 5,467 23,186 6,945 3.54 1.06
configure.util-linux no-host 2,104,172 2,257,904 5,320,344 2,018,816 2.53 0.96
configure.yash no-host 256,146 243,565 384,839 259,135 1.50 1.01
hello-world no-host 149 83 3,666 344 24.60 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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.8 9.0 4.88 2.03
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.1 27.4 27.4 27.4 1.01 1.01
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.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.5 24.2 1.01 0.99
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.3 6.2 3,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 827 1 2 2.7 8.1 154,688 12,992 2,799 11,737 78,344 64,607 5,012 3 50,000 0
configure.cpython no-host 15,277 1 62 15.8 27.4 1,772,604 49,197 28,508 101,770 908,051 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,457 3 60 22.2 30.1 2,703,268 44,766 65,792 126,121 1,320,495 1,256,652 49,081 41 131,584 1
configure.ocaml no-host 3,826 1 2 2.7 20.6 150,030 11,045 5,138 8,602 71,629 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,838 1 2 2.6 24.2 139,687 7,964 6,600 7,554 70,301 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,266 64,455 42,663 4,610 54,544 57,112 478 3 85,326 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.5 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 457 416 44 21.8 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
1 no-host bin-true 684 518 199 2.9 bash
9 no-host bin-true 549 424 134 1.4 dash
17 no-host bin-true 2,226 1,503 976 17.3 osh-cpython
25 no-host bin-true 827 585 257 8.1 osh-native
2 no-host configure.cpython 15,039 9,162 6,283 27.1 bash
10 no-host configure.cpython 15,108 9,201 6,332 27.4 dash
18 no-host configure.cpython 28,437 17,027 13,246 27.4 osh-cpython
26 no-host configure.cpython 15,277 8,983 6,569 27.4 osh-native
4 no-host configure.ocaml 3,812 1,680 1,165 20.6 bash
12 no-host configure.ocaml 3,749 1,648 1,118 20.6 dash
20 no-host configure.ocaml 4,652 2,190 1,665 20.6 osh-cpython
28 no-host configure.ocaml 3,826 1,643 1,221 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 195 121 77 19.4 osh-cpython
29 no-host configure.tcc 49 29 21 19.4 osh-native
3 no-host configure.util-linux 14,065 8,914 5,611 30.1 bash
11 no-host configure.util-linux 14,862 9,085 6,271 30.1 dash
19 no-host configure.util-linux 31,334 21,069 11,349 30.3 osh-cpython
27 no-host configure.util-linux 14,457 8,689 5,963 30.1 osh-native
6 no-host configure.yash 1,816 1,069 754 24.4 bash
14 no-host configure.yash 1,766 994 775 24.5 dash
22 no-host configure.yash 2,446 1,591 898 24.5 osh-cpython
30 no-host configure.yash 1,838 1,058 784 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 25 24 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,562 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,338 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 107,347 0 0 0 8 0 1,993 52 bash
9 no-host bin-true 66,444 0 0 0 8 0 1,992 66 dash
17 no-host bin-true 745,561 0 0 0 8 0 2,000 366 osh-cpython
25 no-host bin-true 129,254 0 0 0 16 0 1,988 156 osh-native
2 no-host configure.cpython 2,226,051 0 0 0 32,928 0 14,573 1,100 bash
10 no-host configure.cpython 2,243,907 0 0 0 32,992 0 14,571 1,228 dash
18 no-host configure.cpython 6,150,222 0 0 0 27,512 0 13,298 1,276 osh-cpython
26 no-host configure.cpython 2,228,249 0 0 0 27,520 0 13,287 1,080 osh-native
4 no-host configure.ocaml 410,400 0 0 0 5,120 0 1,953 161 bash
12 no-host configure.ocaml 391,018 0 0 0 5,112 0 1,928 140 dash
20 no-host configure.ocaml 638,117 0 0 0 5,112 0 1,855 172 osh-cpython
28 no-host configure.ocaml 413,369 0 0 0 5,120 0 1,927 170 osh-native
5 no-host configure.tcc 6,547 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,186 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,104,172 0 0 0 42,400 0 18,509 951 bash
11 no-host configure.util-linux 2,257,904 0 0 0 42,584 0 17,464 983 dash
19 no-host configure.util-linux 5,320,344 13 0 0 39,112 0 17,061 1,189 osh-cpython
27 no-host configure.util-linux 2,018,816 0 0 0 39,128 0 17,077 1,098 osh-native
6 no-host configure.yash 256,146 0 0 0 4,120 0 872 73 bash
14 no-host configure.yash 243,565 0 0 0 3,720 0 867 80 dash
22 no-host configure.yash 384,839 0 0 0 3,728 0 860 88 osh-cpython
30 no-host configure.yash 259,135 0 0 0 3,736 0 854 86 osh-native
0 no-host hello-world 149 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,666 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-fcbe1b3c
dash dash-308ec8e6
osh-cpython osh-07b114fd
osh-native osh-f12403d4
host label host id
no-host no-host-13226fd6