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 461 25 21 23.88 1.30
bin-true no-host 694 552 2,349 824 810 3.39 1.19
configure.cpython no-host 15,654 15,493 29,206 15,595 15,765 1.87 1.00
configure.ocaml no-host 3,823 3,807 4,730 3,860 3,843 1.24 1.01
configure.tcc no-host 48 44 218 49 49 4.54 1.03
configure.util-linux no-host 14,535 15,537 31,742 14,705 14,623 2.18 1.01
configure.yash no-host 1,872 1,824 2,524 1,844 1,850 1.35 0.99
hello-world no-host 2 1 60 3 3 38.34 1.84

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,516 1,121 23,644 3,168 3,125 9.40 1.26
bin-true no-host 106,332 66,414 777,909 127,222 124,301 7.32 1.20
configure.cpython no-host 2,221,314 2,246,995 6,228,234 2,224,617 2,214,831 2.80 1.00
configure.ocaml no-host 410,799 390,793 647,742 413,622 412,288 1.58 1.01
configure.tcc no-host 6,537 5,470 23,974 6,942 6,917 3.67 1.06
configure.util-linux no-host 2,097,162 2,265,245 5,352,179 1,998,789 1,989,368 2.55 0.95
configure.yash no-host 256,663 245,195 389,111 257,822 257,918 1.52 1.00
hello-world no-host 153 81 3,985 346 338 26.05 2.26

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 8.8 8.7 5.28 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.10 2.70
configure.cpython no-host 27.4 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.3 30.0 30.3 1.00 0.99
configure.yash no-host 24.4 24.2 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.3 6.3 5.9 6.63 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,790 3,790 0 694 1,862 1,234 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.1 153,754 12,330 2,895 8,743 76,326 68,685 3,008 3 50,000 0
configure.cpython no-host 15,595 1 67 14.9 27.5 1,771,755 49,613 28,520 85,415 878,119 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,705 3 65 21.2 30.0 2,702,521 53,774 65,699 108,691 1,290,644 1,303,186 32,239 41 131,398 1
configure.ocaml no-host 3,860 1 2 2.6 20.4 150,088 11,120 5,215 7,508 70,973 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,518 14,645 14,431 271 0 50,000 0
configure.yash no-host 1,844 1 2 2.5 24.2 139,420 8,032 6,694 5,989 67,946 65,485 2,095 3 50,000 0
abuild-print-help no-host 25 1 2 2.8 8.8 116,300 64,411 42,621 4,532 54,440 57,328 277 3 85,242 1
hello-world no-host 3 0 0 0.2 5.9 3,789 3,789 0 695 1,862 1,232 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.6 153,753 12,119 2,833 8,744 76,326 68,683 3,008 3 50,000 0
configure.cpython no-host 15,765 1 65 14.9 27.4 1,771,754 49,071 28,458 85,416 878,119 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,623 3 63 21.2 30.3 2,702,521 53,701 65,637 108,693 1,290,644 1,303,184 32,239 41 131,274 1
configure.ocaml no-host 3,843 1 2 2.6 20.4 150,088 11,058 5,153 7,510 70,973 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,520 14,645 14,429 271 0 50,000 0
configure.yash no-host 1,850 1 2 2.5 24.4 139,420 7,970 6,632 5,991 67,946 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,299 64,349 42,559 4,533 54,440 57,326 277 3 85,118 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 13 7 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 461 424 40 22.8 osh-cpython
31 no-host abuild-print-help 25 14 12 8.8 osh-native
39 no-host abuild-print-help 21 6 15 8.7 osh-native-souffle
1 no-host bin-true 694 514 210 3.0 bash
9 no-host bin-true 552 417 142 1.4 dash
17 no-host bin-true 2,349 1,454 1,165 18.4 osh-cpython
25 no-host bin-true 824 614 226 8.1 osh-native
33 no-host bin-true 810 582 245 7.6 osh-native-souffle
2 no-host configure.cpython 15,654 9,350 6,714 27.4 bash
10 no-host configure.cpython 15,493 9,334 6,593 27.4 dash
18 no-host configure.cpython 29,206 17,636 13,480 27.4 osh-cpython
26 no-host configure.cpython 15,595 9,241 6,626 27.5 osh-native
34 no-host configure.cpython 15,765 9,206 6,681 27.4 osh-native-souffle
4 no-host configure.ocaml 3,823 1,616 1,248 20.6 bash
12 no-host configure.ocaml 3,807 1,593 1,232 20.6 dash
20 no-host configure.ocaml 4,730 2,295 1,626 20.6 osh-cpython
28 no-host configure.ocaml 3,860 1,660 1,236 20.4 osh-native
36 no-host configure.ocaml 3,843 1,685 1,194 20.4 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 44 28 16 19.4 dash
21 no-host configure.tcc 218 164 57 19.3 osh-cpython
29 no-host configure.tcc 49 39 10 19.3 osh-native
37 no-host configure.tcc 49 26 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,535 9,212 5,811 30.3 bash
11 no-host configure.util-linux 15,537 9,560 6,496 30.3 dash
19 no-host configure.util-linux 31,742 21,044 11,813 30.3 osh-cpython
27 no-host configure.util-linux 14,705 8,829 6,072 30.0 osh-native
35 no-host configure.util-linux 14,623 8,664 6,159 30.3 osh-native-souffle
6 no-host configure.yash 1,872 1,093 788 24.4 bash
14 no-host configure.yash 1,824 1,019 808 24.2 dash
22 no-host configure.yash 2,524 1,480 1,087 24.2 osh-cpython
30 no-host configure.yash 1,844 1,052 795 24.2 osh-native
38 no-host configure.yash 1,850 1,059 795 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 40 19 18.3 osh-cpython
24 no-host hello-world 3 3 0 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,516 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,121 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,644 0 0 0 8 0 45 5 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,125 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,332 0 0 0 8 0 1,993 46 bash
9 no-host bin-true 66,414 0 0 0 8 0 1,993 91 dash
17 no-host bin-true 777,909 0 0 0 8 0 1,996 183 osh-cpython
25 no-host bin-true 127,222 0 0 0 16 0 1,988 122 osh-native
33 no-host bin-true 124,301 0 0 0 16 0 1,987 45 osh-native-souffle
2 no-host configure.cpython 2,221,314 0 0 0 32,952 0 14,512 1,038 bash
10 no-host configure.cpython 2,246,995 0 0 0 32,992 0 14,626 1,111 dash
18 no-host configure.cpython 6,228,234 0 0 0 27,512 0 13,275 1,096 osh-cpython
26 no-host configure.cpython 2,224,617 2 0 0 27,520 0 13,206 1,006 osh-native
34 no-host configure.cpython 2,214,831 1 0 0 27,520 0 13,268 875 osh-native-souffle
4 no-host configure.ocaml 410,799 0 0 0 5,120 0 1,945 148 bash
12 no-host configure.ocaml 390,793 0 0 0 5,112 0 1,871 135 dash
20 no-host configure.ocaml 647,742 1 0 0 5,112 0 1,859 173 osh-cpython
28 no-host configure.ocaml 413,622 0 0 0 5,120 0 1,930 162 osh-native
36 no-host configure.ocaml 412,288 0 0 0 5,120 0 1,935 143 osh-native-souffle
5 no-host configure.tcc 6,537 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,974 0 0 0 96 0 54 18 osh-cpython
29 no-host configure.tcc 6,942 0 0 0 104 0 47 10 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,097,162 0 0 0 42,400 0 18,543 986 bash
11 no-host configure.util-linux 2,265,245 3 0 0 42,584 0 17,534 1,047 dash
19 no-host configure.util-linux 5,352,179 12 0 0 39,112 0 16,904 1,310 osh-cpython
27 no-host configure.util-linux 1,998,789 2 0 0 39,120 0 16,987 1,026 osh-native
35 no-host configure.util-linux 1,989,368 2 0 0 39,136 0 16,977 909 osh-native-souffle
6 no-host configure.yash 256,663 0 0 0 4,120 0 868 69 bash
14 no-host configure.yash 245,195 0 0 0 3,720 0 867 89 dash
22 no-host configure.yash 389,111 0 0 0 3,728 0 853 98 osh-cpython
30 no-host configure.yash 257,822 0 0 0 3,736 0 850 93 osh-native
38 no-host configure.yash 257,918 0 0 0 3,736 0 848 81 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,985 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 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-16e5d7c4
dash dash-0ebcf347
osh-cpython osh-31976ef3
osh-native osh-59af0c1a
osh-native-souffle osh-d3038397
host label host id
no-host no-host-556df3ee