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 473 22 21 24.91 1.14
bin-true no-host 674 541 2,284 809 802 3.39 1.20
configure.cpython no-host 14,878 14,901 28,661 15,163 15,140 1.93 1.02
configure.ocaml no-host 3,771 3,716 4,621 3,799 3,794 1.23 1.01
configure.tcc no-host 47 41 203 48 48 4.32 1.02
configure.util-linux no-host 13,869 14,825 31,234 14,241 14,326 2.25 1.03
configure.yash no-host 1,809 1,758 2,460 1,806 1,810 1.36 1.00
hello-world no-host 1 1 56 3 3 37.68 1.95

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,513 1,129 23,661 3,163 3,101 9.42 1.26
bin-true no-host 105,387 66,402 761,128 125,107 126,280 7.22 1.19
configure.cpython no-host 2,219,827 2,249,199 6,208,926 2,227,189 2,207,311 2.80 1.00
configure.ocaml no-host 410,704 391,023 643,111 413,100 412,945 1.57 1.01
configure.tcc no-host 6,544 5,475 23,903 6,958 6,923 3.65 1.06
configure.util-linux no-host 2,095,765 2,266,162 5,355,605 1,995,658 1,987,179 2.56 0.95
configure.yash no-host 256,142 245,022 387,359 257,969 258,066 1.51 1.01
hello-world no-host 151 83 3,965 344 339 26.26 2.28

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.2 3.5 22.7 9.0 8.5 5.42 2.16
bin-true no-host 2.9 1.4 18.3 8.1 7.6 6.35 2.82
configure.cpython no-host 27.4 27.4 27.5 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.7 20.6 20.6 20.4 20.6 0.99 0.99
configure.tcc no-host 19.4 19.3 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.1 24.2 1.01 0.99
hello-world no-host 2.9 1.4 18.3 6.2 5.9 6.33 2.14

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 809 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,163 1 61 14.9 27.3 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 14,241 3 59 21.2 30.3 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,799 1 2 2.6 20.4 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,806 1 2 2.5 24.1 139,269 8,031 6,693 5,989 67,845 65,435 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 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 15,140 1 61 14.9 27.5 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 14,326 3 60 21.2 30.3 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,794 1 2 2.6 20.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,810 1 2 2.5 24.2 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 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 17 3 4.2 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 473 433 42 22.7 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.5 osh-native-souffle
1 no-host bin-true 674 503 202 2.9 bash
9 no-host bin-true 541 415 136 1.4 dash
17 no-host bin-true 2,284 1,456 1,081 18.3 osh-cpython
25 no-host bin-true 809 579 244 8.1 osh-native
33 no-host bin-true 802 565 251 7.6 osh-native-souffle
2 no-host configure.cpython 14,878 8,988 6,294 27.4 bash
10 no-host configure.cpython 14,901 8,975 6,346 27.4 dash
18 no-host configure.cpython 28,661 17,685 12,799 27.5 osh-cpython
26 no-host configure.cpython 15,163 8,835 6,602 27.3 osh-native
34 no-host configure.cpython 15,140 9,039 6,362 27.5 osh-native-souffle
4 no-host configure.ocaml 3,771 1,635 1,176 20.7 bash
12 no-host configure.ocaml 3,716 1,555 1,180 20.6 dash
20 no-host configure.ocaml 4,621 2,316 1,513 20.6 osh-cpython
28 no-host configure.ocaml 3,799 1,644 1,194 20.4 osh-native
36 no-host configure.ocaml 3,794 1,655 1,174 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 16 19.4 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 203 154 52 19.3 osh-cpython
29 no-host configure.tcc 48 22 27 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 13,869 8,743 5,598 30.3 bash
11 no-host configure.util-linux 14,825 9,012 6,307 30.3 dash
19 no-host configure.util-linux 31,234 21,152 11,151 30.1 osh-cpython
27 no-host configure.util-linux 14,241 8,568 5,870 30.3 osh-native
35 no-host configure.util-linux 14,326 8,538 5,996 30.3 osh-native-souffle
6 no-host configure.yash 1,809 1,086 731 24.4 bash
14 no-host configure.yash 1,758 974 788 24.2 dash
22 no-host configure.yash 2,460 1,603 898 24.5 osh-cpython
30 no-host configure.yash 1,806 1,055 754 24.1 osh-native
38 no-host configure.yash 1,810 1,061 753 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 32 24 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 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,513 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,661 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,163 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,101 0 0 0 16 0 38 0 osh-native-souffle
1 no-host bin-true 105,387 0 0 0 8 0 1,990 135 bash
9 no-host bin-true 66,402 0 0 0 8 0 1,989 55 dash
17 no-host bin-true 761,128 0 0 0 8 0 1,996 153 osh-cpython
25 no-host bin-true 125,107 0 0 0 16 0 1,995 61 osh-native
33 no-host bin-true 126,280 0 0 0 16 0 1,995 76 osh-native-souffle
2 no-host configure.cpython 2,219,827 0 0 0 32,928 0 14,490 1,016 bash
10 no-host configure.cpython 2,249,199 0 0 0 32,992 0 14,631 955 dash
18 no-host configure.cpython 6,208,926 0 0 0 27,512 0 13,188 1,226 osh-cpython
26 no-host configure.cpython 2,227,189 1 0 0 27,520 0 13,230 1,077 osh-native
34 no-host configure.cpython 2,207,311 0 0 0 27,520 0 13,209 988 osh-native-souffle
4 no-host configure.ocaml 410,704 0 0 0 5,120 0 1,948 165 bash
12 no-host configure.ocaml 391,023 0 0 0 5,112 0 1,897 155 dash
20 no-host configure.ocaml 643,111 0 0 0 5,112 0 1,859 189 osh-cpython
28 no-host configure.ocaml 413,100 0 0 0 5,120 0 1,927 155 osh-native
36 no-host configure.ocaml 412,945 0 0 0 5,120 0 1,931 168 osh-native-souffle
5 no-host configure.tcc 6,544 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,903 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,958 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,923 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,095,765 0 0 0 42,400 0 18,542 1,118 bash
11 no-host configure.util-linux 2,266,162 1 0 0 42,584 0 17,451 1,149 dash
19 no-host configure.util-linux 5,355,605 19 0 0 39,120 0 16,974 1,133 osh-cpython
27 no-host configure.util-linux 1,995,658 0 0 0 39,120 0 16,913 1,014 osh-native
35 no-host configure.util-linux 1,987,179 2 0 0 39,128 0 17,010 987 osh-native-souffle
6 no-host configure.yash 256,142 0 0 0 4,120 0 866 202 bash
14 no-host configure.yash 245,022 0 0 0 3,720 0 873 72 dash
22 no-host configure.yash 387,359 0 0 0 3,728 0 851 101 osh-cpython
30 no-host configure.yash 257,969 0 0 0 3,744 0 848 80 osh-native
38 no-host configure.yash 258,066 0 0 0 3,736 0 851 92 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 1 dash
16 no-host hello-world 3,965 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5c0a30e5
dash dash-0ebcf347
osh-cpython osh-954cd493
osh-native osh-878fade4
osh-native-souffle osh-3e4350d0
host label host id
no-host no-host-556df3ee