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 475 23 25.23 1.20
bin-true no-host 679 543 2,247 824 3.31 1.21
configure.cpython no-host 15,037 15,034 28,407 15,372 1.89 1.02
configure.ocaml no-host 3,783 3,744 4,714 3,820 1.25 1.01
configure.tcc no-host 48 42 196 51 4.06 1.06
configure.util-linux no-host 13,909 14,796 31,563 14,465 2.27 1.04
configure.yash no-host 1,804 1,797 2,495 1,842 1.38 1.02
hello-world no-host 1 1 48 3 33.36 1.97

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,547 1,084 23,392 3,247 9.18 1.27
bin-true no-host 105,367 65,440 753,428 127,176 7.15 1.21
configure.cpython no-host 2,222,755 2,242,592 6,143,223 2,243,127 2.76 1.01
configure.ocaml no-host 410,342 391,382 637,982 413,977 1.55 1.01
configure.tcc no-host 6,537 5,487 23,196 6,966 3.55 1.07
configure.util-linux no-host 2,099,418 2,257,143 5,319,341 2,013,370 2.53 0.96
configure.yash no-host 255,997 245,047 386,238 258,161 1.51 1.01
hello-world no-host 151 82 3,657 347 24.22 2.30

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.9 5.00 2.06
bin-true no-host 2.9 1.6 17.3 8.1 6.00 2.82
configure.cpython no-host 27.4 27.1 27.4 27.5 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.4 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.0 30.1 30.0 1.00 1.00
configure.yash no-host 24.5 24.2 24.4 24.5 0.99 1.00
hello-world no-host 2.6 1.4 17.2 6.0 6.55 2.30

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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 824 1 2 2.7 8.1 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,372 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,465 3 59 22.2 30.0 2,703,267 44,765 65,811 126,121 1,320,494 1,256,652 49,081 41 131,622 1
configure.ocaml no-host 3,820 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 51 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,842 1 2 2.6 24.5 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 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 14 5 4.3 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 475 441 37 21.6 osh-cpython
31 no-host abuild-print-help 23 17 6 8.9 osh-native
1 no-host bin-true 679 513 197 2.9 bash
9 no-host bin-true 543 419 134 1.6 dash
17 no-host bin-true 2,247 1,487 1,032 17.3 osh-cpython
25 no-host bin-true 824 598 240 8.1 osh-native
2 no-host configure.cpython 15,037 9,197 6,229 27.4 bash
10 no-host configure.cpython 15,034 9,164 6,287 27.1 dash
18 no-host configure.cpython 28,407 17,513 12,707 27.4 osh-cpython
26 no-host configure.cpython 15,372 8,938 6,701 27.5 osh-native
4 no-host configure.ocaml 3,783 1,543 1,279 20.6 bash
12 no-host configure.ocaml 3,744 1,625 1,138 20.4 dash
20 no-host configure.ocaml 4,714 2,248 1,672 20.6 osh-cpython
28 no-host configure.ocaml 3,820 1,662 1,196 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 42 30 13 19.4 dash
21 no-host configure.tcc 196 133 66 19.3 osh-cpython
29 no-host configure.tcc 51 38 13 19.4 osh-native
3 no-host configure.util-linux 13,909 8,825 5,556 30.0 bash
11 no-host configure.util-linux 14,796 9,037 6,242 30.0 dash
19 no-host configure.util-linux 31,563 21,356 11,274 30.1 osh-cpython
27 no-host configure.util-linux 14,465 8,686 5,970 30.0 osh-native
6 no-host configure.yash 1,804 1,057 757 24.5 bash
14 no-host configure.yash 1,797 1,092 708 24.2 dash
22 no-host configure.yash 2,495 1,580 959 24.4 osh-cpython
30 no-host configure.yash 1,842 1,045 800 24.5 osh-native
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 34 13 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,547 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,084 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,392 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,247 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 105,367 0 0 0 8 0 1,994 101 bash
9 no-host bin-true 65,440 0 0 0 8 0 1,990 80 dash
17 no-host bin-true 753,428 0 0 0 8 0 1,995 106 osh-cpython
25 no-host bin-true 127,176 0 0 0 16 0 1,983 61 osh-native
2 no-host configure.cpython 2,222,755 0 0 0 32,928 0 14,512 1,065 bash
10 no-host configure.cpython 2,242,592 0 0 0 32,992 0 14,601 1,121 dash
18 no-host configure.cpython 6,143,223 0 0 0 27,512 0 13,263 1,168 osh-cpython
26 no-host configure.cpython 2,243,127 0 0 0 27,520 0 13,289 1,123 osh-native
4 no-host configure.ocaml 410,342 0 0 0 5,120 0 1,937 171 bash
12 no-host configure.ocaml 391,382 0 0 0 5,112 0 1,925 179 dash
20 no-host configure.ocaml 637,982 0 0 0 5,112 0 1,859 157 osh-cpython
28 no-host configure.ocaml 413,977 0 0 0 5,120 0 1,934 164 osh-native
5 no-host configure.tcc 6,537 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,196 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,966 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,099,418 0 0 0 42,408 0 18,496 1,014 bash
11 no-host configure.util-linux 2,257,143 2 0 0 42,592 0 17,421 1,111 dash
19 no-host configure.util-linux 5,319,341 11 0 0 39,112 0 17,024 1,296 osh-cpython
27 no-host configure.util-linux 2,013,370 2 0 0 39,128 0 17,034 1,096 osh-native
6 no-host configure.yash 255,997 0 0 0 4,120 0 868 93 bash
14 no-host configure.yash 245,047 0 0 0 3,720 0 868 87 dash
22 no-host configure.yash 386,238 0 0 0 3,728 0 858 110 osh-cpython
30 no-host configure.yash 258,161 0 0 0 3,736 0 854 91 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,657 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-4cf265f6
dash dash-308ec8e6
osh-cpython osh-66af33cb
osh-native osh-aac1c49a
host label host id
no-host no-host-13226fd6