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 449 22 23.87 1.18
bin-true no-host 668 543 2,210 818 3.31 1.22
configure.cpython no-host 14,976 14,874 28,062 15,054 1.87 1.01
configure.ocaml no-host 3,772 3,697 4,559 3,816 1.21 1.01
configure.tcc no-host 47 41 191 49 4.04 1.03
configure.util-linux no-host 13,834 14,700 30,683 14,229 2.22 1.03
configure.yash no-host 1,785 1,746 2,400 1,806 1.34 1.01
hello-world no-host 2 1 47 3 29.13 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,522 1,113 23,225 3,222 9.21 1.28
bin-true no-host 104,312 65,367 746,074 126,193 7.15 1.21
configure.cpython no-host 2,225,219 2,241,747 6,120,771 2,234,335 2.75 1.00
configure.ocaml no-host 410,442 391,102 637,092 413,410 1.55 1.01
configure.tcc no-host 6,545 5,485 23,134 6,967 3.53 1.06
configure.util-linux no-host 2,097,769 2,256,048 5,328,152 2,014,055 2.54 0.96
configure.yash no-host 256,079 244,103 384,755 259,040 1.50 1.01
hello-world no-host 149 84 3,655 347 24.53 2.33

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.6 8.8 5.00 2.03
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.5 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.4 0.99 0.99
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.6 17.2 6.0 6.24 2.19

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.0 3,723 3,723 0 684 1,875 1,164 2 0 50,000 0
bin-true no-host 818 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,054 1 58 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,229 2 57 22.2 30.1 2,703,268 44,766 65,812 126,121 1,320,495 1,256,652 49,081 41 131,624 1
configure.ocaml no-host 3,816 1 2 2.7 20.4 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.3 30,523 30,523 0 1,599 14,799 14,125 350 0 50,000 0
configure.yash no-host 1,806 1 2 2.6 24.4 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 8.8 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 2 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 449 402 51 21.6 osh-cpython
31 no-host abuild-print-help 22 17 5 8.8 osh-native
1 no-host bin-true 668 487 213 2.9 bash
9 no-host bin-true 543 425 128 1.4 dash
17 no-host bin-true 2,210 1,482 980 17.3 osh-cpython
25 no-host bin-true 818 585 246 8.1 osh-native
2 no-host configure.cpython 14,976 9,017 6,191 27.5 bash
10 no-host configure.cpython 14,874 9,152 6,143 27.5 dash
18 no-host configure.cpython 28,062 17,100 12,757 27.4 osh-cpython
26 no-host configure.cpython 15,054 8,949 6,376 27.4 osh-native
4 no-host configure.ocaml 3,772 1,582 1,225 20.6 bash
12 no-host configure.ocaml 3,697 1,557 1,161 20.6 dash
20 no-host configure.ocaml 4,559 2,280 1,479 20.4 osh-cpython
28 no-host configure.ocaml 3,816 1,638 1,216 20.4 osh-native
5 no-host configure.tcc 47 26 22 19.4 bash
13 no-host configure.tcc 41 25 17 19.3 dash
21 no-host configure.tcc 191 145 49 19.3 osh-cpython
29 no-host configure.tcc 49 38 11 19.3 osh-native
3 no-host configure.util-linux 13,834 8,949 5,354 30.3 bash
11 no-host configure.util-linux 14,700 9,064 6,134 30.0 dash
19 no-host configure.util-linux 30,683 20,706 11,034 30.3 osh-cpython
27 no-host configure.util-linux 14,229 8,645 5,781 30.1 osh-native
6 no-host configure.yash 1,785 1,070 724 24.2 bash
14 no-host configure.yash 1,746 977 773 24.4 dash
22 no-host configure.yash 2,400 1,480 961 24.4 osh-cpython
30 no-host configure.yash 1,806 1,006 804 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 31 15 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,522 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,113 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,225 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,222 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,312 0 0 0 8 0 1,992 49 bash
9 no-host bin-true 65,367 0 0 0 8 0 1,992 40 dash
17 no-host bin-true 746,074 0 0 0 8 0 1,997 128 osh-cpython
25 no-host bin-true 126,193 0 0 0 16 0 1,991 233 osh-native
2 no-host configure.cpython 2,225,219 0 0 0 32,928 0 14,418 1,065 bash
10 no-host configure.cpython 2,241,747 5 0 0 32,992 0 14,594 962 dash
18 no-host configure.cpython 6,120,771 3 0 0 27,512 0 13,336 1,160 osh-cpython
26 no-host configure.cpython 2,234,335 0 0 0 27,520 0 13,316 1,249 osh-native
4 no-host configure.ocaml 410,442 0 0 0 5,120 0 1,959 172 bash
12 no-host configure.ocaml 391,102 0 0 0 5,112 0 1,936 146 dash
20 no-host configure.ocaml 637,092 0 0 0 5,112 0 1,859 173 osh-cpython
28 no-host configure.ocaml 413,410 0 0 0 5,120 0 1,935 178 osh-native
5 no-host configure.tcc 6,545 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,134 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,967 0 0 0 104 0 47 11 osh-native
3 no-host configure.util-linux 2,097,769 0 0 0 42,400 0 18,594 1,072 bash
11 no-host configure.util-linux 2,256,048 2 0 0 42,584 0 17,475 1,147 dash
19 no-host configure.util-linux 5,328,152 8 0 0 39,112 0 17,015 1,324 osh-cpython
27 no-host configure.util-linux 2,014,055 0 0 0 39,120 0 17,055 996 osh-native
6 no-host configure.yash 256,079 0 0 0 4,120 0 871 73 bash
14 no-host configure.yash 244,103 0 0 0 3,720 0 870 80 dash
22 no-host configure.yash 384,755 0 0 0 3,728 0 858 84 osh-cpython
30 no-host configure.yash 259,040 0 0 0 3,736 0 852 72 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-52cc3506
dash dash-308ec8e6
osh-cpython osh-65d00a99
osh-native osh-b45ef99c
host label host id
no-host no-host-13226fd6