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 469 22 21 24.21 1.13
bin-true no-host 681 538 2,325 824 817 3.41 1.21
configure.cpython no-host 15,251 15,045 29,464 15,369 15,483 1.93 1.01
configure.ocaml no-host 3,796 3,738 4,673 3,862 3,848 1.23 1.02
configure.tcc no-host 47 41 203 49 48 4.28 1.03
configure.util-linux no-host 14,001 14,834 31,424 14,571 14,621 2.24 1.04
configure.yash no-host 1,816 1,757 2,454 1,860 1,881 1.35 1.02
hello-world no-host 1 1 56 3 3 38.57 2.09

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,497 3,176 3,114 9.24 1.25
bin-true no-host 107,413 66,436 761,740 126,182 126,149 7.09 1.17
configure.cpython no-host 2,225,305 2,235,938 6,219,631 2,221,184 2,205,557 2.79 1.00
configure.ocaml no-host 410,351 390,903 642,717 413,574 412,329 1.57 1.01
configure.tcc no-host 6,572 5,488 23,947 6,956 6,889 3.64 1.06
configure.util-linux no-host 2,092,864 2,265,412 5,357,951 1,998,818 1,992,811 2.56 0.96
configure.yash no-host 255,428 243,977 387,113 258,106 258,369 1.52 1.01
hello-world no-host 152 81 3,952 344 340 26.00 2.26

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 8.9 8.7 5.25 2.06
bin-true no-host 2.9 1.4 18.5 8.0 7.6 6.42 2.77
configure.cpython no-host 27.4 27.3 27.3 27.4 27.4 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.3 19.1 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.8 1.4 18.3 6.4 5.9 6.63 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.0 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,369 1 61 14.9 27.4 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,571 3 64 21.2 30.1 2,702,550 53,777 65,702 108,699 1,290,655 1,303,196 32,241 41 131,404 1
configure.ocaml no-host 3,862 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,860 1 2 2.5 24.4 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.6 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,483 1 63 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,621 3 64 21.2 30.3 2,702,550 53,704 65,640 108,701 1,290,655 1,303,194 32,241 41 131,280 1
configure.ocaml no-host 3,848 1 2 2.6 20.6 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,881 1 2 2.5 24.4 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 18 2 4.3 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 469 425 48 22.7 osh-cpython
31 no-host abuild-print-help 22 21 1 8.9 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 681 501 212 2.9 bash
9 no-host bin-true 538 408 140 1.4 dash
17 no-host bin-true 2,325 1,488 1,101 18.5 osh-cpython
25 no-host bin-true 824 583 255 8.0 osh-native
33 no-host bin-true 817 593 237 7.6 osh-native-souffle
2 no-host configure.cpython 15,251 9,405 6,253 27.4 bash
10 no-host configure.cpython 15,045 9,003 6,460 27.3 dash
18 no-host configure.cpython 29,464 17,736 13,634 27.3 osh-cpython
26 no-host configure.cpython 15,369 9,235 6,401 27.4 osh-native
34 no-host configure.cpython 15,483 8,958 6,655 27.4 osh-native-souffle
4 no-host configure.ocaml 3,796 1,551 1,281 20.4 bash
12 no-host configure.ocaml 3,738 1,601 1,155 20.6 dash
20 no-host configure.ocaml 4,673 2,245 1,638 20.6 osh-cpython
28 no-host configure.ocaml 3,862 1,661 1,238 20.6 osh-native
36 no-host configure.ocaml 3,848 1,573 1,310 20.6 osh-native-souffle
5 no-host configure.tcc 47 22 26 19.3 bash
13 no-host configure.tcc 41 36 6 19.1 dash
21 no-host configure.tcc 203 155 51 19.3 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
37 no-host configure.tcc 48 27 22 19.4 osh-native-souffle
3 no-host configure.util-linux 14,001 8,872 5,580 30.1 bash
11 no-host configure.util-linux 14,834 9,012 6,308 30.3 dash
19 no-host configure.util-linux 31,424 20,943 11,556 30.1 osh-cpython
27 no-host configure.util-linux 14,571 8,870 5,900 30.1 osh-native
35 no-host configure.util-linux 14,621 8,908 5,912 30.3 osh-native-souffle
6 no-host configure.yash 1,816 1,102 720 24.4 bash
14 no-host configure.yash 1,757 950 809 24.2 dash
22 no-host configure.yash 2,454 1,588 908 24.2 osh-cpython
30 no-host configure.yash 1,860 1,041 823 24.4 osh-native
38 no-host configure.yash 1,881 1,015 870 24.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 56 32 23 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.4 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,544 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,497 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,114 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,413 0 0 0 8 0 1,989 89 bash
9 no-host bin-true 66,436 0 0 0 8 0 1,986 56 dash
17 no-host bin-true 761,740 0 0 0 8 0 1,991 92 osh-cpython
25 no-host bin-true 126,182 0 0 0 16 0 1,988 154 osh-native
33 no-host bin-true 126,149 0 0 0 16 0 1,989 69 osh-native-souffle
2 no-host configure.cpython 2,225,305 0 0 0 32,928 0 14,558 1,181 bash
10 no-host configure.cpython 2,235,938 0 0 0 32,992 0 14,646 1,218 dash
18 no-host configure.cpython 6,219,631 1 0 0 27,512 0 13,248 1,066 osh-cpython
26 no-host configure.cpython 2,221,184 0 0 0 27,520 0 13,262 951 osh-native
34 no-host configure.cpython 2,205,557 0 0 0 27,520 0 13,265 938 osh-native-souffle
4 no-host configure.ocaml 410,351 0 0 0 5,120 0 1,952 152 bash
12 no-host configure.ocaml 390,903 0 0 0 5,112 0 1,881 159 dash
20 no-host configure.ocaml 642,717 0 0 0 5,112 0 1,855 175 osh-cpython
28 no-host configure.ocaml 413,574 0 0 0 5,120 0 1,922 185 osh-native
36 no-host configure.ocaml 412,329 0 0 0 5,120 0 1,927 164 osh-native-souffle
5 no-host configure.tcc 6,572 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,947 0 0 0 96 0 52 15 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,889 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,092,864 0 0 0 42,400 0 18,770 1,018 bash
11 no-host configure.util-linux 2,265,412 0 0 0 42,584 0 17,505 1,003 dash
19 no-host configure.util-linux 5,357,951 15 0 0 39,112 0 17,056 1,248 osh-cpython
27 no-host configure.util-linux 1,998,818 0 0 0 39,120 0 16,978 996 osh-native
35 no-host configure.util-linux 1,992,811 0 0 0 39,128 0 16,953 972 osh-native-souffle
6 no-host configure.yash 255,428 0 0 0 4,120 0 868 109 bash
14 no-host configure.yash 243,977 0 0 0 3,720 0 867 77 dash
22 no-host configure.yash 387,113 0 0 0 3,728 0 850 82 osh-cpython
30 no-host configure.yash 258,106 0 0 0 3,736 0 847 75 osh-native
38 no-host configure.yash 258,369 0 0 0 3,736 0 847 84 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,952 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-52eba5ad
dash dash-0ebcf347
osh-cpython osh-865fd470
osh-native osh-7a45cb86
osh-native-souffle osh-9439ca61
host label host id
no-host no-host-556df3ee