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 465 22 21 24.62 1.16
bin-true no-host 684 536 2,286 800 802 3.34 1.17
configure.cpython no-host 15,139 14,911 28,423 15,460 15,172 1.88 1.02
configure.ocaml no-host 3,789 3,710 4,607 3,824 3,831 1.22 1.01
configure.tcc no-host 47 42 202 50 49 4.31 1.07
configure.util-linux no-host 13,930 14,696 31,219 14,251 14,347 2.24 1.02
configure.yash no-host 1,796 1,791 2,470 1,819 1,821 1.38 1.01
hello-world no-host 2 1 57 3 3 36.42 1.84

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,563 1,109 23,734 3,167 3,103 9.26 1.24
bin-true no-host 108,317 66,477 771,443 125,285 125,243 7.12 1.16
configure.cpython no-host 2,220,020 2,245,927 6,191,793 2,216,347 2,201,773 2.79 1.00
configure.ocaml no-host 410,406 391,260 646,136 413,460 412,962 1.57 1.01
configure.tcc no-host 6,539 5,495 24,042 6,960 6,924 3.68 1.06
configure.util-linux no-host 2,109,334 2,260,051 5,399,051 1,996,620 1,989,295 2.56 0.95
configure.yash no-host 256,115 245,122 387,784 258,287 257,611 1.51 1.01
hello-world no-host 153 85 3,945 341 333 25.78 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.4 22.8 9.2 8.7 5.12 2.06
bin-true no-host 3.0 1.4 18.2 8.1 7.7 6.05 2.70
configure.cpython no-host 27.5 27.5 27.3 27.3 27.4 0.99 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.9 1.6 18.2 6.2 5.9 6.32 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 800 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,460 2 62 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,251 2 58 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,824 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,172 1 59 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,347 2 59 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,831 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,821 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 9 8 1 3.4 dash
23 no-host abuild-print-help 465 417 51 22.8 osh-cpython
31 no-host abuild-print-help 22 20 3 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 684 524 191 3.0 bash
9 no-host bin-true 536 413 133 1.4 dash
17 no-host bin-true 2,286 1,514 1,024 18.2 osh-cpython
25 no-host bin-true 800 543 269 8.1 osh-native
33 no-host bin-true 802 578 240 7.7 osh-native-souffle
2 no-host configure.cpython 15,139 9,151 6,377 27.5 bash
10 no-host configure.cpython 14,911 9,079 6,250 27.5 dash
18 no-host configure.cpython 28,423 17,218 13,009 27.3 osh-cpython
26 no-host configure.cpython 15,460 8,917 6,803 27.3 osh-native
34 no-host configure.cpython 15,172 8,880 6,424 27.4 osh-native-souffle
4 no-host configure.ocaml 3,789 1,613 1,210 20.4 bash
12 no-host configure.ocaml 3,710 1,570 1,158 20.6 dash
20 no-host configure.ocaml 4,607 2,267 1,543 20.6 osh-cpython
28 no-host configure.ocaml 3,824 1,592 1,271 20.6 osh-native
36 no-host configure.ocaml 3,831 1,550 1,315 20.6 osh-native-souffle
5 no-host configure.tcc 47 34 14 19.3 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 202 157 48 19.3 osh-cpython
29 no-host configure.tcc 50 21 30 19.3 osh-native
37 no-host configure.tcc 49 27 22 19.3 osh-native-souffle
3 no-host configure.util-linux 13,930 8,808 5,595 30.3 bash
11 no-host configure.util-linux 14,696 9,050 6,139 30.1 dash
19 no-host configure.util-linux 31,219 20,866 11,432 30.1 osh-cpython
27 no-host configure.util-linux 14,251 8,563 5,890 30.1 osh-native
35 no-host configure.util-linux 14,347 8,630 5,880 30.3 osh-native-souffle
6 no-host configure.yash 1,796 1,082 723 24.2 bash
14 no-host configure.yash 1,791 995 797 24.2 dash
22 no-host configure.yash 2,470 1,497 1,014 24.2 osh-cpython
30 no-host configure.yash 1,819 1,075 747 24.4 osh-native
38 no-host configure.yash 1,821 1,034 791 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 49 8 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 0 3 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,563 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,734 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,167 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 108,317 0 0 0 8 0 1,991 54 bash
9 no-host bin-true 66,477 0 0 0 8 0 1,990 30 dash
17 no-host bin-true 771,443 0 0 0 8 0 1,999 123 osh-cpython
25 no-host bin-true 125,285 0 0 0 16 0 1,989 81 osh-native
33 no-host bin-true 125,243 0 0 0 16 0 1,991 66 osh-native-souffle
2 no-host configure.cpython 2,220,020 0 0 0 32,928 0 14,485 966 bash
10 no-host configure.cpython 2,245,927 0 0 0 32,992 0 14,663 1,078 dash
18 no-host configure.cpython 6,191,793 2 0 0 27,512 0 13,165 1,172 osh-cpython
26 no-host configure.cpython 2,216,347 0 0 0 27,520 0 13,252 987 osh-native
34 no-host configure.cpython 2,201,773 0 0 0 27,520 0 13,266 1,032 osh-native-souffle
4 no-host configure.ocaml 410,406 0 0 0 5,120 0 1,962 173 bash
12 no-host configure.ocaml 391,260 0 0 0 5,112 0 1,883 161 dash
20 no-host configure.ocaml 646,136 0 0 0 5,112 0 1,869 198 osh-cpython
28 no-host configure.ocaml 413,460 0 0 0 5,120 0 1,928 161 osh-native
36 no-host configure.ocaml 412,962 0 0 0 5,120 0 1,935 153 osh-native-souffle
5 no-host configure.tcc 6,539 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,495 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,042 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,924 0 0 0 104 0 47 12 osh-native-souffle
3 no-host configure.util-linux 2,109,334 0 0 0 42,400 0 18,638 1,014 bash
11 no-host configure.util-linux 2,260,051 0 0 0 42,584 0 17,443 930 dash
19 no-host configure.util-linux 5,399,051 16 0 0 39,120 0 17,169 1,131 osh-cpython
27 no-host configure.util-linux 1,996,620 1 0 0 39,120 0 17,051 1,115 osh-native
35 no-host configure.util-linux 1,989,295 0 0 0 39,128 0 16,987 929 osh-native-souffle
6 no-host configure.yash 256,115 0 0 0 4,120 0 870 66 bash
14 no-host configure.yash 245,122 0 0 0 3,720 0 871 60 dash
22 no-host configure.yash 387,784 0 0 0 3,728 0 853 103 osh-cpython
30 no-host configure.yash 258,287 0 0 0 3,736 0 848 75 osh-native
38 no-host configure.yash 257,611 0 0 0 3,736 0 850 81 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,945 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 333 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2a335bad
dash dash-0ebcf347
osh-cpython osh-4d86ccb4
osh-native osh-6da4d8eb
osh-native-souffle osh-e99916a3
host label host id
no-host no-host-556df3ee