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 466 22 21 24.55 1.14
bin-true no-host 677 542 2,281 821 802 3.37 1.21
configure.cpython no-host 15,012 15,098 28,879 15,294 15,354 1.92 1.02
configure.ocaml no-host 3,833 3,747 4,670 3,834 3,830 1.22 1.00
configure.tcc no-host 49 42 203 49 48 4.19 1.00
configure.util-linux no-host 14,096 14,866 31,664 14,401 14,300 2.25 1.02
configure.yash no-host 1,814 1,778 2,468 1,823 1,834 1.36 1.00
hello-world no-host 1 1 56 3 3 38.16 1.94

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,125 23,682 3,192 3,091 9.35 1.26
bin-true no-host 107,336 66,457 775,687 128,264 123,219 7.23 1.19
configure.cpython no-host 2,224,932 2,240,377 6,218,305 2,217,629 2,199,597 2.79 1.00
configure.ocaml no-host 410,939 391,335 646,485 413,166 412,144 1.57 1.01
configure.tcc no-host 6,528 5,474 24,082 6,950 6,915 3.69 1.06
configure.util-linux no-host 2,104,418 2,261,089 5,388,509 1,995,738 1,995,138 2.56 0.95
configure.yash no-host 255,999 244,975 387,941 257,912 257,901 1.52 1.01
hello-world no-host 154 80 3,947 342 337 25.63 2.22

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.4 22.6 8.9 8.7 5.06 2.00
bin-true no-host 3.0 1.3 18.4 8.1 7.7 6.09 2.70
configure.cpython no-host 27.5 27.3 27.4 27.5 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.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.1 24.2 24.2 24.2 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.4 6.4 5.8 6.37 2.23

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 821 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,294 2 63 14.9 27.5 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,401 3 60 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,834 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 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,823 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 5.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 802 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,354 1 61 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,300 3 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,830 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.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,834 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 18 1 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 466 415 54 22.6 osh-cpython
31 no-host abuild-print-help 22 19 3 8.9 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 677 494 212 3.0 bash
9 no-host bin-true 542 433 121 1.3 dash
17 no-host bin-true 2,281 1,506 1,039 18.4 osh-cpython
25 no-host bin-true 821 569 266 8.1 osh-native
33 no-host bin-true 802 562 254 7.7 osh-native-souffle
2 no-host configure.cpython 15,012 9,034 6,374 27.5 bash
10 no-host configure.cpython 15,098 9,086 6,431 27.3 dash
18 no-host configure.cpython 28,879 17,622 13,150 27.4 osh-cpython
26 no-host configure.cpython 15,294 9,043 6,519 27.5 osh-native
34 no-host configure.cpython 15,354 8,990 6,506 27.3 osh-native-souffle
4 no-host configure.ocaml 3,833 1,664 1,202 20.6 bash
12 no-host configure.ocaml 3,747 1,584 1,182 20.6 dash
20 no-host configure.ocaml 4,670 2,205 1,679 20.4 osh-cpython
28 no-host configure.ocaml 3,834 1,638 1,235 20.6 osh-native
36 no-host configure.ocaml 3,830 1,700 1,164 20.6 osh-native-souffle
5 no-host configure.tcc 49 28 21 19.4 bash
13 no-host configure.tcc 42 23 19 19.3 dash
21 no-host configure.tcc 203 148 59 19.4 osh-cpython
29 no-host configure.tcc 49 35 13 19.3 osh-native
37 no-host configure.tcc 48 16 32 19.3 osh-native-souffle
3 no-host configure.util-linux 14,096 8,938 5,632 30.0 bash
11 no-host configure.util-linux 14,866 9,163 6,199 30.1 dash
19 no-host configure.util-linux 31,664 21,019 11,766 30.1 osh-cpython
27 no-host configure.util-linux 14,401 8,611 5,991 30.1 osh-native
35 no-host configure.util-linux 14,300 8,612 5,886 30.1 osh-native-souffle
6 no-host configure.yash 1,814 990 834 24.1 bash
14 no-host configure.yash 1,778 1,037 745 24.2 dash
22 no-host configure.yash 2,468 1,514 997 24.2 osh-cpython
30 no-host configure.yash 1,823 1,095 732 24.2 osh-native
38 no-host configure.yash 1,834 1,046 788 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 24 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.4 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 0 bash
15 no-host abuild-print-help 1,125 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,682 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,336 0 0 0 8 0 1,995 74 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,981 37 dash
17 no-host bin-true 775,687 0 0 0 8 0 1,992 109 osh-cpython
25 no-host bin-true 128,264 0 0 0 16 0 1,995 212 osh-native
33 no-host bin-true 123,219 0 0 0 16 0 1,991 62 osh-native-souffle
2 no-host configure.cpython 2,224,932 0 0 0 32,928 0 14,505 931 bash
10 no-host configure.cpython 2,240,377 0 0 0 32,992 0 14,544 1,027 dash
18 no-host configure.cpython 6,218,305 0 0 0 27,512 0 13,257 1,192 osh-cpython
26 no-host configure.cpython 2,217,629 0 0 0 27,520 0 13,191 1,025 osh-native
34 no-host configure.cpython 2,199,597 1 0 0 27,520 0 13,299 996 osh-native-souffle
4 no-host configure.ocaml 410,939 0 0 0 5,120 0 1,952 179 bash
12 no-host configure.ocaml 391,335 0 0 0 5,112 0 1,874 141 dash
20 no-host configure.ocaml 646,485 0 0 0 5,112 0 1,846 218 osh-cpython
28 no-host configure.ocaml 413,166 0 0 0 5,120 0 1,926 164 osh-native
36 no-host configure.ocaml 412,144 0 0 0 5,120 0 1,930 159 osh-native-souffle
5 no-host configure.tcc 6,528 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 46 4 dash
21 no-host configure.tcc 24,082 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,915 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,418 0 0 0 42,400 0 18,575 1,157 bash
11 no-host configure.util-linux 2,261,089 1 0 0 42,584 0 17,442 1,084 dash
19 no-host configure.util-linux 5,388,509 18 0 0 39,112 0 17,196 1,226 osh-cpython
27 no-host configure.util-linux 1,995,738 0 0 0 39,128 0 16,984 965 osh-native
35 no-host configure.util-linux 1,995,138 0 0 0 39,136 0 16,959 962 osh-native-souffle
6 no-host configure.yash 255,999 0 0 0 4,120 0 868 94 bash
14 no-host configure.yash 244,975 0 0 0 3,720 0 865 84 dash
22 no-host configure.yash 387,941 0 0 0 3,728 0 851 95 osh-cpython
30 no-host configure.yash 257,912 0 0 0 3,736 0 847 80 osh-native
38 no-host configure.yash 257,901 0 0 0 3,736 0 852 74 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,947 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-96bc7944
dash dash-0ebcf347
osh-cpython osh-587821d9
osh-native osh-0ae27ff4
osh-native-souffle osh-08ea6f6b
host label host id
no-host no-host-556df3ee