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 484 22 20 25.31 1.13
bin-true no-host 658 537 2,321 806 798 3.53 1.22
configure.cpython no-host 14,987 14,888 28,779 15,152 15,041 1.92 1.01
configure.ocaml no-host 3,812 3,726 4,673 3,809 3,761 1.23 1.00
configure.tcc no-host 47 40 205 47 47 4.33 1.00
configure.util-linux no-host 13,811 14,629 31,581 13,946 13,989 2.29 1.01
configure.yash no-host 1,813 1,734 2,484 1,790 1,781 1.37 0.99
hello-world no-host 1 1 55 3 3 42.05 2.18

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,544 1,102 23,881 3,166 3,104 9.39 1.24
bin-true no-host 104,324 66,379 778,617 128,148 128,111 7.46 1.23
configure.cpython no-host 1,994,264 2,024,791 6,060,416 2,011,209 1,998,302 3.04 1.01
configure.ocaml no-host 373,086 353,618 612,544 376,586 376,310 1.64 1.01
configure.tcc no-host 6,088 4,992 23,698 6,479 6,457 3.89 1.06
configure.util-linux no-host 1,909,203 2,072,561 5,210,806 1,813,479 1,810,041 2.73 0.95
configure.yash no-host 233,761 221,688 366,566 235,303 235,463 1.57 1.01
hello-world no-host 147 76 3,958 342 336 26.93 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.3 3.5 22.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.5 6.38 2.82
configure.cpython no-host 29.2 29.2 29.1 29.3 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.5 19.7 19.7 19.7 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.2 30.2 30.1 1.00 1.00
configure.yash no-host 26.2 26.4 26.3 26.4 26.4 1.00 1.01
hello-world no-host 2.8 1.4 18.3 6.4 5.9 6.64 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.3 6.4 3,799 3,799 0 699 1,867 1,233 2 0 50,000 0
bin-true no-host 806 1 2 2.6 8.1 153,766 12,331 2,895 8,751 76,334 68,681 3,008 3 50,000 0
configure.cpython no-host 15,152 1 65 15.3 29.3 1,773,757 49,822 28,520 91,504 881,462 800,791 25,736 60 50,000 0
configure.util-linux no-host 13,946 3 64 21.6 30.2 2,704,668 53,751 65,719 114,371 1,293,954 1,296,343 32,241 41 131,438 1
configure.ocaml no-host 3,809 1 2 2.6 22.6 149,782 11,148 5,215 7,732 70,841 71,209 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,567 30,567 0 1,541 14,632 14,394 271 0 50,000 0
configure.yash no-host 1,790 1 2 2.6 26.4 139,678 8,035 6,694 6,393 68,250 65,035 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,315 64,413 42,621 4,543 54,451 57,321 277 3 85,242 1
hello-world no-host 3 0 0 0.3 5.9 3,798 3,798 0 700 1,867 1,231 2 0 50,000 0
bin-true no-host 798 1 2 2.6 7.5 153,765 12,326 2,890 8,752 76,334 68,679 3,008 3 50,000 0
configure.cpython no-host 15,041 1 64 15.3 29.1 1,773,756 49,817 28,515 91,505 881,462 800,789 25,736 60 50,000 0
configure.util-linux no-host 13,989 3 65 21.6 30.1 2,704,668 53,734 65,714 114,373 1,293,954 1,296,341 32,241 41 131,428 1
configure.ocaml no-host 3,761 1 2 2.6 22.6 149,782 11,143 5,210 7,734 70,841 71,207 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,567 30,567 0 1,543 14,632 14,392 271 0 50,000 0
configure.yash no-host 1,781 1 2 2.6 26.4 139,678 8,030 6,689 6,395 68,250 65,033 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,314 64,408 42,616 4,544 54,451 57,319 277 3 85,232 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 10 10 4.3 bash
15 no-host abuild-print-help 9 3 7 3.5 dash
23 no-host abuild-print-help 484 424 64 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 9.0 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 658 310 381 2.9 bash
9 no-host bin-true 537 284 264 1.4 dash
17 no-host bin-true 2,321 770 1,814 18.4 osh-cpython
25 no-host bin-true 806 297 527 8.1 osh-native
33 no-host bin-true 798 290 523 7.5 osh-native-souffle
2 no-host configure.cpython 14,987 6,666 8,699 29.2 bash
10 no-host configure.cpython 14,888 6,752 8,586 29.2 dash
18 no-host configure.cpython 28,779 14,216 16,503 29.1 osh-cpython
26 no-host configure.cpython 15,152 6,609 8,835 29.3 osh-native
34 no-host configure.cpython 15,041 6,639 8,562 29.1 osh-native-souffle
4 no-host configure.ocaml 3,812 1,314 1,526 22.6 bash
12 no-host configure.ocaml 3,726 1,313 1,435 22.6 dash
20 no-host configure.ocaml 4,673 1,857 2,038 22.6 osh-cpython
28 no-host configure.ocaml 3,809 1,309 1,541 22.6 osh-native
36 no-host configure.ocaml 3,761 1,342 1,457 22.6 osh-native-souffle
5 no-host configure.tcc 47 19 29 19.6 bash
13 no-host configure.tcc 40 24 16 19.5 dash
21 no-host configure.tcc 205 139 70 19.7 osh-cpython
29 no-host configure.tcc 47 21 27 19.7 osh-native
37 no-host configure.tcc 47 24 23 19.7 osh-native-souffle
3 no-host configure.util-linux 13,811 5,868 8,447 30.3 bash
11 no-host configure.util-linux 14,629 5,907 9,249 30.3 dash
19 no-host configure.util-linux 31,581 17,901 14,832 30.2 osh-cpython
27 no-host configure.util-linux 13,946 5,580 8,576 30.2 osh-native
35 no-host configure.util-linux 13,989 5,579 8,636 30.1 osh-native-souffle
6 no-host configure.yash 1,813 916 906 26.2 bash
14 no-host configure.yash 1,734 891 847 26.4 dash
22 no-host configure.yash 2,484 1,392 1,137 26.3 osh-cpython
30 no-host configure.yash 1,790 869 926 26.4 osh-native
38 no-host configure.yash 1,781 849 937 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 41 15 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 1 1 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,544 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,881 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,166 0 0 0 16 0 38 3 osh-native
39 no-host abuild-print-help 3,104 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,324 0 0 0 8 0 1,986 174 bash
9 no-host bin-true 66,379 0 0 0 8 0 1,984 182 dash
17 no-host bin-true 778,617 0 0 0 8 0 1,983 188 osh-cpython
25 no-host bin-true 128,148 0 0 0 16 0 1,978 132 osh-native
33 no-host bin-true 128,111 0 0 0 16 0 1,979 304 osh-native-souffle
2 no-host configure.cpython 1,994,264 0 0 0 32,928 0 14,254 1,142 bash
10 no-host configure.cpython 2,024,791 0 0 0 32,992 0 14,332 1,227 dash
18 no-host configure.cpython 6,060,416 0 0 0 27,512 0 13,107 1,110 osh-cpython
26 no-host configure.cpython 2,011,209 0 0 0 27,520 0 13,114 1,163 osh-native
34 no-host configure.cpython 1,998,302 0 0 0 27,520 0 13,058 1,100 osh-native-souffle
4 no-host configure.ocaml 373,086 0 0 0 5,120 0 1,949 193 bash
12 no-host configure.ocaml 353,618 0 0 0 5,112 0 1,936 186 dash
20 no-host configure.ocaml 612,544 0 0 0 5,112 0 1,861 181 osh-cpython
28 no-host configure.ocaml 376,586 0 0 0 5,120 0 1,932 186 osh-native
36 no-host configure.ocaml 376,310 0 0 0 5,120 0 1,919 189 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 4,992 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,698 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,479 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,457 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,909,203 0 0 0 42,400 0 18,432 1,285 bash
11 no-host configure.util-linux 2,072,561 0 0 0 42,584 0 17,377 1,321 dash
19 no-host configure.util-linux 5,210,806 5 0 0 39,112 0 17,039 1,336 osh-cpython
27 no-host configure.util-linux 1,813,479 0 0 0 39,128 0 16,983 1,223 osh-native
35 no-host configure.util-linux 1,810,041 1 0 0 39,136 0 16,942 1,269 osh-native-souffle
6 no-host configure.yash 233,761 0 0 0 4,120 0 871 91 bash
14 no-host configure.yash 221,688 0 0 0 3,720 0 872 108 dash
22 no-host configure.yash 366,566 0 0 0 3,728 0 853 95 osh-cpython
30 no-host configure.yash 235,303 0 0 0 3,736 0 849 86 osh-native
38 no-host configure.yash 235,463 0 0 0 3,736 0 847 91 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,958 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-91e0a8d6
dash dash-0ebcf347
osh-cpython osh-1c0ce390
osh-native osh-cb83ceeb
osh-native-souffle osh-ea93d1f3
host label host id
no-host no-host-e4839999