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 467 22 21 24.11 1.16
bin-true no-host 677 556 2,269 818 816 3.35 1.21
configure.cpython no-host 15,338 15,398 29,231 15,608 15,674 1.91 1.02
configure.ocaml no-host 3,877 3,766 4,771 3,869 3,882 1.23 1.00
configure.tcc no-host 48 43 207 49 49 4.27 1.02
configure.util-linux no-host 14,383 14,996 31,898 14,535 14,605 2.22 1.01
configure.yash no-host 1,883 1,785 2,488 1,850 1,923 1.32 0.98
hello-world no-host 1 1 57 3 3 38.64 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,534 1,102 23,649 3,179 3,090 9.33 1.25
bin-true no-host 105,331 65,415 764,522 125,220 127,264 7.26 1.19
configure.cpython no-host 2,224,624 2,239,254 6,242,568 2,225,771 2,216,880 2.81 1.00
configure.ocaml no-host 410,716 390,780 647,677 413,055 413,117 1.58 1.01
configure.tcc no-host 6,567 5,487 24,123 6,962 6,932 3.67 1.06
configure.util-linux no-host 2,095,676 2,261,064 5,397,958 2,002,654 1,994,857 2.58 0.96
configure.yash no-host 256,011 243,638 389,436 257,295 256,715 1.52 1.01
hello-world no-host 152 83 3,947 344 339 25.97 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.2 3.5 22.5 9.0 8.5 5.36 2.16
bin-true no-host 2.9 1.4 18.4 8.0 7.7 6.37 2.77
configure.cpython no-host 27.3 27.3 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.1 19.4 19.3 0.99 1.01
configure.util-linux no-host 30.0 29.9 30.3 30.3 30.1 1.01 1.01
configure.yash no-host 24.2 24.4 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.8 1.6 18.2 6.3 5.8 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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,608 1 67 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,535 3 63 21.2 30.3 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,869 1 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,850 1 2 2.5 24.4 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.8 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,674 1 63 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,605 3 64 21.2 30.1 2,702,514 53,694 65,630 108,693 1,290,641 1,303,180 32,239 41 131,260 1
configure.ocaml no-host 3,882 1 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,923 1 2 2.5 24.2 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 7 4.2 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 467 423 46 22.5 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.5 osh-native-souffle
1 no-host bin-true 677 509 197 2.9 bash
9 no-host bin-true 556 434 126 1.4 dash
17 no-host bin-true 2,269 1,480 1,052 18.4 osh-cpython
25 no-host bin-true 818 554 277 8.0 osh-native
33 no-host bin-true 816 579 250 7.7 osh-native-souffle
2 no-host configure.cpython 15,338 9,212 6,496 27.3 bash
10 no-host configure.cpython 15,398 9,299 6,535 27.3 dash
18 no-host configure.cpython 29,231 17,415 13,710 27.3 osh-cpython
26 no-host configure.cpython 15,608 9,107 6,764 27.4 osh-native
34 no-host configure.cpython 15,674 8,982 6,718 27.4 osh-native-souffle
4 no-host configure.ocaml 3,877 1,719 1,193 20.6 bash
12 no-host configure.ocaml 3,766 1,639 1,145 20.4 dash
20 no-host configure.ocaml 4,771 2,317 1,674 20.6 osh-cpython
28 no-host configure.ocaml 3,869 1,701 1,207 20.6 osh-native
36 no-host configure.ocaml 3,882 1,657 1,261 20.6 osh-native-souffle
5 no-host configure.tcc 48 32 17 19.3 bash
13 no-host configure.tcc 43 28 15 19.3 dash
21 no-host configure.tcc 207 163 47 19.1 osh-cpython
29 no-host configure.tcc 49 23 27 19.4 osh-native
37 no-host configure.tcc 49 24 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,383 9,091 5,756 30.0 bash
11 no-host configure.util-linux 14,996 9,198 6,288 29.9 dash
19 no-host configure.util-linux 31,898 21,168 11,837 30.3 osh-cpython
27 no-host configure.util-linux 14,535 8,680 6,047 30.3 osh-native
35 no-host configure.util-linux 14,605 8,802 6,014 30.1 osh-native-souffle
6 no-host configure.yash 1,883 1,083 801 24.2 bash
14 no-host configure.yash 1,785 1,081 707 24.4 dash
22 no-host configure.yash 2,488 1,482 1,048 24.4 osh-cpython
30 no-host configure.yash 1,850 1,048 805 24.4 osh-native
38 no-host configure.yash 1,923 1,108 818 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 43 13 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,649 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,179 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,331 0 0 0 8 0 1,988 45 bash
9 no-host bin-true 65,415 0 0 0 8 0 1,990 97 dash
17 no-host bin-true 764,522 0 0 0 8 0 2,002 89 osh-cpython
25 no-host bin-true 125,220 0 0 0 16 0 1,990 133 osh-native
33 no-host bin-true 127,264 0 0 0 16 0 1,990 161 osh-native-souffle
2 no-host configure.cpython 2,224,624 0 0 0 32,928 0 14,496 1,172 bash
10 no-host configure.cpython 2,239,254 0 0 0 32,992 0 14,645 959 dash
18 no-host configure.cpython 6,242,568 0 0 0 27,512 0 13,179 1,117 osh-cpython
26 no-host configure.cpython 2,225,771 0 0 0 27,520 0 13,195 1,087 osh-native
34 no-host configure.cpython 2,216,880 0 0 0 27,520 0 13,278 934 osh-native-souffle
4 no-host configure.ocaml 410,716 0 0 0 5,120 0 1,975 163 bash
12 no-host configure.ocaml 390,780 0 0 0 5,112 0 1,876 150 dash
20 no-host configure.ocaml 647,677 0 0 0 5,112 0 1,854 215 osh-cpython
28 no-host configure.ocaml 413,055 0 0 0 5,120 0 1,928 178 osh-native
36 no-host configure.ocaml 413,117 0 0 0 5,120 0 1,936 157 osh-native-souffle
5 no-host configure.tcc 6,567 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,123 0 0 0 96 0 54 15 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,095,676 0 0 0 42,400 0 18,604 984 bash
11 no-host configure.util-linux 2,261,064 0 0 0 42,584 0 17,451 1,104 dash
19 no-host configure.util-linux 5,397,958 6 0 0 39,120 0 16,969 1,249 osh-cpython
27 no-host configure.util-linux 2,002,654 0 0 0 39,128 0 16,945 943 osh-native
35 no-host configure.util-linux 1,994,857 0 0 0 39,136 0 17,047 944 osh-native-souffle
6 no-host configure.yash 256,011 0 0 0 4,120 0 871 67 bash
14 no-host configure.yash 243,638 0 0 0 3,720 0 874 79 dash
22 no-host configure.yash 389,436 0 0 0 3,728 0 854 105 osh-cpython
30 no-host configure.yash 257,295 0 0 0 3,736 0 850 89 osh-native
38 no-host configure.yash 256,715 0 0 0 3,736 0 850 69 osh-native-souffle
0 no-host hello-world 152 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,947 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 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-e41add81
dash dash-0ebcf347
osh-cpython osh-1782fa08
osh-native osh-dc9cd1c6
osh-native-souffle osh-2b3d5ca4
host label host id
no-host no-host-556df3ee