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 470 22 21 24.33 1.16
bin-true no-host 677 554 2,277 812 818 3.36 1.20
configure.cpython no-host 15,162 15,259 29,034 15,376 15,530 1.91 1.01
configure.ocaml no-host 3,830 3,770 4,687 3,844 3,852 1.22 1.00
configure.tcc no-host 47 42 204 49 49 4.31 1.04
configure.util-linux no-host 14,179 14,993 31,609 14,491 14,531 2.23 1.02
configure.yash no-host 1,825 1,779 2,482 1,848 1,827 1.36 1.01
hello-world no-host 1 1 57 3 3 38.40 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,542 1,101 23,491 3,168 3,112 9.24 1.25
bin-true no-host 105,310 66,416 758,449 126,188 127,227 7.20 1.20
configure.cpython no-host 2,215,462 2,247,446 6,198,120 2,223,403 2,216,377 2.80 1.00
configure.ocaml no-host 410,973 391,263 643,999 412,687 412,802 1.57 1.00
configure.tcc no-host 6,590 5,497 23,910 6,962 6,919 3.63 1.06
configure.util-linux no-host 2,091,403 2,262,442 5,348,549 2,003,381 1,996,792 2.56 0.96
configure.yash no-host 256,216 244,709 387,154 257,229 257,828 1.51 1.00
hello-world no-host 153 82 3,954 342 338 25.84 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.8 9.0 8.7 5.28 2.09
bin-true no-host 2.9 1.4 18.4 8.3 7.5 6.38 2.86
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.1 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.0 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.1 24.2 1.01 0.99
hello-world no-host 2.8 1.4 18.3 6.2 6.0 6.63 2.24

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.2 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.3 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,376 1 63 14.9 27.4 1,771,800 49,612 28,519 85,427 878,134 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,491 3 64 21.2 30.3 2,702,546 53,773 65,698 108,699 1,290,651 1,303,196 32,241 41 131,396 1
configure.ocaml no-host 3,844 1 2 2.6 20.6 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,593 30,593 0 1,518 14,644 14,431 271 0 50,000 0
configure.yash no-host 1,848 1 2 2.5 24.1 139,419 8,031 6,693 5,989 67,945 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 6.0 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.5 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,530 1 61 14.9 27.5 1,771,799 49,070 28,457 85,428 878,134 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,531 3 61 21.2 30.3 2,702,546 53,700 65,656 108,701 1,290,651 1,303,194 32,241 41 131,312 1
configure.ocaml no-host 3,852 1 2 2.6 20.6 150,087 11,057 5,152 7,510 70,972 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.5 24.2 139,419 7,969 6,631 5,991 67,945 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 12 8 4.3 bash
15 no-host abuild-print-help 9 5 5 3.4 dash
23 no-host abuild-print-help 470 427 46 22.8 osh-cpython
31 no-host abuild-print-help 22 16 7 9.0 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 677 519 190 2.9 bash
9 no-host bin-true 554 418 143 1.4 dash
17 no-host bin-true 2,277 1,480 1,050 18.4 osh-cpython
25 no-host bin-true 812 582 244 8.3 osh-native
33 no-host bin-true 818 550 283 7.5 osh-native-souffle
2 no-host configure.cpython 15,162 9,233 6,326 27.5 bash
10 no-host configure.cpython 15,259 9,305 6,380 27.4 dash
18 no-host configure.cpython 29,034 17,650 13,237 27.4 osh-cpython
26 no-host configure.cpython 15,376 9,076 6,573 27.4 osh-native
34 no-host configure.cpython 15,530 9,027 6,578 27.5 osh-native-souffle
4 no-host configure.ocaml 3,830 1,604 1,262 20.6 bash
12 no-host configure.ocaml 3,770 1,599 1,191 20.6 dash
20 no-host configure.ocaml 4,687 2,306 1,591 20.6 osh-cpython
28 no-host configure.ocaml 3,844 1,703 1,177 20.6 osh-native
36 no-host configure.ocaml 3,852 1,650 1,238 20.6 osh-native-souffle
5 no-host configure.tcc 47 24 24 19.4 bash
13 no-host configure.tcc 42 33 9 19.4 dash
21 no-host configure.tcc 204 149 59 19.1 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
37 no-host configure.tcc 49 21 29 19.3 osh-native-souffle
3 no-host configure.util-linux 14,179 8,912 5,734 30.3 bash
11 no-host configure.util-linux 14,993 9,078 6,413 30.0 dash
19 no-host configure.util-linux 31,609 20,891 11,810 30.1 osh-cpython
27 no-host configure.util-linux 14,491 8,817 5,868 30.3 osh-native
35 no-host configure.util-linux 14,531 8,687 6,044 30.3 osh-native-souffle
6 no-host configure.yash 1,825 1,041 792 24.2 bash
14 no-host configure.yash 1,779 1,068 714 24.4 dash
22 no-host configure.yash 2,482 1,508 1,016 24.4 osh-cpython
30 no-host configure.yash 1,848 1,055 797 24.1 osh-native
38 no-host configure.yash 1,827 1,081 751 24.2 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 57 41 16 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 6.0 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,542 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,491 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,168 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,112 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,310 0 0 0 8 0 1,990 71 bash
9 no-host bin-true 66,416 0 0 0 8 0 1,989 245 dash
17 no-host bin-true 758,449 0 0 0 8 0 1,996 150 osh-cpython
25 no-host bin-true 126,188 0 0 0 16 0 1,988 71 osh-native
33 no-host bin-true 127,227 0 0 0 16 0 1,989 103 osh-native-souffle
2 no-host configure.cpython 2,215,462 0 0 0 32,928 0 14,459 1,010 bash
10 no-host configure.cpython 2,247,446 0 0 0 32,992 0 14,639 1,039 dash
18 no-host configure.cpython 6,198,120 0 0 0 27,512 0 13,254 1,152 osh-cpython
26 no-host configure.cpython 2,223,403 0 0 0 27,520 0 13,298 1,079 osh-native
34 no-host configure.cpython 2,216,377 0 0 0 27,520 0 13,289 1,020 osh-native-souffle
4 no-host configure.ocaml 410,973 0 0 0 5,120 0 1,948 148 bash
12 no-host configure.ocaml 391,263 0 0 0 5,112 0 1,938 161 dash
20 no-host configure.ocaml 643,999 0 0 0 5,112 0 1,854 164 osh-cpython
28 no-host configure.ocaml 412,687 0 0 0 5,120 0 1,929 176 osh-native
36 no-host configure.ocaml 412,802 0 0 0 5,120 0 1,929 149 osh-native-souffle
5 no-host configure.tcc 6,590 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,497 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,910 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,919 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,091,403 2 0 0 42,400 0 18,568 955 bash
11 no-host configure.util-linux 2,262,442 0 0 0 42,584 0 17,419 1,035 dash
19 no-host configure.util-linux 5,348,549 12 0 0 39,112 0 16,948 1,194 osh-cpython
27 no-host configure.util-linux 2,003,381 0 0 0 39,120 0 16,981 1,000 osh-native
35 no-host configure.util-linux 1,996,792 0 0 0 39,136 0 16,979 1,011 osh-native-souffle
6 no-host configure.yash 256,216 0 0 0 4,120 0 873 70 bash
14 no-host configure.yash 244,709 0 0 0 3,720 0 870 75 dash
22 no-host configure.yash 387,154 0 0 0 3,728 0 851 82 osh-cpython
30 no-host configure.yash 257,229 0 0 0 3,736 0 851 84 osh-native
38 no-host configure.yash 257,828 0 0 0 3,736 0 851 62 osh-native-souffle
0 no-host hello-world 153 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,954 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5639439d
dash dash-0ebcf347
osh-cpython osh-deda805b
osh-native osh-58035fb6
osh-native-souffle osh-0845259f
host label host id
no-host no-host-556df3ee