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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 468 22 21 24.58 1.16
bin-true no-host 665 551 2,270 812 811 3.41 1.22
configure.cpython no-host 15,174 15,313 29,057 15,383 15,534 1.91 1.01
configure.ocaml no-host 3,833 3,771 4,628 3,850 3,837 1.21 1.00
configure.tcc no-host 48 41 208 48 49 4.33 1.01
configure.util-linux no-host 14,240 15,050 31,473 14,562 14,367 2.21 1.02
configure.yash no-host 1,828 1,740 2,522 1,850 1,846 1.38 1.01
hello-world no-host 1 1 56 3 3 37.52 1.93

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,506 1,140 23,840 3,178 3,130 9.51 1.27
bin-true no-host 106,301 66,413 768,609 127,247 124,268 7.23 1.20
configure.cpython no-host 2,220,321 2,234,458 6,245,923 2,215,480 2,210,433 2.81 1.00
configure.ocaml no-host 410,805 391,087 647,525 413,445 412,744 1.58 1.01
configure.tcc no-host 6,575 5,473 24,109 6,987 6,910 3.67 1.06
configure.util-linux no-host 2,099,058 2,264,539 5,391,547 1,998,869 1,988,651 2.57 0.95
configure.yash no-host 256,498 244,483 387,884 257,986 257,432 1.51 1.01
hello-world no-host 151 81 3,939 345 339 26.09 2.28

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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.6 9.0 8.7 5.22 2.09
bin-true no-host 2.9 1.6 18.4 8.1 7.6 6.37 2.82
configure.cpython no-host 27.4 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.4 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 2.29

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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,383 1 63 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,562 3 61 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,850 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,850 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,534 1 62 14.9 27.3 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,367 2 59 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,837 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 10 5 5 3.5 dash
23 no-host abuild-print-help 468 404 66 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 665 498 200 2.9 bash
9 no-host bin-true 551 414 144 1.6 dash
17 no-host bin-true 2,270 1,448 1,074 18.4 osh-cpython
25 no-host bin-true 812 603 224 8.1 osh-native
33 no-host bin-true 811 576 249 7.6 osh-native-souffle
2 no-host configure.cpython 15,174 8,942 6,635 27.4 bash
10 no-host configure.cpython 15,313 9,200 6,518 27.4 dash
18 no-host configure.cpython 29,057 17,726 13,226 27.4 osh-cpython
26 no-host configure.cpython 15,383 9,023 6,631 27.4 osh-native
34 no-host configure.cpython 15,534 9,010 6,667 27.3 osh-native-souffle
4 no-host configure.ocaml 3,833 1,617 1,254 20.6 bash
12 no-host configure.ocaml 3,771 1,576 1,214 20.6 dash
20 no-host configure.ocaml 4,628 2,227 1,607 20.4 osh-cpython
28 no-host configure.ocaml 3,850 1,704 1,186 20.6 osh-native
36 no-host configure.ocaml 3,837 1,612 1,261 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 41 27 14 19.3 dash
21 no-host configure.tcc 208 144 67 19.3 osh-cpython
29 no-host configure.tcc 48 21 28 19.4 osh-native
37 no-host configure.tcc 49 25 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,240 8,944 5,751 30.1 bash
11 no-host configure.util-linux 15,050 9,131 6,413 30.4 dash
19 no-host configure.util-linux 31,473 20,819 11,748 30.3 osh-cpython
27 no-host configure.util-linux 14,562 8,811 5,963 30.3 osh-native
35 no-host configure.util-linux 14,367 8,593 5,969 30.1 osh-native-souffle
6 no-host configure.yash 1,828 1,047 791 24.2 bash
14 no-host configure.yash 1,740 1,021 723 24.4 dash
22 no-host configure.yash 2,522 1,549 1,017 24.2 osh-cpython
30 no-host configure.yash 1,850 1,036 818 24.2 osh-native
38 no-host configure.yash 1,846 1,032 817 24.4 osh-native-souffle
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 56 28 27 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

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,506 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,140 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,840 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,130 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,301 0 0 0 8 0 1,990 37 bash
9 no-host bin-true 66,413 0 0 0 8 0 1,981 47 dash
17 no-host bin-true 768,609 0 0 0 8 0 1,995 191 osh-cpython
25 no-host bin-true 127,247 0 0 0 16 0 1,994 39 osh-native
33 no-host bin-true 124,268 0 0 0 16 0 1,983 85 osh-native-souffle
2 no-host configure.cpython 2,220,321 1 0 0 32,928 0 14,518 996 bash
10 no-host configure.cpython 2,234,458 0 0 0 32,992 0 14,631 1,138 dash
18 no-host configure.cpython 6,245,923 1 0 0 27,512 0 13,224 1,102 osh-cpython
26 no-host configure.cpython 2,215,480 0 0 0 27,520 0 13,248 1,020 osh-native
34 no-host configure.cpython 2,210,433 0 0 0 27,520 0 13,157 920 osh-native-souffle
4 no-host configure.ocaml 410,805 0 0 0 5,120 0 1,945 159 bash
12 no-host configure.ocaml 391,087 0 0 0 5,112 0 1,912 123 dash
20 no-host configure.ocaml 647,525 0 0 0 5,112 0 1,854 203 osh-cpython
28 no-host configure.ocaml 413,445 0 0 0 5,120 0 1,924 180 osh-native
36 no-host configure.ocaml 412,744 0 0 0 5,120 0 1,929 151 osh-native-souffle
5 no-host configure.tcc 6,575 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,109 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,910 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,099,058 1 0 0 42,400 0 18,563 1,079 bash
11 no-host configure.util-linux 2,264,539 0 0 0 42,584 0 17,472 1,132 dash
19 no-host configure.util-linux 5,391,547 14 0 0 39,152 0 16,967 1,339 osh-cpython
27 no-host configure.util-linux 1,998,869 0 0 0 39,120 0 17,058 1,035 osh-native
35 no-host configure.util-linux 1,988,651 0 0 0 39,128 0 16,962 997 osh-native-souffle
6 no-host configure.yash 256,498 0 0 0 4,120 0 870 77 bash
14 no-host configure.yash 244,483 0 0 0 3,720 0 868 75 dash
22 no-host configure.yash 387,884 0 0 0 3,728 0 851 98 osh-cpython
30 no-host configure.yash 257,986 0 0 0 3,736 0 851 88 osh-native
38 no-host configure.yash 257,432 0 0 0 3,736 0 848 73 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,939 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a7e24080
dash dash-0ebcf347
osh-cpython osh-84ba67b0
osh-native osh-dc219e36
osh-native-souffle osh-ee66f554
host label host id
no-host no-host-556df3ee