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 462 22 22 23.96 1.14
bin-true no-host 677 549 2,357 826 808 3.48 1.22
configure.cpython no-host 15,164 15,250 29,299 15,451 15,405 1.93 1.02
configure.ocaml no-host 3,823 3,755 4,719 3,833 3,915 1.23 1.00
configure.tcc no-host 48 43 199 49 49 4.14 1.01
configure.util-linux no-host 14,342 14,967 31,831 14,608 14,514 2.22 1.02
configure.yash no-host 1,857 1,806 2,524 1,855 1,909 1.36 1.00
hello-world no-host 2 1 52 3 3 33.06 2.08

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,527 1,135 23,378 3,144 3,123 9.25 1.24
bin-true no-host 106,305 66,391 774,098 128,769 125,924 7.28 1.21
configure.cpython no-host 2,219,464 2,240,962 6,226,049 2,237,162 2,215,399 2.81 1.01
configure.ocaml no-host 410,312 390,655 646,974 413,844 412,671 1.58 1.01
configure.tcc no-host 6,554 5,491 23,799 7,026 6,927 3.63 1.07
configure.util-linux no-host 2,107,736 2,263,036 5,372,238 2,010,784 1,993,729 2.55 0.95
configure.yash no-host 256,925 244,469 386,260 258,185 257,865 1.50 1.00
hello-world no-host 153 81 3,750 351 346 24.51 2.29

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.8 8.9 8.7 4.88 2.00
bin-true no-host 2.9 1.4 17.7 8.1 7.7 6.14 2.82
configure.cpython no-host 27.4 27.4 27.1 27.5 27.4 0.99 1.00
configure.ocaml no-host 20.4 20.6 20.4 20.4 20.6 1.00 1.00
configure.tcc no-host 19.1 19.4 19.4 19.1 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.5 24.2 1.01 1.01
hello-world no-host 2.8 1.4 17.6 6.3 5.8 6.38 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,451 1 60 15.0 27.5 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,608 3 61 21.3 30.0 2,703,495 29,752 65,877 109,676 1,320,584 1,273,235 27,391 41 131,754 1
configure.ocaml no-host 3,833 1 2 2.6 20.4 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.5 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,405 1 62 14.9 27.4 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,514 3 61 21.3 30.1 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,915 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,909 1 2 2.6 24.2 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 14 6 4.5 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 462 418 47 21.8 osh-cpython
31 no-host abuild-print-help 22 14 8 8.9 osh-native
39 no-host abuild-print-help 22 13 9 8.7 osh-native-souffle
1 no-host bin-true 677 498 210 2.9 bash
9 no-host bin-true 549 423 136 1.4 dash
17 no-host bin-true 2,357 1,553 1,080 17.7 osh-cpython
25 no-host bin-true 826 595 246 8.1 osh-native
33 no-host bin-true 808 581 243 7.7 osh-native-souffle
2 no-host configure.cpython 15,164 9,164 6,403 27.4 bash
10 no-host configure.cpython 15,250 9,210 6,461 27.4 dash
18 no-host configure.cpython 29,299 17,639 13,581 27.1 osh-cpython
26 no-host configure.cpython 15,451 9,024 6,704 27.5 osh-native
34 no-host configure.cpython 15,405 9,033 6,551 27.4 osh-native-souffle
4 no-host configure.ocaml 3,823 1,688 1,174 20.4 bash
12 no-host configure.ocaml 3,755 1,660 1,114 20.6 dash
20 no-host configure.ocaml 4,719 2,265 1,672 20.4 osh-cpython
28 no-host configure.ocaml 3,833 1,650 1,224 20.4 osh-native
36 no-host configure.ocaml 3,915 1,747 1,207 20.6 osh-native-souffle
5 no-host configure.tcc 48 21 28 19.1 bash
13 no-host configure.tcc 43 29 15 19.4 dash
21 no-host configure.tcc 199 139 63 19.4 osh-cpython
29 no-host configure.tcc 49 41 9 19.1 osh-native
37 no-host configure.tcc 49 39 11 19.3 osh-native-souffle
3 no-host configure.util-linux 14,342 9,130 5,690 30.1 bash
11 no-host configure.util-linux 14,967 9,192 6,270 30.1 dash
19 no-host configure.util-linux 31,831 21,394 11,561 30.1 osh-cpython
27 no-host configure.util-linux 14,608 8,725 6,068 30.0 osh-native
35 no-host configure.util-linux 14,514 8,706 6,002 30.1 osh-native-souffle
6 no-host configure.yash 1,857 1,101 763 24.2 bash
14 no-host configure.yash 1,806 1,054 755 24.4 dash
22 no-host configure.yash 2,524 1,517 1,049 24.5 osh-cpython
30 no-host configure.yash 1,855 1,070 789 24.5 osh-native
38 no-host configure.yash 1,909 1,091 823 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 52 38 13 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,527 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,135 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,378 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,144 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,123 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,305 0 0 0 8 0 1,988 38 bash
9 no-host bin-true 66,391 0 0 0 8 0 1,987 53 dash
17 no-host bin-true 774,098 0 0 0 8 0 1,997 254 osh-cpython
25 no-host bin-true 128,769 0 0 0 16 0 1,987 101 osh-native
33 no-host bin-true 125,924 0 0 0 16 0 1,993 44 osh-native-souffle
2 no-host configure.cpython 2,219,464 0 0 0 32,928 0 14,366 1,081 bash
10 no-host configure.cpython 2,240,962 0 0 0 32,992 0 14,691 1,053 dash
18 no-host configure.cpython 6,226,049 0 0 0 27,512 0 13,235 1,406 osh-cpython
26 no-host configure.cpython 2,237,162 0 0 0 27,520 0 13,260 1,040 osh-native
34 no-host configure.cpython 2,215,399 0 0 0 27,520 0 13,266 1,047 osh-native-souffle
4 no-host configure.ocaml 410,312 0 0 0 5,120 0 1,950 187 bash
12 no-host configure.ocaml 390,655 0 0 0 5,112 0 1,932 176 dash
20 no-host configure.ocaml 646,974 0 0 0 5,112 0 1,858 163 osh-cpython
28 no-host configure.ocaml 413,844 0 0 0 5,120 0 1,923 194 osh-native
36 no-host configure.ocaml 412,671 0 0 0 5,120 0 1,934 141 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 46 11 dash
21 no-host configure.tcc 23,799 0 0 0 96 0 52 17 osh-cpython
29 no-host configure.tcc 7,026 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,927 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,107,736 0 0 0 42,408 0 18,549 1,245 bash
11 no-host configure.util-linux 2,263,036 3 0 0 42,592 0 17,451 1,087 dash
19 no-host configure.util-linux 5,372,238 5 0 0 39,136 0 16,975 1,266 osh-cpython
27 no-host configure.util-linux 2,010,784 0 0 0 39,128 0 16,968 1,000 osh-native
35 no-host configure.util-linux 1,993,729 1 0 0 39,136 0 16,994 1,111 osh-native-souffle
6 no-host configure.yash 256,925 0 0 0 4,120 0 869 79 bash
14 no-host configure.yash 244,469 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 386,260 0 0 0 3,728 0 851 235 osh-cpython
30 no-host configure.yash 258,185 0 0 0 3,736 0 848 89 osh-native
38 no-host configure.yash 257,865 0 0 0 3,736 0 847 98 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 1 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,750 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-379ace09
dash dash-0ebcf347
osh-cpython osh-9e27bb5b
osh-native osh-9f3921a4
osh-native-souffle osh-fcaaf271
host label host id
no-host no-host-556df3ee