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 22 10 451 23 20.94 1.07
bin-true no-host 688 548 2,262 810 3.29 1.18
configure.cpython no-host 15,608 15,790 29,632 15,158 1.90 0.97
configure.ocaml no-host 3,907 3,864 4,568 3,811 1.17 0.98
configure.tcc no-host 50 42 189 50 3.77 1.00
configure.util-linux no-host 14,632 15,487 31,153 14,317 2.13 0.98
configure.yash no-host 1,893 1,847 2,407 1,820 1.27 0.96
hello-world no-host 1 1 50 3 33.22 1.89

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,534 1,109 23,196 3,238 9.15 1.28
bin-true no-host 104,410 65,437 751,091 128,264 7.19 1.23
configure.cpython no-host 2,221,723 2,246,175 6,141,334 2,239,457 2.76 1.01
configure.ocaml no-host 410,872 390,913 637,382 413,254 1.55 1.01
configure.tcc no-host 6,579 5,483 23,242 6,984 3.53 1.06
configure.util-linux no-host 2,100,883 2,257,269 5,330,869 2,015,914 2.54 0.96
configure.yash no-host 256,745 244,669 384,411 257,664 1.50 1.00
hello-world no-host 155 83 3,654 349 23.57 2.25

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.4 21.5 8.8 4.97 2.03
bin-true no-host 3.0 1.4 17.3 8.1 5.74 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.1 19.3 0.99 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 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.9 1.6 17.2 6.2 5.95 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 810 1 2 2.7 8.1 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,158 1 63 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,317 3 62 22.2 30.1 2,703,262 44,762 65,808 126,121 1,320,489 1,256,652 49,081 41 131,616 1
configure.ocaml no-host 3,811 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,820 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 22 13 8 4.3 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 451 412 43 21.5 osh-cpython
31 no-host abuild-print-help 23 18 5 8.8 osh-native
1 no-host bin-true 688 514 206 3.0 bash
9 no-host bin-true 548 412 144 1.4 dash
17 no-host bin-true 2,262 1,442 1,078 17.3 osh-cpython
25 no-host bin-true 810 574 252 8.1 osh-native
2 no-host configure.cpython 15,608 9,250 6,776 27.4 bash
10 no-host configure.cpython 15,790 9,485 6,743 27.4 dash
18 no-host configure.cpython 29,632 18,195 13,352 27.5 osh-cpython
26 no-host configure.cpython 15,158 8,882 6,546 27.4 osh-native
4 no-host configure.ocaml 3,907 1,680 1,267 20.6 bash
12 no-host configure.ocaml 3,864 1,592 1,291 20.4 dash
20 no-host configure.ocaml 4,568 2,174 1,597 20.6 osh-cpython
28 no-host configure.ocaml 3,811 1,563 1,287 20.6 osh-native
5 no-host configure.tcc 50 26 24 19.3 bash
13 no-host configure.tcc 42 20 23 19.3 dash
21 no-host configure.tcc 189 148 44 19.1 osh-cpython
29 no-host configure.tcc 50 29 21 19.3 osh-native
3 no-host configure.util-linux 14,632 9,118 6,006 30.3 bash
11 no-host configure.util-linux 15,487 9,534 6,429 30.1 dash
19 no-host configure.util-linux 31,153 20,922 11,332 30.1 osh-cpython
27 no-host configure.util-linux 14,317 8,696 5,821 30.1 osh-native
6 no-host configure.yash 1,893 1,130 771 24.4 bash
14 no-host configure.yash 1,847 1,123 726 24.2 dash
22 no-host configure.yash 2,407 1,474 974 24.2 osh-cpython
30 no-host configure.yash 1,820 1,108 716 24.4 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 50 33 16 17.2 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,534 0 0 0 16 0 42 2 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,196 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,238 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 104,410 0 0 0 8 0 1,993 73 bash
9 no-host bin-true 65,437 0 0 0 8 0 1,985 42 dash
17 no-host bin-true 751,091 0 0 0 8 0 1,991 243 osh-cpython
25 no-host bin-true 128,264 0 0 0 16 0 1,996 47 osh-native
2 no-host configure.cpython 2,221,723 2 0 0 32,928 0 14,387 1,023 bash
10 no-host configure.cpython 2,246,175 0 0 0 32,992 0 14,566 1,158 dash
18 no-host configure.cpython 6,141,334 0 0 0 27,512 0 13,310 1,131 osh-cpython
26 no-host configure.cpython 2,239,457 0 0 0 27,520 0 13,256 1,021 osh-native
4 no-host configure.ocaml 410,872 0 0 0 5,120 0 1,944 166 bash
12 no-host configure.ocaml 390,913 0 0 0 5,112 0 1,927 129 dash
20 no-host configure.ocaml 637,382 0 0 0 5,112 0 1,867 185 osh-cpython
28 no-host configure.ocaml 413,254 0 0 0 5,120 0 1,938 179 osh-native
5 no-host configure.tcc 6,579 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,242 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,984 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,100,883 0 0 0 42,400 0 18,549 1,092 bash
11 no-host configure.util-linux 2,257,269 0 0 0 42,584 0 17,427 1,091 dash
19 no-host configure.util-linux 5,330,869 9 0 0 39,112 0 17,078 1,292 osh-cpython
27 no-host configure.util-linux 2,015,914 0 0 0 39,120 0 17,098 962 osh-native
6 no-host configure.yash 256,745 0 0 0 4,120 0 866 98 bash
14 no-host configure.yash 244,669 0 0 0 3,720 0 873 238 dash
22 no-host configure.yash 384,411 0 0 0 3,728 0 858 96 osh-cpython
30 no-host configure.yash 257,664 0 0 0 3,736 0 852 81 osh-native
0 no-host hello-world 155 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,654 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-f9290c85
dash dash-308ec8e6
osh-cpython osh-92568a00
osh-native osh-ab4fc887
host label host id
no-host no-host-13226fd6