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 16 9 546 22 21 35.03 1.39
bin-true no-host 616 455 2,445 810 803 3.97 1.32
configure.cpython no-host 13,951 14,001 29,577 14,747 14,962 2.12 1.06
configure.ocaml no-host 3,706 3,635 4,682 3,738 3,772 1.26 1.01
configure.tcc no-host 46 42 227 49 49 4.88 1.06
configure.util-linux no-host 12,806 13,393 32,763 13,933 13,763 2.56 1.09
configure.yash no-host 1,730 1,650 2,529 1,749 1,744 1.46 1.01
hello-world no-host 1 1 60 6 3 48.24 4.78

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,406 1,161 24,633 3,444 3,345 10.24 1.43
bin-true no-host 98,946 49,384 834,852 140,252 137,313 8.44 1.42
configure.cpython no-host 1,623,531 1,647,355 5,950,263 1,814,868 1,785,876 3.67 1.12
configure.ocaml no-host 298,798 280,700 557,571 317,546 316,688 1.87 1.06
configure.tcc no-host 5,197 4,210 23,880 5,931 5,897 4.59 1.14
configure.util-linux no-host 1,535,599 1,702,765 4,980,696 1,719,304 1,710,648 3.24 1.12
configure.yash no-host 173,470 159,588 315,511 179,111 178,828 1.82 1.03
hello-world no-host 151 83 3,868 387 378 25.62 2.56

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.8 3.9 22.9 9.7 9.3 4.72 2.00
bin-true no-host 3.3 1.4 18.3 8.8 8.1 5.59 2.68
configure.cpython no-host 34.6 34.4 34.4 34.4 34.5 0.99 0.99
configure.ocaml no-host 28.5 28.7 28.7 28.8 28.7 1.01 1.01
configure.tcc no-host 26.2 26.4 26.0 26.0 26.4 0.99 1.00
configure.util-linux no-host 39.7 39.7 39.6 39.6 39.5 1.00 1.00
configure.yash no-host 33.4 33.1 33.5 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.4 18.1 7.1 6.6 5.51 2.16

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 6 0 0 0.3 7.1 3,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.8 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,747 1 66 15.2 34.4 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,933 3 60 21.4 39.6 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,738 1 2 2.7 28.8 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.0 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,749 1 2 2.6 33.4 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.7 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.1 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,962 1 66 15.2 34.5 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,763 3 60 21.4 39.5 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,772 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.4 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,744 1 2 2.6 33.3 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 16 7 9 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 546 490 60 22.9 osh-cpython
31 no-host abuild-print-help 22 8 14 9.7 osh-native
39 no-host abuild-print-help 21 10 11 9.3 osh-native-souffle
1 no-host bin-true 616 303 349 3.3 bash
9 no-host bin-true 455 286 173 1.4 dash
17 no-host bin-true 2,445 918 1,792 18.3 osh-cpython
25 no-host bin-true 810 302 525 8.8 osh-native
33 no-host bin-true 803 295 523 8.1 osh-native-souffle
2 no-host configure.cpython 13,951 7,551 6,759 34.6 bash
10 no-host configure.cpython 14,001 7,560 6,825 34.4 dash
18 no-host configure.cpython 29,577 16,288 15,240 34.4 osh-cpython
26 no-host configure.cpython 14,747 7,400 7,627 34.4 osh-native
34 no-host configure.cpython 14,962 7,372 7,646 34.5 osh-native-souffle
4 no-host configure.ocaml 3,706 1,470 1,274 28.5 bash
12 no-host configure.ocaml 3,635 1,467 1,191 28.7 dash
20 no-host configure.ocaml 4,682 2,089 1,815 28.7 osh-cpython
28 no-host configure.ocaml 3,738 1,501 1,279 28.8 osh-native
36 no-host configure.ocaml 3,772 1,501 1,310 28.7 osh-native-souffle
5 no-host configure.tcc 46 21 26 26.2 bash
13 no-host configure.tcc 42 24 18 26.4 dash
21 no-host configure.tcc 227 159 72 26.0 osh-cpython
29 no-host configure.tcc 49 27 22 26.0 osh-native
37 no-host configure.tcc 49 27 23 26.4 osh-native-souffle
3 no-host configure.util-linux 12,806 6,636 6,618 39.7 bash
11 no-host configure.util-linux 13,393 6,497 7,379 39.7 dash
19 no-host configure.util-linux 32,763 20,569 13,271 39.6 osh-cpython
27 no-host configure.util-linux 13,933 6,366 7,798 39.6 osh-native
35 no-host configure.util-linux 13,763 6,225 7,596 39.5 osh-native-souffle
6 no-host configure.yash 1,730 955 783 33.4 bash
14 no-host configure.yash 1,650 917 733 33.1 dash
22 no-host configure.yash 2,529 1,464 1,108 33.5 osh-cpython
30 no-host configure.yash 1,749 966 786 33.4 osh-native
38 no-host configure.yash 1,744 959 787 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 43 17 18.1 osh-cpython
24 no-host hello-world 6 3 2 7.1 osh-native
32 no-host hello-world 3 1 2 6.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,406 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,633 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,444 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,345 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 98,946 0 0 0 8 0 1,993 67 bash
9 no-host bin-true 49,384 0 0 0 8 0 2,962 52 dash
17 no-host bin-true 834,852 0 0 0 8 0 2,001 153 osh-cpython
25 no-host bin-true 140,252 0 0 0 16 0 1,989 70 osh-native
33 no-host bin-true 137,313 0 0 0 16 0 1,978 106 osh-native-souffle
2 no-host configure.cpython 1,623,531 0 0 0 25,272 0 14,042 1,063 bash
10 no-host configure.cpython 1,647,355 0 0 0 25,272 0 14,059 1,098 dash
18 no-host configure.cpython 5,950,263 0 0 0 25,272 0 12,868 818 osh-cpython
26 no-host configure.cpython 1,814,868 0 0 0 25,280 0 12,884 1,036 osh-native
34 no-host configure.cpython 1,785,876 0 0 0 25,280 0 12,847 1,120 osh-native-souffle
4 no-host configure.ocaml 298,798 0 0 0 4,432 0 2,004 185 bash
12 no-host configure.ocaml 280,700 0 0 0 4,432 0 2,100 181 dash
20 no-host configure.ocaml 557,571 0 0 0 4,432 0 1,914 187 osh-cpython
28 no-host configure.ocaml 317,546 0 0 0 4,440 0 2,000 199 osh-native
36 no-host configure.ocaml 316,688 0 0 0 4,440 0 1,996 212 osh-native-souffle
5 no-host configure.tcc 5,197 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 23,880 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,931 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,897 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,535,599 1 0 0 35,944 0 18,945 1,061 bash
11 no-host configure.util-linux 1,702,765 0 0 0 35,936 0 17,045 1,167 dash
19 no-host configure.util-linux 4,980,696 2 0 0 35,952 0 17,523 890 osh-cpython
27 no-host configure.util-linux 1,719,304 2 0 0 35,952 0 17,587 1,039 osh-native
35 no-host configure.util-linux 1,710,648 1 0 0 35,952 0 17,359 1,065 osh-native-souffle
6 no-host configure.yash 173,470 0 0 0 3,616 0 874 102 bash
14 no-host configure.yash 159,588 0 0 0 3,616 0 1,000 106 dash
22 no-host configure.yash 315,511 0 0 0 3,616 0 861 95 osh-cpython
30 no-host configure.yash 179,111 0 0 0 3,624 0 855 101 osh-native
38 no-host configure.yash 178,828 0 0 0 3,624 0 858 116 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,868 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-feaf3401
dash dash-cea41b3e
osh-cpython osh-7ddf6db2
osh-native osh-17115db9
osh-native-souffle osh-20a72496
host label host id
no-host no-host-31404de8