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 465 22 21 24.30 1.14
bin-true no-host 681 544 2,274 813 815 3.34 1.19
configure.cpython no-host 14,931 14,987 28,798 15,260 15,290 1.93 1.02
configure.ocaml no-host 3,774 3,725 4,641 3,788 3,819 1.23 1.00
configure.tcc no-host 47 41 205 48 48 4.34 1.02
configure.util-linux no-host 13,825 14,831 31,202 14,366 14,189 2.26 1.04
configure.yash no-host 1,801 1,756 2,448 1,820 1,802 1.36 1.01
hello-world no-host 1 1 56 3 3 37.55 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,561 1,122 23,534 3,165 3,106 9.19 1.24
bin-true no-host 107,417 66,446 766,773 126,124 127,144 7.14 1.17
configure.cpython no-host 2,224,303 2,241,670 6,201,757 2,222,502 2,213,334 2.79 1.00
configure.ocaml no-host 410,494 391,102 643,912 413,023 412,411 1.57 1.01
configure.tcc no-host 6,549 5,476 24,041 6,955 6,905 3.67 1.06
configure.util-linux no-host 2,093,185 2,260,329 5,348,187 1,998,759 1,991,828 2.56 0.95
configure.yash no-host 256,117 243,675 387,341 258,139 257,369 1.51 1.01
hello-world no-host 155 82 3,956 345 337 25.52 2.23

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.8 9.2 8.7 5.13 2.06
bin-true no-host 3.0 1.3 18.3 8.1 7.7 6.06 2.70
configure.cpython no-host 27.4 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.6 18.3 6.3 5.9 6.33 2.18

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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.1 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,260 1 61 14.9 27.4 1,771,758 49,616 28,523 85,415 878,122 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,366 2 61 21.2 30.1 2,702,524 53,777 65,702 108,691 1,290,647 1,303,186 32,239 41 131,404 1
configure.ocaml no-host 3,788 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,820 1 2 2.5 24.2 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 815 1 2 2.6 7.7 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,290 2 63 14.9 27.5 1,771,757 49,074 28,461 85,416 878,122 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,189 3 59 21.2 30.1 2,702,524 53,704 65,660 108,693 1,290,647 1,303,184 32,239 41 131,320 1
configure.ocaml no-host 3,819 1 2 2.6 20.4 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,802 1 2 2.5 24.4 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 6 13 4.5 bash
15 no-host abuild-print-help 9 9 1 3.5 dash
23 no-host abuild-print-help 465 423 45 22.8 osh-cpython
31 no-host abuild-print-help 22 17 5 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 681 518 194 3.0 bash
9 no-host bin-true 544 422 133 1.3 dash
17 no-host bin-true 2,274 1,463 1,070 18.3 osh-cpython
25 no-host bin-true 813 586 241 8.1 osh-native
33 no-host bin-true 815 579 251 7.7 osh-native-souffle
2 no-host configure.cpython 14,931 8,873 6,467 27.4 bash
10 no-host configure.cpython 14,987 9,015 6,399 27.4 dash
18 no-host configure.cpython 28,798 17,872 12,782 27.5 osh-cpython
26 no-host configure.cpython 15,260 8,862 6,658 27.4 osh-native
34 no-host configure.cpython 15,290 8,978 6,439 27.5 osh-native-souffle
4 no-host configure.ocaml 3,774 1,580 1,231 20.6 bash
12 no-host configure.ocaml 3,725 1,570 1,172 20.4 dash
20 no-host configure.ocaml 4,641 2,251 1,605 20.6 osh-cpython
28 no-host configure.ocaml 3,788 1,552 1,276 20.6 osh-native
36 no-host configure.ocaml 3,819 1,637 1,211 20.4 osh-native-souffle
5 no-host configure.tcc 47 30 17 19.3 bash
13 no-host configure.tcc 41 31 10 19.3 dash
21 no-host configure.tcc 205 131 76 19.3 osh-cpython
29 no-host configure.tcc 48 21 27 19.3 osh-native
37 no-host configure.tcc 48 21 27 19.3 osh-native-souffle
3 no-host configure.util-linux 13,825 8,731 5,571 30.3 bash
11 no-host configure.util-linux 14,831 9,192 6,135 30.3 dash
19 no-host configure.util-linux 31,202 20,974 11,297 30.3 osh-cpython
27 no-host configure.util-linux 14,366 8,667 5,894 30.1 osh-native
35 no-host configure.util-linux 14,189 8,571 5,817 30.1 osh-native-souffle
6 no-host configure.yash 1,801 1,060 750 24.2 bash
14 no-host configure.yash 1,756 1,061 696 24.4 dash
22 no-host configure.yash 2,448 1,513 977 24.5 osh-cpython
30 no-host configure.yash 1,820 1,102 721 24.2 osh-native
38 no-host configure.yash 1,802 949 857 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 25 30 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 5.9 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,561 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,534 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,165 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,106 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,417 0 0 0 8 0 1,986 56 bash
9 no-host bin-true 66,446 0 0 0 8 0 1,990 35 dash
17 no-host bin-true 766,773 0 0 0 8 0 1,996 144 osh-cpython
25 no-host bin-true 126,124 0 0 0 16 0 1,985 53 osh-native
33 no-host bin-true 127,144 0 0 0 16 0 1,991 80 osh-native-souffle
2 no-host configure.cpython 2,224,303 0 0 0 32,928 0 14,469 1,084 bash
10 no-host configure.cpython 2,241,670 1 0 0 32,992 0 14,629 1,037 dash
18 no-host configure.cpython 6,201,757 0 0 0 27,512 0 13,288 1,252 osh-cpython
26 no-host configure.cpython 2,222,502 0 0 0 27,520 0 13,216 1,091 osh-native
34 no-host configure.cpython 2,213,334 0 0 0 27,520 0 13,217 942 osh-native-souffle
4 no-host configure.ocaml 410,494 0 0 0 5,120 0 1,956 160 bash
12 no-host configure.ocaml 391,102 0 0 0 5,112 0 1,901 165 dash
20 no-host configure.ocaml 643,912 0 0 0 5,112 0 1,857 167 osh-cpython
28 no-host configure.ocaml 413,023 0 0 0 5,120 0 1,922 186 osh-native
36 no-host configure.ocaml 412,411 0 0 0 5,120 0 1,934 147 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,041 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,905 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 2,093,185 0 0 0 42,400 0 18,528 925 bash
11 no-host configure.util-linux 2,260,329 0 0 0 42,584 0 17,451 979 dash
19 no-host configure.util-linux 5,348,187 7 0 0 39,112 0 16,935 1,121 osh-cpython
27 no-host configure.util-linux 1,998,759 1 0 0 39,120 0 17,108 972 osh-native
35 no-host configure.util-linux 1,991,828 0 0 0 39,128 0 16,908 1,068 osh-native-souffle
6 no-host configure.yash 256,117 0 0 0 4,120 0 871 76 bash
14 no-host configure.yash 243,675 0 0 0 3,720 0 872 96 dash
22 no-host configure.yash 387,341 0 0 0 3,728 0 848 97 osh-cpython
30 no-host configure.yash 258,139 0 0 0 3,736 0 850 75 osh-native
38 no-host configure.yash 257,369 0 0 0 3,736 0 847 85 osh-native-souffle
0 no-host hello-world 155 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,956 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 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-5fa2d43c
dash dash-0ebcf347
osh-cpython osh-32399c4c
osh-native osh-761f3235
osh-native-souffle osh-0ce6fc40
host label host id
no-host no-host-556df3ee