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 20 10 471 22 21 23.00 1.06
bin-true no-host 674 543 2,309 814 812 3.42 1.21
configure.cpython no-host 15,079 15,208 29,083 15,350 15,260 1.93 1.02
configure.ocaml no-host 3,819 3,772 4,677 3,866 3,831 1.22 1.01
configure.tcc no-host 48 42 204 49 48 4.25 1.02
configure.util-linux no-host 14,084 15,011 31,556 14,496 14,430 2.24 1.03
configure.yash no-host 1,829 1,771 2,494 1,857 1,835 1.36 1.02
hello-world no-host 2 1 57 3 3 35.59 1.75

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,540 1,098 23,642 3,173 3,083 9.31 1.25
bin-true no-host 106,290 66,441 761,065 127,085 124,237 7.16 1.20
configure.cpython no-host 2,218,928 2,243,128 6,211,709 2,223,384 2,212,153 2.80 1.00
configure.ocaml no-host 410,484 390,502 643,077 413,593 411,996 1.57 1.01
configure.tcc no-host 6,549 5,491 23,853 6,949 6,918 3.64 1.06
configure.util-linux no-host 2,092,703 2,262,465 5,357,604 1,997,141 1,984,033 2.56 0.95
configure.yash no-host 256,642 244,520 387,209 257,808 257,979 1.51 1.00
hello-world no-host 154 82 3,972 343 338 25.79 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.0 8.7 5.13 2.03
bin-true no-host 3.0 1.4 18.3 8.1 7.6 6.06 2.70
configure.cpython no-host 27.5 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.7 1.00 1.00
configure.tcc no-host 19.3 19.4 19.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 814 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,350 1 62 14.9 27.4 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,496 3 60 21.2 30.1 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,866 1 2 2.6 20.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 49 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,857 1 2 2.5 24.4 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 812 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,260 1 61 14.9 27.4 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,430 3 59 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,831 1 2 2.6 20.7 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,835 1 2 2.5 24.4 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.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 20 16 4 4.5 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 471 417 57 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 674 507 200 3.0 bash
9 no-host bin-true 543 411 138 1.4 dash
17 no-host bin-true 2,309 1,509 1,054 18.3 osh-cpython
25 no-host bin-true 814 582 247 8.1 osh-native
33 no-host bin-true 812 587 240 7.6 osh-native-souffle
2 no-host configure.cpython 15,079 8,969 6,488 27.5 bash
10 no-host configure.cpython 15,208 8,997 6,628 27.4 dash
18 no-host configure.cpython 29,083 17,426 13,485 27.4 osh-cpython
26 no-host configure.cpython 15,350 9,091 6,516 27.4 osh-native
34 no-host configure.cpython 15,260 9,102 6,417 27.4 osh-native-souffle
4 no-host configure.ocaml 3,819 1,595 1,263 20.6 bash
12 no-host configure.ocaml 3,772 1,587 1,202 20.4 dash
20 no-host configure.ocaml 4,677 2,243 1,643 20.6 osh-cpython
28 no-host configure.ocaml 3,866 1,672 1,232 20.6 osh-native
36 no-host configure.ocaml 3,831 1,629 1,238 20.7 osh-native-souffle
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 204 155 52 19.4 osh-cpython
29 no-host configure.tcc 49 23 26 19.3 osh-native
37 no-host configure.tcc 48 35 13 19.3 osh-native-souffle
3 no-host configure.util-linux 14,084 8,853 5,704 30.1 bash
11 no-host configure.util-linux 15,011 9,320 6,191 30.1 dash
19 no-host configure.util-linux 31,556 20,930 11,703 30.3 osh-cpython
27 no-host configure.util-linux 14,496 8,769 5,904 30.1 osh-native
35 no-host configure.util-linux 14,430 8,703 5,897 30.3 osh-native-souffle
6 no-host configure.yash 1,829 1,058 780 24.4 bash
14 no-host configure.yash 1,771 1,127 647 24.4 dash
22 no-host configure.yash 2,494 1,674 862 24.4 osh-cpython
30 no-host configure.yash 1,857 1,050 811 24.4 osh-native
38 no-host configure.yash 1,835 1,087 752 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 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.3 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,540 0 0 0 16 0 42 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,642 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,083 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,290 0 0 0 8 0 1,994 32 bash
9 no-host bin-true 66,441 0 0 0 8 0 1,986 41 dash
17 no-host bin-true 761,065 0 0 0 8 0 1,999 152 osh-cpython
25 no-host bin-true 127,085 0 0 0 16 0 1,997 76 osh-native
33 no-host bin-true 124,237 0 0 0 16 0 1,995 113 osh-native-souffle
2 no-host configure.cpython 2,218,928 0 0 0 32,928 0 14,475 1,176 bash
10 no-host configure.cpython 2,243,128 0 0 0 32,992 0 14,667 1,152 dash
18 no-host configure.cpython 6,211,709 0 0 0 27,512 0 13,281 1,278 osh-cpython
26 no-host configure.cpython 2,223,384 0 0 0 27,520 0 13,169 941 osh-native
34 no-host configure.cpython 2,212,153 0 0 0 27,520 0 13,159 1,096 osh-native-souffle
4 no-host configure.ocaml 410,484 0 0 0 5,120 0 1,952 161 bash
12 no-host configure.ocaml 390,502 0 0 0 5,112 0 1,899 148 dash
20 no-host configure.ocaml 643,077 1 0 0 5,112 0 1,866 174 osh-cpython
28 no-host configure.ocaml 413,593 0 0 0 5,120 0 1,933 167 osh-native
36 no-host configure.ocaml 411,996 0 0 0 5,120 0 1,937 152 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,853 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,949 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,092,703 0 0 0 42,400 0 18,584 975 bash
11 no-host configure.util-linux 2,262,465 0 0 0 42,592 0 17,344 1,136 dash
19 no-host configure.util-linux 5,357,604 8 0 0 39,112 0 16,953 1,184 osh-cpython
27 no-host configure.util-linux 1,997,141 3 0 0 39,120 0 17,128 1,129 osh-native
35 no-host configure.util-linux 1,984,033 5 0 0 39,128 0 16,939 1,041 osh-native-souffle
6 no-host configure.yash 256,642 0 0 0 4,120 0 869 92 bash
14 no-host configure.yash 244,520 0 0 0 3,720 0 870 83 dash
22 no-host configure.yash 387,209 0 0 0 3,728 0 850 98 osh-cpython
30 no-host configure.yash 257,808 0 0 0 3,736 0 850 66 osh-native
38 no-host configure.yash 257,979 0 0 0 3,736 0 849 86 osh-native-souffle
0 no-host hello-world 154 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,972 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 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-7344468e
dash dash-0ebcf347
osh-cpython osh-7c56a7b8
osh-native osh-063c652b
osh-native-souffle osh-e99be980
host label host id
no-host no-host-556df3ee