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 18 9 475 22 20 25.73 1.19
bin-true no-host 655 530 2,358 789 795 3.60 1.21
configure.cpython no-host 14,673 14,758 28,888 14,922 15,108 1.97 1.02
configure.ocaml no-host 3,785 3,694 4,640 3,777 3,773 1.23 1.00
configure.tcc no-host 46 42 204 48 47 4.45 1.05
configure.util-linux no-host 13,639 14,504 31,757 14,075 13,945 2.33 1.03
configure.yash no-host 1,785 1,766 2,461 1,815 1,802 1.38 1.02
hello-world no-host 1 1 57 3 3 43.21 2.11

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,555 1,074 24,156 3,157 3,096 9.45 1.24
bin-true no-host 107,363 65,413 808,395 129,131 128,132 7.53 1.20
configure.cpython no-host 2,000,669 2,025,134 6,114,095 2,008,974 1,999,802 3.06 1.00
configure.ocaml no-host 373,420 353,940 615,486 376,827 375,997 1.65 1.01
configure.tcc no-host 6,079 5,014 24,023 6,494 6,476 3.95 1.07
configure.util-linux no-host 1,912,194 2,075,060 5,304,730 1,819,843 1,806,547 2.77 0.95
configure.yash no-host 233,466 220,258 369,074 235,855 235,629 1.58 1.01
hello-world no-host 147 76 3,965 348 337 26.97 2.37

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.5 3.5 22.7 8.9 8.3 5.10 2.00
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.38 2.82
configure.cpython no-host 29.1 29.2 29.2 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.6 1.00 0.99
configure.tcc no-host 19.7 19.7 19.7 19.5 19.6 1.00 0.99
configure.util-linux no-host 30.5 30.2 30.2 30.3 30.3 0.99 0.99
configure.yash no-host 26.2 26.4 26.3 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.6 18.4 6.3 5.8 6.68 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.3 6.3 3,805 3,805 0 699 1,871 1,235 2 0 50,000 0
bin-true no-host 789 1 2 2.6 8.1 153,772 12,413 2,901 8,751 76,338 68,683 3,008 3 50,000 0
configure.cpython no-host 14,922 1 64 15.3 29.1 1,773,763 49,828 28,526 91,504 881,466 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,075 3 63 21.6 30.3 2,704,674 53,757 65,725 114,371 1,293,958 1,296,345 32,241 41 131,450 1
configure.ocaml no-host 3,777 1 2 2.6 22.5 149,788 11,154 5,221 7,732 70,845 71,211 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,573 30,573 0 1,541 14,636 14,396 271 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 26.3 139,684 8,041 6,700 6,393 68,254 65,037 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,321 64,419 42,627 4,543 54,455 57,323 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.8 3,804 3,804 0 700 1,871 1,233 2 0 50,000 0
bin-true no-host 795 1 2 2.6 7.6 153,771 12,332 2,896 8,752 76,338 68,681 3,008 3 50,000 0
configure.cpython no-host 15,108 1 64 15.3 29.2 1,773,762 49,823 28,521 91,505 881,466 800,791 25,736 60 50,000 0
configure.util-linux no-host 13,945 3 63 21.6 30.3 2,704,674 53,734 65,720 114,373 1,293,958 1,296,343 32,241 41 131,440 1
configure.ocaml no-host 3,773 1 2 2.6 22.6 149,788 11,149 5,216 7,734 70,845 71,209 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,573 30,573 0 1,543 14,636 14,394 271 0 50,000 0
configure.yash no-host 1,802 1 2 2.6 26.4 139,684 8,030 6,689 6,395 68,254 65,035 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.3 116,320 64,414 42,622 4,544 54,455 57,321 277 3 85,244 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 18 10 9 4.5 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 475 419 59 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
39 no-host abuild-print-help 20 9 12 8.3 osh-native-souffle
1 no-host bin-true 655 300 390 2.9 bash
9 no-host bin-true 530 281 259 1.4 dash
17 no-host bin-true 2,358 777 1,841 18.4 osh-cpython
25 no-host bin-true 789 291 516 8.1 osh-native
33 no-host bin-true 795 275 535 7.6 osh-native-souffle
2 no-host configure.cpython 14,673 6,594 8,497 29.1 bash
10 no-host configure.cpython 14,758 6,747 8,448 29.2 dash
18 no-host configure.cpython 28,888 14,243 16,558 29.2 osh-cpython
26 no-host configure.cpython 14,922 6,486 8,718 29.1 osh-native
34 no-host configure.cpython 15,108 6,576 8,644 29.2 osh-native-souffle
4 no-host configure.ocaml 3,785 1,357 1,461 22.6 bash
12 no-host configure.ocaml 3,694 1,314 1,400 22.6 dash
20 no-host configure.ocaml 4,640 1,872 1,986 22.6 osh-cpython
28 no-host configure.ocaml 3,777 1,358 1,460 22.5 osh-native
36 no-host configure.ocaml 3,773 1,334 1,479 22.6 osh-native-souffle
5 no-host configure.tcc 46 21 25 19.7 bash
13 no-host configure.tcc 42 18 24 19.7 dash
21 no-host configure.tcc 204 132 75 19.7 osh-cpython
29 no-host configure.tcc 48 23 26 19.5 osh-native
37 no-host configure.tcc 47 20 27 19.6 osh-native-souffle
3 no-host configure.util-linux 13,639 5,871 8,267 30.5 bash
11 no-host configure.util-linux 14,504 5,885 9,147 30.2 dash
19 no-host configure.util-linux 31,757 17,990 14,897 30.2 osh-cpython
27 no-host configure.util-linux 14,075 5,589 8,702 30.3 osh-native
35 no-host configure.util-linux 13,945 5,567 8,600 30.3 osh-native-souffle
6 no-host configure.yash 1,785 937 858 26.2 bash
14 no-host configure.yash 1,766 884 886 26.4 dash
22 no-host configure.yash 2,461 1,366 1,138 26.3 osh-cpython
30 no-host configure.yash 1,815 892 928 26.3 osh-native
38 no-host configure.yash 1,802 911 896 26.4 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 36 22 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 1 1 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,555 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,074 0 0 0 8 0 39 3 dash
23 no-host abuild-print-help 24,156 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,157 0 0 0 16 0 38 5 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 107,363 0 0 0 8 0 1,977 211 bash
9 no-host bin-true 65,413 0 0 0 8 0 1,978 130 dash
17 no-host bin-true 808,395 0 0 0 8 0 1,983 147 osh-cpython
25 no-host bin-true 129,131 0 0 0 16 0 1,986 104 osh-native
33 no-host bin-true 128,132 0 0 0 16 0 1,979 191 osh-native-souffle
2 no-host configure.cpython 2,000,669 0 0 0 32,928 0 14,302 1,199 bash
10 no-host configure.cpython 2,025,134 0 0 0 32,992 0 14,348 1,291 dash
18 no-host configure.cpython 6,114,095 0 0 0 27,512 0 13,042 1,109 osh-cpython
26 no-host configure.cpython 2,008,974 1 0 0 27,520 0 13,117 1,095 osh-native
34 no-host configure.cpython 1,999,802 0 0 0 27,520 0 13,040 1,053 osh-native-souffle
4 no-host configure.ocaml 373,420 0 0 0 5,120 0 1,963 175 bash
12 no-host configure.ocaml 353,940 0 0 0 5,112 0 1,942 185 dash
20 no-host configure.ocaml 615,486 0 0 0 5,112 0 1,848 187 osh-cpython
28 no-host configure.ocaml 376,827 0 0 0 5,120 0 1,924 206 osh-native
36 no-host configure.ocaml 375,997 0 0 0 5,120 0 1,929 191 osh-native-souffle
5 no-host configure.tcc 6,079 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,014 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,023 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,494 0 0 0 104 0 47 11 osh-native
37 no-host configure.tcc 6,476 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,912,194 0 0 0 42,400 0 18,361 1,150 bash
11 no-host configure.util-linux 2,075,060 4 0 0 42,584 0 17,325 1,352 dash
19 no-host configure.util-linux 5,304,730 9 0 0 39,144 0 17,114 1,464 osh-cpython
27 no-host configure.util-linux 1,819,843 0 0 0 39,120 0 17,011 1,128 osh-native
35 no-host configure.util-linux 1,806,547 0 0 0 39,128 0 16,980 1,282 osh-native-souffle
6 no-host configure.yash 233,466 0 0 0 4,120 0 868 92 bash
14 no-host configure.yash 220,258 0 0 0 3,720 0 866 89 dash
22 no-host configure.yash 369,074 0 0 0 3,728 0 852 104 osh-cpython
30 no-host configure.yash 235,855 0 0 0 3,736 0 849 94 osh-native
38 no-host configure.yash 235,629 0 0 0 3,736 0 848 109 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,965 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-36a13467
dash dash-0ebcf347
osh-cpython osh-b974708c
osh-native osh-952ed7ee
osh-native-souffle osh-112b259a
host label host id
no-host no-host-e4839999