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.60 1.16
bin-true no-host 676 542 2,230 815 3.30 1.21
configure.cpython no-host 15,050 15,121 28,501 15,287 1.89 1.02
configure.ocaml no-host 3,810 3,728 4,633 3,840 1.22 1.01
configure.tcc no-host 48 42 191 50 4.02 1.05
configure.util-linux no-host 14,066 14,855 31,021 14,444 2.21 1.03
configure.yash no-host 1,840 1,773 2,442 1,852 1.33 1.01
hello-world no-host 2 1 48 3 29.10 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,515 1,084 23,416 3,221 9.31 1.28
bin-true no-host 104,282 65,353 752,366 127,179 7.21 1.22
configure.cpython no-host 2,216,072 2,239,432 6,140,586 2,234,079 2.77 1.01
configure.ocaml no-host 410,436 391,159 638,858 413,931 1.56 1.01
configure.tcc no-host 6,568 5,480 23,212 6,969 3.53 1.06
configure.util-linux no-host 2,104,476 2,256,247 5,312,174 2,007,060 2.52 0.95
configure.yash no-host 256,777 243,975 386,273 258,002 1.50 1.00
hello-world no-host 154 83 3,657 348 23.75 2.26

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 7.9 5.74 2.61
configure.cpython no-host 27.4 27.1 27.4 27.5 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.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.2 1.01 1.00
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 815 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,287 1 61 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,444 3 60 22.2 30.0 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,840 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,852 1 2 2.6 24.2 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 13 6 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 451 411 44 21.5 osh-cpython
31 no-host abuild-print-help 22 21 2 8.8 osh-native
1 no-host bin-true 676 524 184 3.0 bash
9 no-host bin-true 542 410 142 1.4 dash
17 no-host bin-true 2,230 1,495 991 17.3 osh-cpython
25 no-host bin-true 815 558 272 7.9 osh-native
2 no-host configure.cpython 15,050 9,048 6,401 27.4 bash
10 no-host configure.cpython 15,121 9,170 6,367 27.1 dash
18 no-host configure.cpython 28,501 17,446 12,865 27.4 osh-cpython
26 no-host configure.cpython 15,287 8,989 6,563 27.5 osh-native
4 no-host configure.ocaml 3,810 1,675 1,175 20.6 bash
12 no-host configure.ocaml 3,728 1,578 1,167 20.6 dash
20 no-host configure.ocaml 4,633 2,233 1,602 20.6 osh-cpython
28 no-host configure.ocaml 3,840 1,682 1,196 20.6 osh-native
5 no-host configure.tcc 48 30 18 19.3 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 191 140 54 19.3 osh-cpython
29 no-host configure.tcc 50 33 17 19.4 osh-native
3 no-host configure.util-linux 14,066 8,986 5,574 30.1 bash
11 no-host configure.util-linux 14,855 9,108 6,233 30.1 dash
19 no-host configure.util-linux 31,021 20,697 11,400 30.1 osh-cpython
27 no-host configure.util-linux 14,444 8,723 5,914 30.0 osh-native
6 no-host configure.yash 1,840 1,032 813 24.2 bash
14 no-host configure.yash 1,773 1,050 726 24.4 dash
22 no-host configure.yash 2,442 1,465 1,019 24.5 osh-cpython
30 no-host configure.yash 1,852 1,078 778 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 32 16 17.3 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,515 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,084 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,416 0 0 0 8 0 47 13 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,282 0 0 0 8 0 1,988 111 bash
9 no-host bin-true 65,353 0 0 0 8 0 1,991 48 dash
17 no-host bin-true 752,366 0 0 0 8 0 1,991 203 osh-cpython
25 no-host bin-true 127,179 0 0 0 16 0 1,992 58 osh-native
2 no-host configure.cpython 2,216,072 0 0 0 32,928 0 14,420 1,038 bash
10 no-host configure.cpython 2,239,432 0 0 0 32,992 0 14,625 1,198 dash
18 no-host configure.cpython 6,140,586 1 0 0 27,512 0 13,183 1,153 osh-cpython
26 no-host configure.cpython 2,234,079 0 0 0 27,520 0 13,239 1,056 osh-native
4 no-host configure.ocaml 410,436 0 0 0 5,120 0 1,947 187 bash
12 no-host configure.ocaml 391,159 0 0 0 5,112 0 1,870 164 dash
20 no-host configure.ocaml 638,858 0 0 0 5,112 0 1,861 175 osh-cpython
28 no-host configure.ocaml 413,931 0 0 0 5,120 0 1,929 164 osh-native
5 no-host configure.tcc 6,568 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,212 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,104,476 0 0 0 42,400 0 18,598 1,125 bash
11 no-host configure.util-linux 2,256,247 0 0 0 42,592 0 17,466 1,098 dash
19 no-host configure.util-linux 5,312,174 6 0 0 39,112 0 17,051 1,334 osh-cpython
27 no-host configure.util-linux 2,007,060 1 0 0 39,120 0 17,048 1,163 osh-native
6 no-host configure.yash 256,777 0 0 0 4,120 0 880 75 bash
14 no-host configure.yash 243,975 0 0 0 3,720 0 867 76 dash
22 no-host configure.yash 386,273 0 0 0 3,728 0 854 82 osh-cpython
30 no-host configure.yash 258,002 0 0 0 3,736 0 851 97 osh-native
0 no-host hello-world 154 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,657 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-d314acf7
dash dash-308ec8e6
osh-cpython osh-e13f65a6
osh-native osh-446aae31
host label host id
no-host no-host-13226fd6