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 461 22 21 24.11 1.14
bin-true no-host 659 540 2,314 808 800 3.51 1.23
configure.cpython no-host 14,879 14,964 28,715 15,097 15,159 1.93 1.01
configure.ocaml no-host 3,775 3,713 4,609 3,811 3,785 1.22 1.01
configure.tcc no-host 49 42 205 49 47 4.21 1.00
configure.util-linux no-host 13,908 14,794 31,309 14,236 14,207 2.25 1.02
configure.yash no-host 1,819 1,759 2,439 1,820 1,806 1.34 1.00
hello-world no-host 1 1 56 3 3 39.53 2.08

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,515 1,074 23,691 3,201 3,096 9.42 1.27
bin-true no-host 103,332 66,470 774,658 125,292 126,214 7.50 1.21
configure.cpython no-host 2,217,649 2,243,790 6,206,587 2,217,290 2,212,623 2.80 1.00
configure.ocaml no-host 410,251 391,512 646,984 413,539 413,071 1.58 1.01
configure.tcc no-host 6,565 5,475 24,082 6,956 6,909 3.67 1.06
configure.util-linux no-host 2,103,453 2,259,669 5,393,582 1,994,499 1,994,946 2.56 0.95
configure.yash no-host 255,260 244,645 389,362 258,663 257,520 1.53 1.01
hello-world no-host 154 82 3,946 345 334 25.62 2.24

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.6 9.2 8.5 5.23 2.12
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.4 27.5 27.4 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.6 20.4 1.00 1.01
configure.tcc no-host 19.4 19.1 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 808 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,097 1 60 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,236 3 60 21.2 30.3 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,811 0 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,820 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 9.2 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 800 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,159 1 60 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,207 2 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,785 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 47 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,806 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.5 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 2 4.3 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 461 416 48 22.6 osh-cpython
31 no-host abuild-print-help 22 15 7 9.2 osh-native
39 no-host abuild-print-help 21 17 5 8.5 osh-native-souffle
1 no-host bin-true 659 480 211 2.9 bash
9 no-host bin-true 540 408 138 1.4 dash
17 no-host bin-true 2,314 1,519 1,060 18.4 osh-cpython
25 no-host bin-true 808 555 268 8.0 osh-native
33 no-host bin-true 800 545 270 7.6 osh-native-souffle
2 no-host configure.cpython 14,879 8,899 6,384 27.4 bash
10 no-host configure.cpython 14,964 8,922 6,466 27.5 dash
18 no-host configure.cpython 28,715 17,541 13,032 27.4 osh-cpython
26 no-host configure.cpython 15,097 9,004 6,365 27.3 osh-native
34 no-host configure.cpython 15,159 8,931 6,371 27.4 osh-native-souffle
4 no-host configure.ocaml 3,775 1,612 1,202 20.4 bash
12 no-host configure.ocaml 3,713 1,564 1,170 20.6 dash
20 no-host configure.ocaml 4,609 2,289 1,530 20.4 osh-cpython
28 no-host configure.ocaml 3,811 1,562 1,288 20.6 osh-native
36 no-host configure.ocaml 3,785 1,583 1,238 20.4 osh-native-souffle
5 no-host configure.tcc 49 20 29 19.4 bash
13 no-host configure.tcc 42 32 11 19.1 dash
21 no-host configure.tcc 205 156 53 19.4 osh-cpython
29 no-host configure.tcc 49 39 10 19.3 osh-native
37 no-host configure.tcc 47 29 18 19.3 osh-native-souffle
3 no-host configure.util-linux 13,908 8,692 5,695 30.1 bash
11 no-host configure.util-linux 14,794 9,000 6,293 30.3 dash
19 no-host configure.util-linux 31,309 20,972 11,367 30.3 osh-cpython
27 no-host configure.util-linux 14,236 8,561 5,876 30.3 osh-native
35 no-host configure.util-linux 14,207 8,606 5,803 30.1 osh-native-souffle
6 no-host configure.yash 1,819 1,090 734 24.4 bash
14 no-host configure.yash 1,759 1,009 753 24.4 dash
22 no-host configure.yash 2,439 1,505 976 24.2 osh-cpython
30 no-host configure.yash 1,820 1,109 712 24.2 osh-native
38 no-host configure.yash 1,806 1,010 800 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 52 5 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,515 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,074 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,691 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 103,332 0 0 0 8 0 1,988 43 bash
9 no-host bin-true 66,470 0 0 0 8 0 1,986 33 dash
17 no-host bin-true 774,658 0 0 0 8 0 1,992 222 osh-cpython
25 no-host bin-true 125,292 0 0 0 16 0 1,987 82 osh-native
33 no-host bin-true 126,214 0 0 0 16 0 1,984 106 osh-native-souffle
2 no-host configure.cpython 2,217,649 0 0 0 32,928 0 14,533 1,071 bash
10 no-host configure.cpython 2,243,790 0 0 0 32,992 0 14,675 1,124 dash
18 no-host configure.cpython 6,206,587 1 0 0 27,512 0 13,254 1,195 osh-cpython
26 no-host configure.cpython 2,217,290 0 0 0 27,520 0 13,210 916 osh-native
34 no-host configure.cpython 2,212,623 2 0 0 27,520 0 13,177 1,012 osh-native-souffle
4 no-host configure.ocaml 410,251 0 0 0 5,120 0 1,942 173 bash
12 no-host configure.ocaml 391,512 0 0 0 5,112 0 1,947 140 dash
20 no-host configure.ocaml 646,984 0 0 0 5,112 0 1,857 172 osh-cpython
28 no-host configure.ocaml 413,539 0 0 0 5,120 0 1,932 172 osh-native
36 no-host configure.ocaml 413,071 0 0 0 5,120 0 1,930 179 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 24,082 0 0 0 96 0 52 11 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,453 0 0 0 42,400 0 18,569 1,168 bash
11 no-host configure.util-linux 2,259,669 2 0 0 42,592 0 17,462 1,054 dash
19 no-host configure.util-linux 5,393,582 9 0 0 39,112 0 16,926 1,350 osh-cpython
27 no-host configure.util-linux 1,994,499 0 0 0 39,120 0 16,994 942 osh-native
35 no-host configure.util-linux 1,994,946 1 0 0 39,128 0 16,941 949 osh-native-souffle
6 no-host configure.yash 255,260 0 0 0 4,120 0 878 75 bash
14 no-host configure.yash 244,645 0 0 0 3,720 0 865 83 dash
22 no-host configure.yash 389,362 0 0 0 3,728 0 851 82 osh-cpython
30 no-host configure.yash 258,663 0 0 0 3,736 0 846 72 osh-native
38 no-host configure.yash 257,520 0 0 0 3,736 0 850 92 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,946 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-10ce3d0b
dash dash-0ebcf347
osh-cpython osh-9587164e
osh-native osh-08094133
osh-native-souffle osh-b0375681
host label host id
no-host no-host-556df3ee