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 462 22 21 23.70 1.12
bin-true no-host 684 545 2,300 811 813 3.36 1.19
configure.cpython no-host 15,207 15,175 29,178 15,382 15,473 1.92 1.01
configure.ocaml no-host 3,817 3,751 4,683 3,856 3,864 1.23 1.01
configure.tcc no-host 48 41 206 50 48 4.26 1.03
configure.util-linux no-host 14,184 15,022 31,930 14,481 14,405 2.25 1.02
configure.yash no-host 1,829 1,803 2,485 1,840 1,825 1.36 1.01
hello-world no-host 1 1 58 3 3 39.51 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,578 1,100 23,692 3,196 3,113 9.19 1.24
bin-true no-host 107,363 65,415 771,625 126,270 124,254 7.19 1.18
configure.cpython no-host 2,221,615 2,239,224 6,219,892 2,213,542 2,204,229 2.80 1.00
configure.ocaml no-host 410,430 391,092 646,627 412,958 412,562 1.58 1.01
configure.tcc no-host 6,570 5,469 24,109 6,945 6,912 3.67 1.06
configure.util-linux no-host 2,104,474 2,262,034 5,373,382 1,997,423 1,983,847 2.55 0.95
configure.yash no-host 255,746 245,220 388,989 257,636 258,019 1.52 1.01
hello-world no-host 153 84 3,947 348 336 25.80 2.27

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.6 9.0 8.7 5.06 2.03
bin-true no-host 2.9 1.6 18.4 8.0 7.7 6.37 2.77
configure.cpython no-host 27.4 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.0 30.1 30.0 30.4 30.0 1.00 1.01
configure.yash no-host 24.4 24.4 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.2 6.4 5.6 6.62 2.33

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 811 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,382 2 64 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,481 3 62 21.2 30.4 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,856 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 50 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,840 1 2 2.5 24.4 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.6 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.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,473 1 62 14.9 27.5 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,405 3 61 21.2 30.0 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,864 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 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.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 19 0 4.5 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 462 413 52 22.6 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 684 505 213 2.9 bash
9 no-host bin-true 545 423 131 1.6 dash
17 no-host bin-true 2,300 1,489 1,073 18.4 osh-cpython
25 no-host bin-true 811 567 258 8.0 osh-native
33 no-host bin-true 813 574 251 7.7 osh-native-souffle
2 no-host configure.cpython 15,207 9,300 6,311 27.4 bash
10 no-host configure.cpython 15,175 9,101 6,495 27.4 dash
18 no-host configure.cpython 29,178 17,547 13,535 27.4 osh-cpython
26 no-host configure.cpython 15,382 8,922 6,731 27.4 osh-native
34 no-host configure.cpython 15,473 8,915 6,695 27.5 osh-native-souffle
4 no-host configure.ocaml 3,817 1,630 1,225 20.4 bash
12 no-host configure.ocaml 3,751 1,602 1,168 20.6 dash
20 no-host configure.ocaml 4,683 2,291 1,605 20.6 osh-cpython
28 no-host configure.ocaml 3,856 1,675 1,221 20.4 osh-native
36 no-host configure.ocaml 3,864 1,618 1,282 20.6 osh-native-souffle
5 no-host configure.tcc 48 35 14 19.3 bash
13 no-host configure.tcc 41 21 21 19.3 dash
21 no-host configure.tcc 206 165 44 19.4 osh-cpython
29 no-host configure.tcc 50 30 21 19.3 osh-native
37 no-host configure.tcc 48 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 14,184 8,918 5,746 30.0 bash
11 no-host configure.util-linux 15,022 9,236 6,287 30.1 dash
19 no-host configure.util-linux 31,930 21,364 11,694 30.0 osh-cpython
27 no-host configure.util-linux 14,481 8,652 6,032 30.4 osh-native
35 no-host configure.util-linux 14,405 8,649 5,955 30.0 osh-native-souffle
6 no-host configure.yash 1,829 1,046 792 24.4 bash
14 no-host configure.yash 1,803 1,038 769 24.4 dash
22 no-host configure.yash 2,485 1,527 1,000 24.2 osh-cpython
30 no-host configure.yash 1,840 1,095 748 24.4 osh-native
38 no-host configure.yash 1,825 1,050 779 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 58 37 20 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 0 3 5.6 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,578 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,692 0 0 0 8 0 46 7 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,113 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,363 0 0 0 8 0 1,990 56 bash
9 no-host bin-true 65,415 0 0 0 8 0 1,987 38 dash
17 no-host bin-true 771,625 0 0 0 8 0 1,999 145 osh-cpython
25 no-host bin-true 126,270 0 0 0 16 0 1,988 65 osh-native
33 no-host bin-true 124,254 0 0 0 16 0 1,994 169 osh-native-souffle
2 no-host configure.cpython 2,221,615 0 0 0 32,928 0 14,457 1,097 bash
10 no-host configure.cpython 2,239,224 0 0 0 32,992 0 14,649 1,025 dash
18 no-host configure.cpython 6,219,892 1 0 0 27,512 0 13,241 1,088 osh-cpython
26 no-host configure.cpython 2,213,542 1 0 0 27,520 0 13,299 1,056 osh-native
34 no-host configure.cpython 2,204,229 1 0 0 27,520 0 13,308 1,098 osh-native-souffle
4 no-host configure.ocaml 410,430 0 0 0 5,120 0 1,949 175 bash
12 no-host configure.ocaml 391,092 0 0 0 5,112 0 1,891 139 dash
20 no-host configure.ocaml 646,627 0 0 0 5,112 0 1,862 172 osh-cpython
28 no-host configure.ocaml 412,958 0 0 0 5,120 0 1,931 171 osh-native
36 no-host configure.ocaml 412,562 0 0 0 5,120 0 1,924 167 osh-native-souffle
5 no-host configure.tcc 6,570 0 0 0 104 0 49 13 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,109 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,104,474 0 0 0 42,400 0 18,556 950 bash
11 no-host configure.util-linux 2,262,034 0 0 0 42,592 0 17,443 1,069 dash
19 no-host configure.util-linux 5,373,382 9 0 0 39,120 0 16,944 1,517 osh-cpython
27 no-host configure.util-linux 1,997,423 0 0 0 39,128 0 17,123 976 osh-native
35 no-host configure.util-linux 1,983,847 0 0 0 39,136 0 17,097 881 osh-native-souffle
6 no-host configure.yash 255,746 0 0 0 4,120 0 872 89 bash
14 no-host configure.yash 245,220 0 0 0 3,720 0 868 86 dash
22 no-host configure.yash 388,989 0 0 0 3,728 0 855 100 osh-cpython
30 no-host configure.yash 257,636 0 0 0 3,736 0 848 104 osh-native
38 no-host configure.yash 258,019 0 0 0 3,736 0 848 86 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 2 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 2 osh-native-souffle

Shell and Host

shell label shell id
bash bash-05d15a90
dash dash-0ebcf347
osh-cpython osh-9c183237
osh-native osh-750a6f2a
osh-native-souffle osh-3c32e76e
host label host id
no-host no-host-556df3ee