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 9 469 22 21 24.09 1.12
bin-true no-host 682 551 2,281 824 813 3.35 1.21
configure.cpython no-host 15,291 15,429 29,065 15,315 15,413 1.90 1.00
configure.ocaml no-host 3,867 3,748 4,718 3,840 3,823 1.22 0.99
configure.tcc no-host 48 41 203 49 48 4.21 1.02
configure.util-linux no-host 14,323 15,280 31,893 14,419 14,374 2.23 1.01
configure.yash no-host 1,869 1,762 2,478 1,857 1,825 1.33 0.99
hello-world no-host 2 1 58 3 3 37.54 1.88

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,564 1,110 23,683 3,176 3,100 9.24 1.24
bin-true no-host 105,330 66,434 770,641 128,208 125,311 7.32 1.22
configure.cpython no-host 2,220,775 2,244,680 6,213,173 2,217,679 2,206,502 2.80 1.00
configure.ocaml no-host 410,374 390,922 646,953 412,771 412,475 1.58 1.01
configure.tcc no-host 6,566 5,460 24,085 6,951 6,893 3.67 1.06
configure.util-linux no-host 2,101,740 2,263,913 5,370,484 1,997,032 1,989,775 2.56 0.95
configure.yash no-host 256,299 245,225 388,835 258,008 257,642 1.52 1.01
hello-world no-host 151 83 3,945 342 339 26.13 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.3 3.4 22.8 8.9 8.7 5.28 2.06
bin-true no-host 2.9 1.4 18.2 8.0 7.6 6.32 2.77
configure.cpython no-host 27.5 27.4 27.4 27.3 27.4 1.00 0.99
configure.ocaml no-host 20.6 20.7 20.4 20.4 20.4 0.99 0.99
configure.tcc no-host 19.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.4 6.0 6.0 6.70 2.19

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.0 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,315 1 64 14.9 27.3 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,419 3 61 21.2 30.1 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,840 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,857 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 8.9 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 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,413 1 63 14.9 27.4 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,374 3 62 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,823 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,825 1 2 2.5 24.2 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 14 5 4.3 bash
15 no-host abuild-print-help 9 9 1 3.4 dash
23 no-host abuild-print-help 469 436 36 22.8 osh-cpython
31 no-host abuild-print-help 22 14 8 8.9 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 682 506 206 2.9 bash
9 no-host bin-true 551 418 142 1.4 dash
17 no-host bin-true 2,281 1,544 996 18.2 osh-cpython
25 no-host bin-true 824 589 249 8.0 osh-native
33 no-host bin-true 813 580 247 7.6 osh-native-souffle
2 no-host configure.cpython 15,291 9,108 6,576 27.5 bash
10 no-host configure.cpython 15,429 9,324 6,527 27.4 dash
18 no-host configure.cpython 29,065 17,960 12,989 27.4 osh-cpython
26 no-host configure.cpython 15,315 8,948 6,625 27.3 osh-native
34 no-host configure.cpython 15,413 9,113 6,427 27.4 osh-native-souffle
4 no-host configure.ocaml 3,867 1,673 1,234 20.6 bash
12 no-host configure.ocaml 3,748 1,641 1,126 20.7 dash
20 no-host configure.ocaml 4,718 2,247 1,682 20.4 osh-cpython
28 no-host configure.ocaml 3,840 1,616 1,251 20.4 osh-native
36 no-host configure.ocaml 3,823 1,626 1,234 20.4 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 41 21 20 19.3 dash
21 no-host configure.tcc 203 137 69 19.3 osh-cpython
29 no-host configure.tcc 49 20 29 19.3 osh-native
37 no-host configure.tcc 48 27 22 19.4 osh-native-souffle
3 no-host configure.util-linux 14,323 8,969 5,831 30.1 bash
11 no-host configure.util-linux 15,280 9,278 6,500 30.1 dash
19 no-host configure.util-linux 31,893 21,530 11,487 30.1 osh-cpython
27 no-host configure.util-linux 14,419 8,564 6,011 30.1 osh-native
35 no-host configure.util-linux 14,374 8,671 5,892 30.1 osh-native-souffle
6 no-host configure.yash 1,869 1,026 852 24.4 bash
14 no-host configure.yash 1,762 1,027 740 24.4 dash
22 no-host configure.yash 2,478 1,530 990 24.4 osh-cpython
30 no-host configure.yash 1,857 1,040 820 24.2 osh-native
38 no-host configure.yash 1,825 1,059 769 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 58 33 24 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.0 osh-native
32 no-host hello-world 3 3 0 6.0 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,564 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,683 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,330 0 0 0 8 0 1,994 45 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,988 33 dash
17 no-host bin-true 770,641 0 0 0 8 0 1,997 106 osh-cpython
25 no-host bin-true 128,208 0 0 0 16 0 1,988 117 osh-native
33 no-host bin-true 125,311 0 0 0 16 0 1,992 156 osh-native-souffle
2 no-host configure.cpython 2,220,775 1 0 0 32,928 0 14,484 953 bash
10 no-host configure.cpython 2,244,680 0 0 0 32,992 0 14,572 1,051 dash
18 no-host configure.cpython 6,213,173 0 0 0 27,512 0 13,281 1,262 osh-cpython
26 no-host configure.cpython 2,217,679 1 0 0 27,520 0 13,245 921 osh-native
34 no-host configure.cpython 2,206,502 0 0 0 27,520 0 13,228 1,071 osh-native-souffle
4 no-host configure.ocaml 410,374 0 0 0 5,120 0 1,949 134 bash
12 no-host configure.ocaml 390,922 0 0 0 5,112 0 1,917 123 dash
20 no-host configure.ocaml 646,953 0 0 0 5,112 0 1,848 275 osh-cpython
28 no-host configure.ocaml 412,771 0 0 0 5,120 0 1,926 197 osh-native
36 no-host configure.ocaml 412,475 0 0 0 5,120 0 1,929 157 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,085 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,951 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,893 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,101,740 3 0 0 42,400 0 18,651 1,056 bash
11 no-host configure.util-linux 2,263,913 0 0 0 42,584 0 17,403 990 dash
19 no-host configure.util-linux 5,370,484 9 0 0 39,112 0 17,032 1,262 osh-cpython
27 no-host configure.util-linux 1,997,032 1 0 0 39,120 0 16,992 857 osh-native
35 no-host configure.util-linux 1,989,775 1 0 0 39,128 0 16,938 963 osh-native-souffle
6 no-host configure.yash 256,299 0 0 0 4,120 0 869 95 bash
14 no-host configure.yash 245,225 0 0 0 3,720 0 871 64 dash
22 no-host configure.yash 388,835 0 0 0 3,728 0 851 86 osh-cpython
30 no-host configure.yash 258,008 0 0 0 3,736 0 847 93 osh-native
38 no-host configure.yash 257,642 0 0 0 3,736 0 849 74 osh-native-souffle
0 no-host hello-world 151 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,945 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 1 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-075aad5e
dash dash-0ebcf347
osh-cpython osh-2a1bdfa3
osh-native osh-47fa4c81
osh-native-souffle osh-7ebe0e3e
host label host id
no-host no-host-556df3ee