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 466 23 22 23.21 1.15
bin-true no-host 683 552 2,309 827 824 3.38 1.21
configure.cpython no-host 15,583 15,634 29,740 15,795 15,825 1.91 1.01
configure.ocaml no-host 3,921 3,844 4,779 3,928 3,919 1.22 1.00
configure.tcc no-host 49 43 199 50 50 4.05 1.02
configure.util-linux no-host 14,518 15,378 32,245 14,848 14,806 2.22 1.02
configure.yash no-host 1,882 1,834 2,552 1,900 1,882 1.36 1.01
hello-world no-host 2 1 52 3 3 33.18 1.86

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,529 1,123 23,342 3,182 3,089 9.23 1.26
bin-true no-host 107,395 65,435 766,174 124,848 127,760 7.13 1.16
configure.cpython no-host 2,219,481 2,246,131 6,241,879 2,225,727 2,212,945 2.81 1.00
configure.ocaml no-host 410,997 390,831 646,497 412,864 412,080 1.57 1.00
configure.tcc no-host 6,545 5,468 23,614 6,982 6,914 3.61 1.07
configure.util-linux no-host 2,100,031 2,263,834 5,356,745 2,001,099 1,994,573 2.55 0.95
configure.yash no-host 256,446 244,425 389,004 258,557 256,692 1.52 1.01
hello-world no-host 152 81 3,744 351 343 24.63 2.31

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.4 21.9 9.2 8.7 4.91 2.06
bin-true no-host 2.9 1.6 17.8 7.9 7.7 6.18 2.73
configure.cpython no-host 27.4 27.1 27.4 27.3 27.3 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.3 30.0 30.0 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.1 24.2 24.2 0.98 0.99
hello-world no-host 2.8 1.4 17.7 6.3 6.0 6.43 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,775 3,775 0 696 1,852 1,227 2 0 50,000 0
bin-true no-host 827 1 2 2.6 7.9 154,740 13,220 2,877 9,746 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,795 1 63 15.0 27.3 1,772,722 49,854 28,587 86,399 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,848 3 63 21.3 30.0 2,703,490 29,745 65,870 109,677 1,320,579 1,273,234 27,391 41 131,740 1
configure.ocaml no-host 3,928 1 2 2.6 20.6 150,096 11,051 5,221 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,900 1 2 2.6 24.2 139,749 8,020 6,679 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,324 64,530 42,740 4,573 54,521 57,230 270 3 85,480 1
hello-world no-host 3 0 0 0.2 6.0 3,774 3,774 0 697 1,852 1,225 2 0 50,000 0
bin-true no-host 824 1 2 2.6 7.7 154,739 13,063 2,815 9,747 78,321 66,671 3,008 3 50,000 0
configure.cpython no-host 15,825 1 64 14.9 27.3 1,772,721 49,105 28,525 86,400 908,073 778,248 22,694 60 50,000 0
configure.util-linux no-host 14,806 3 63 21.3 30.1 2,703,490 42,741 65,808 109,679 1,320,579 1,273,232 27,391 41 131,616 1
configure.ocaml no-host 3,919 1 2 2.6 20.6 150,096 10,989 5,159 7,535 71,606 70,955 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,581 30,581 0 1,524 14,776 14,281 226 0 50,000 0
configure.yash no-host 1,882 1 2 2.6 24.2 139,749 7,958 6,617 6,340 70,281 63,128 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,323 64,468 42,678 4,574 54,521 57,228 270 3 85,356 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 15 6 4.5 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 466 415 55 21.9 osh-cpython
31 no-host abuild-print-help 23 23 0 9.2 osh-native
39 no-host abuild-print-help 22 14 8 8.7 osh-native-souffle
1 no-host bin-true 683 505 211 2.9 bash
9 no-host bin-true 552 414 146 1.6 dash
17 no-host bin-true 2,309 1,491 1,099 17.8 osh-cpython
25 no-host bin-true 827 583 261 7.9 osh-native
33 no-host bin-true 824 589 250 7.7 osh-native-souffle
2 no-host configure.cpython 15,583 9,184 6,809 27.4 bash
10 no-host configure.cpython 15,634 9,362 6,701 27.1 dash
18 no-host configure.cpython 29,740 18,101 13,597 27.4 osh-cpython
26 no-host configure.cpython 15,795 9,238 6,828 27.3 osh-native
34 no-host configure.cpython 15,825 9,339 6,664 27.3 osh-native-souffle
4 no-host configure.ocaml 3,921 1,698 1,243 20.4 bash
12 no-host configure.ocaml 3,844 1,634 1,228 20.6 dash
20 no-host configure.ocaml 4,779 2,381 1,615 20.6 osh-cpython
28 no-host configure.ocaml 3,928 1,683 1,286 20.6 osh-native
36 no-host configure.ocaml 3,919 1,650 1,305 20.6 osh-native-souffle
5 no-host configure.tcc 49 29 20 19.4 bash
13 no-host configure.tcc 43 24 20 19.4 dash
21 no-host configure.tcc 199 161 42 19.3 osh-cpython
29 no-host configure.tcc 50 33 17 19.3 osh-native
37 no-host configure.tcc 50 31 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,518 9,015 5,974 30.1 bash
11 no-host configure.util-linux 15,378 9,337 6,540 30.3 dash
19 no-host configure.util-linux 32,245 21,682 11,717 30.0 osh-cpython
27 no-host configure.util-linux 14,848 8,969 6,079 30.0 osh-native
35 no-host configure.util-linux 14,806 8,903 6,098 30.1 osh-native-souffle
6 no-host configure.yash 1,882 1,069 822 24.5 bash
14 no-host configure.yash 1,834 1,072 765 24.2 dash
22 no-host configure.yash 2,552 1,561 1,037 24.1 osh-cpython
30 no-host configure.yash 1,900 1,076 828 24.2 osh-native
38 no-host configure.yash 1,882 1,060 826 24.2 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 52 28 23 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,529 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,123 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,342 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,182 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 107,395 0 0 0 8 0 1,990 55 bash
9 no-host bin-true 65,435 0 0 0 8 0 1,987 43 dash
17 no-host bin-true 766,174 0 0 0 8 0 2,000 229 osh-cpython
25 no-host bin-true 124,848 0 0 0 16 0 1,994 259 osh-native
33 no-host bin-true 127,760 0 0 0 16 0 1,988 58 osh-native-souffle
2 no-host configure.cpython 2,219,481 0 0 0 32,928 0 14,497 1,332 bash
10 no-host configure.cpython 2,246,131 0 0 0 32,992 0 14,625 1,123 dash
18 no-host configure.cpython 6,241,879 1 0 0 27,512 0 13,222 1,306 osh-cpython
26 no-host configure.cpython 2,225,727 0 0 0 27,520 0 13,253 1,136 osh-native
34 no-host configure.cpython 2,212,945 0 0 0 27,520 0 13,286 932 osh-native-souffle
4 no-host configure.ocaml 410,997 0 0 0 5,120 0 1,951 164 bash
12 no-host configure.ocaml 390,831 0 0 0 5,112 0 1,870 134 dash
20 no-host configure.ocaml 646,497 0 0 0 5,112 0 1,861 256 osh-cpython
28 no-host configure.ocaml 412,864 0 0 0 5,120 0 1,929 163 osh-native
36 no-host configure.ocaml 412,080 0 0 0 5,120 0 1,930 160 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,614 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,914 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,100,031 0 0 0 42,408 0 18,561 1,272 bash
11 no-host configure.util-linux 2,263,834 1 0 0 42,592 0 17,454 1,254 dash
19 no-host configure.util-linux 5,356,745 8 0 0 39,136 0 16,911 1,334 osh-cpython
27 no-host configure.util-linux 2,001,099 1 0 0 39,128 0 16,952 988 osh-native
35 no-host configure.util-linux 1,994,573 1 0 0 39,136 0 17,009 1,126 osh-native-souffle
6 no-host configure.yash 256,446 0 0 0 4,120 0 867 77 bash
14 no-host configure.yash 244,425 0 0 0 3,720 0 862 90 dash
22 no-host configure.yash 389,004 0 0 0 3,728 0 853 106 osh-cpython
30 no-host configure.yash 258,557 0 0 0 3,736 0 850 90 osh-native
38 no-host configure.yash 256,692 0 0 0 3,736 0 848 81 osh-native-souffle
0 no-host hello-world 152 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,744 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c632d179
dash dash-0ebcf347
osh-cpython osh-fde38fbe
osh-native osh-aa869e38
osh-native-souffle osh-e4c70f44
host label host id
no-host no-host-556df3ee