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 451 22 23.97 1.18
bin-true no-host 664 536 2,214 812 3.33 1.22
configure.cpython no-host 14,780 14,844 28,099 15,057 1.90 1.02
configure.ocaml no-host 3,751 3,702 4,572 3,774 1.22 1.01
configure.tcc no-host 47 41 192 50 4.05 1.05
configure.util-linux no-host 13,833 14,688 30,822 14,237 2.23 1.03
configure.yash no-host 1,830 1,740 2,402 1,802 1.31 0.98
hello-world no-host 1 1 47 3 32.80 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,548 1,087 23,503 3,213 9.22 1.26
bin-true no-host 103,387 66,509 743,409 128,227 7.19 1.24
configure.cpython no-host 2,222,263 2,242,065 6,125,387 2,245,194 2.76 1.01
configure.ocaml no-host 410,589 391,185 639,053 413,318 1.56 1.01
configure.tcc no-host 6,551 5,466 23,188 6,968 3.54 1.06
configure.util-linux no-host 2,095,973 2,261,095 5,306,323 2,013,114 2.53 0.96
configure.yash no-host 255,818 245,116 383,015 258,120 1.50 1.01
hello-world no-host 151 85 3,663 346 24.26 2.29

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.8 8.8 4.88 1.97
bin-true no-host 2.9 1.4 17.4 7.9 6.05 2.73
configure.cpython no-host 27.4 27.1 27.4 27.4 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.1 29.9 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.2 6.33 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,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 7.9 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 15,057 1 58 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,237 2 58 22.2 30.0 2,703,274 42,775 65,816 126,121 1,320,501 1,256,652 49,081 41 131,632 1
configure.ocaml no-host 3,774 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,802 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 6 13 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 451 409 45 21.8 osh-cpython
31 no-host abuild-print-help 22 18 4 8.8 osh-native
1 no-host bin-true 664 493 203 2.9 bash
9 no-host bin-true 536 405 140 1.4 dash
17 no-host bin-true 2,214 1,471 992 17.4 osh-cpython
25 no-host bin-true 812 603 225 7.9 osh-native
2 no-host configure.cpython 14,780 8,891 6,289 27.4 bash
10 no-host configure.cpython 14,844 9,055 6,208 27.1 dash
18 no-host configure.cpython 28,099 17,218 12,669 27.4 osh-cpython
26 no-host configure.cpython 15,057 8,877 6,445 27.4 osh-native
4 no-host configure.ocaml 3,751 1,546 1,246 20.6 bash
12 no-host configure.ocaml 3,702 1,582 1,139 20.6 dash
20 no-host configure.ocaml 4,572 2,270 1,500 20.6 osh-cpython
28 no-host configure.ocaml 3,774 1,589 1,223 20.6 osh-native
5 no-host configure.tcc 47 42 6 19.3 bash
13 no-host configure.tcc 41 23 18 19.3 dash
21 no-host configure.tcc 192 140 55 19.3 osh-cpython
29 no-host configure.tcc 50 29 21 19.3 osh-native
3 no-host configure.util-linux 13,833 8,763 5,509 30.1 bash
11 no-host configure.util-linux 14,688 9,081 6,104 29.9 dash
19 no-host configure.util-linux 30,822 20,647 11,226 30.3 osh-cpython
27 no-host configure.util-linux 14,237 8,661 5,774 30.0 osh-native
6 no-host configure.yash 1,830 1,084 739 24.4 bash
14 no-host configure.yash 1,740 1,000 743 24.2 dash
22 no-host configure.yash 2,402 1,501 943 24.2 osh-cpython
30 no-host configure.yash 1,802 1,028 778 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 28 19 17.4 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,548 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,087 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,503 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 103,387 0 0 0 8 0 1,994 88 bash
9 no-host bin-true 66,509 0 0 0 8 0 1,993 59 dash
17 no-host bin-true 743,409 0 0 0 8 0 1,993 192 osh-cpython
25 no-host bin-true 128,227 0 0 0 16 0 1,987 51 osh-native
2 no-host configure.cpython 2,222,263 1 0 0 32,928 0 14,451 1,088 bash
10 no-host configure.cpython 2,242,065 0 0 0 32,992 0 14,527 1,068 dash
18 no-host configure.cpython 6,125,387 0 0 0 27,512 0 13,314 1,157 osh-cpython
26 no-host configure.cpython 2,245,194 0 0 0 27,520 0 13,309 1,213 osh-native
4 no-host configure.ocaml 410,589 0 0 0 5,120 0 1,945 173 bash
12 no-host configure.ocaml 391,185 0 0 0 5,112 0 1,868 146 dash
20 no-host configure.ocaml 639,053 0 0 0 5,112 0 1,861 183 osh-cpython
28 no-host configure.ocaml 413,318 0 0 0 5,120 0 1,916 168 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 48 0 bash
13 no-host configure.tcc 5,466 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,188 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,095,973 0 0 0 42,400 0 18,600 1,030 bash
11 no-host configure.util-linux 2,261,095 1 0 0 42,584 0 17,398 1,081 dash
19 no-host configure.util-linux 5,306,323 11 0 0 39,112 0 17,163 1,176 osh-cpython
27 no-host configure.util-linux 2,013,114 4 0 0 39,120 0 17,086 1,026 osh-native
6 no-host configure.yash 255,818 0 0 0 4,120 0 889 111 bash
14 no-host configure.yash 245,116 0 0 0 3,720 0 867 75 dash
22 no-host configure.yash 383,015 0 0 0 3,728 0 857 86 osh-cpython
30 no-host configure.yash 258,120 0 0 0 3,736 0 852 90 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,663 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-47a9bd69
dash dash-308ec8e6
osh-cpython osh-dd358072
osh-native osh-b988c060
host label host id
no-host no-host-1c33b689