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 23 21 24.09 1.15
bin-true no-host 680 544 2,268 810 829 3.33 1.19
configure.cpython no-host 15,027 15,085 29,027 15,888 15,720 1.93 1.06
configure.ocaml no-host 3,805 3,758 4,826 3,903 3,885 1.27 1.03
configure.tcc no-host 48 42 201 49 49 4.19 1.02
configure.util-linux no-host 14,012 15,141 32,094 14,573 14,702 2.29 1.04
configure.yash no-host 1,825 1,776 2,536 1,893 1,862 1.39 1.04
hello-world no-host 2 1 49 3 3 32.63 1.94

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,522 1,110 23,342 3,178 3,080 9.26 1.26
bin-true no-host 106,349 66,417 771,964 123,916 125,893 7.26 1.17
configure.cpython no-host 2,224,612 2,244,882 6,228,858 2,222,959 2,215,790 2.80 1.00
configure.ocaml no-host 410,505 391,038 645,728 412,998 412,724 1.57 1.01
configure.tcc no-host 6,556 5,487 23,746 6,987 6,909 3.62 1.07
configure.util-linux no-host 2,104,439 2,259,803 5,366,193 2,001,939 1,985,041 2.55 0.95
configure.yash no-host 256,557 244,604 386,889 258,267 257,057 1.51 1.01
hello-world no-host 150 81 3,750 350 346 25.00 2.33

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 22.2 9.0 8.5 4.97 2.03
bin-true no-host 2.9 1.6 17.6 8.0 7.7 6.09 2.77
configure.cpython no-host 27.4 27.3 27.4 27.1 27.3 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.3 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.2 24.2 1.01 1.00
hello-world no-host 2.8 1.4 17.7 6.4 6.0 6.43 2.33

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.4 3,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.0 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,888 1 67 15.0 27.1 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,573 3 64 21.3 30.3 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,903 1 2 2.6 20.6 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.4 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,893 1 2 2.6 24.2 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 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 6.0 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 829 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,720 1 66 14.9 27.3 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,702 3 67 21.3 30.0 2,703,495 42,748 65,815 109,678 1,320,584 1,273,233 27,391 41 131,630 1
configure.ocaml no-host 3,885 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.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,862 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 21 1 2 2.8 8.5 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 20 17 3 4.5 bash
15 no-host abuild-print-help 10 8 1 3.4 dash
23 no-host abuild-print-help 471 443 31 22.2 osh-cpython
31 no-host abuild-print-help 23 15 8 9.0 osh-native
39 no-host abuild-print-help 21 13 8 8.5 osh-native-souffle
1 no-host bin-true 680 505 208 2.9 bash
9 no-host bin-true 544 428 125 1.6 dash
17 no-host bin-true 2,268 1,549 981 17.6 osh-cpython
25 no-host bin-true 810 564 260 8.0 osh-native
33 no-host bin-true 829 561 281 7.7 osh-native-souffle
2 no-host configure.cpython 15,027 9,086 6,335 27.4 bash
10 no-host configure.cpython 15,085 9,226 6,274 27.3 dash
18 no-host configure.cpython 29,027 17,655 13,270 27.4 osh-cpython
26 no-host configure.cpython 15,888 9,377 6,782 27.1 osh-native
34 no-host configure.cpython 15,720 9,042 6,777 27.3 osh-native-souffle
4 no-host configure.ocaml 3,805 1,638 1,206 20.6 bash
12 no-host configure.ocaml 3,758 1,555 1,221 20.6 dash
20 no-host configure.ocaml 4,826 2,374 1,667 20.6 osh-cpython
28 no-host configure.ocaml 3,903 1,627 1,315 20.6 osh-native
36 no-host configure.ocaml 3,885 1,697 1,222 20.6 osh-native-souffle
5 no-host configure.tcc 48 36 13 19.3 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 201 174 31 19.3 osh-cpython
29 no-host configure.tcc 49 38 12 19.4 osh-native
37 no-host configure.tcc 49 33 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,012 8,861 5,619 30.3 bash
11 no-host configure.util-linux 15,141 9,227 6,403 30.1 dash
19 no-host configure.util-linux 32,094 21,487 11,744 30.1 osh-cpython
27 no-host configure.util-linux 14,573 8,772 6,004 30.3 osh-native
35 no-host configure.util-linux 14,702 8,725 6,166 30.0 osh-native-souffle
6 no-host configure.yash 1,825 1,101 732 24.2 bash
14 no-host configure.yash 1,776 1,011 766 24.4 dash
22 no-host configure.yash 2,536 1,453 1,128 24.5 osh-cpython
30 no-host configure.yash 1,893 1,053 845 24.2 osh-native
38 no-host configure.yash 1,862 1,024 843 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 49 21 28 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 0 3 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,522 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,342 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 38 3 osh-native
39 no-host abuild-print-help 3,080 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,349 0 0 0 8 0 1,990 44 bash
9 no-host bin-true 66,417 0 0 0 8 0 1,988 46 dash
17 no-host bin-true 771,964 0 0 0 8 0 1,993 116 osh-cpython
25 no-host bin-true 123,916 0 0 0 16 0 1,987 54 osh-native
33 no-host bin-true 125,893 0 0 0 16 0 1,994 165 osh-native-souffle
2 no-host configure.cpython 2,224,612 0 0 0 32,928 0 14,548 1,249 bash
10 no-host configure.cpython 2,244,882 0 0 0 32,992 0 14,677 1,040 dash
18 no-host configure.cpython 6,228,858 0 0 0 27,512 0 13,196 1,229 osh-cpython
26 no-host configure.cpython 2,222,959 0 0 0 27,520 0 13,249 980 osh-native
34 no-host configure.cpython 2,215,790 1 0 0 27,520 0 13,282 1,095 osh-native-souffle
4 no-host configure.ocaml 410,505 0 0 0 5,120 0 1,948 156 bash
12 no-host configure.ocaml 391,038 0 0 0 5,112 0 1,880 156 dash
20 no-host configure.ocaml 645,728 0 0 0 5,112 0 1,855 206 osh-cpython
28 no-host configure.ocaml 412,998 0 0 0 5,120 0 1,925 173 osh-native
36 no-host configure.ocaml 412,724 0 0 0 5,120 0 1,932 158 osh-native-souffle
5 no-host configure.tcc 6,556 0 0 0 104 0 48 11 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,746 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,439 0 0 0 42,400 0 18,595 985 bash
11 no-host configure.util-linux 2,259,803 0 0 0 42,584 0 17,457 1,153 dash
19 no-host configure.util-linux 5,366,193 6 0 0 39,128 0 17,106 1,367 osh-cpython
27 no-host configure.util-linux 2,001,939 0 0 0 39,120 0 16,977 1,167 osh-native
35 no-host configure.util-linux 1,985,041 1 0 0 39,128 0 17,097 984 osh-native-souffle
6 no-host configure.yash 256,557 0 0 0 4,120 0 871 102 bash
14 no-host configure.yash 244,604 0 0 0 3,720 0 870 71 dash
22 no-host configure.yash 386,889 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 258,267 0 0 0 3,736 0 851 90 osh-native
38 no-host configure.yash 257,057 0 0 0 3,736 0 849 75 osh-native-souffle
0 no-host hello-world 150 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,750 0 0 0 8 0 6 4 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6221dddb
dash dash-0ebcf347
osh-cpython osh-d1816fee
osh-native osh-e50c06a1
osh-native-souffle osh-7b325aea
host label host id
no-host no-host-556df3ee