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 16 9 532 21 21 33.77 1.36
bin-true no-host 610 432 2,429 789 797 3.98 1.29
configure.cpython no-host 13,850 13,657 29,134 14,459 14,518 2.10 1.04
configure.ocaml no-host 3,656 3,583 4,625 3,689 3,692 1.27 1.01
configure.tcc no-host 47 41 218 48 48 4.67 1.04
configure.util-linux no-host 12,461 13,204 31,851 13,550 13,574 2.56 1.09
configure.yash no-host 1,671 1,624 2,406 1,705 1,721 1.44 1.02
hello-world no-host 1 1 60 3 3 50.86 2.44

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,418 1,158 24,874 3,431 3,390 10.29 1.42
bin-true no-host 99,935 49,355 834,021 135,270 136,281 8.35 1.35
configure.cpython no-host 1,631,904 1,638,937 5,958,894 1,816,014 1,784,069 3.65 1.11
configure.ocaml no-host 299,126 280,741 556,212 317,006 315,547 1.86 1.06
configure.tcc no-host 5,240 4,191 23,756 5,976 5,897 4.53 1.14
configure.util-linux no-host 1,536,985 1,693,782 4,967,870 1,719,684 1,718,421 3.23 1.12
configure.yash no-host 173,589 159,558 315,554 179,827 178,657 1.82 1.04
hello-world no-host 154 83 3,871 386 380 25.14 2.51

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.8 3.9 22.7 9.8 9.2 4.68 2.03
bin-true no-host 3.1 1.6 18.2 8.8 8.1 5.79 2.79
configure.cpython no-host 34.4 34.4 34.4 34.5 34.3 1.00 1.00
configure.ocaml no-host 28.5 28.6 28.6 28.5 28.7 1.00 1.00
configure.tcc no-host 26.2 26.1 26.3 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.5 39.5 39.7 39.7 1.00 1.01
configure.yash no-host 33.4 33.4 33.1 33.4 33.4 0.99 1.00
hello-world no-host 3.3 1.4 18.1 6.9 6.4 5.51 2.12

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.9 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 789 1 2 2.6 8.8 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,459 1 64 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,550 3 59 21.4 39.7 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,689 1 2 2.7 28.5 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,705 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.1 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,518 1 63 15.2 34.3 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,574 3 58 21.4 39.7 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,692 1 2 2.7 28.7 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,721 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,367 64,433 42,634 4,563 54,472 57,332 277 3 85,268 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 16 7 9 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 532 469 66 22.7 osh-cpython
31 no-host abuild-print-help 21 12 10 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.2 osh-native-souffle
1 no-host bin-true 610 307 342 3.1 bash
9 no-host bin-true 432 270 167 1.6 dash
17 no-host bin-true 2,429 887 1,807 18.2 osh-cpython
25 no-host bin-true 789 312 494 8.8 osh-native
33 no-host bin-true 797 296 516 8.1 osh-native-souffle
2 no-host configure.cpython 13,850 7,531 6,692 34.4 bash
10 no-host configure.cpython 13,657 7,561 6,467 34.4 dash
18 no-host configure.cpython 29,134 15,896 15,173 34.4 osh-cpython
26 no-host configure.cpython 14,459 7,315 7,437 34.5 osh-native
34 no-host configure.cpython 14,518 7,243 7,429 34.3 osh-native-souffle
4 no-host configure.ocaml 3,656 1,460 1,235 28.5 bash
12 no-host configure.ocaml 3,583 1,460 1,146 28.6 dash
20 no-host configure.ocaml 4,625 2,093 1,751 28.6 osh-cpython
28 no-host configure.ocaml 3,689 1,487 1,243 28.5 osh-native
36 no-host configure.ocaml 3,692 1,438 1,293 28.7 osh-native-souffle
5 no-host configure.tcc 47 26 20 26.2 bash
13 no-host configure.tcc 41 24 17 26.1 dash
21 no-host configure.tcc 218 153 69 26.3 osh-cpython
29 no-host configure.tcc 48 25 24 26.1 osh-native
37 no-host configure.tcc 48 25 24 26.2 osh-native-souffle
3 no-host configure.util-linux 12,461 6,491 6,418 39.5 bash
11 no-host configure.util-linux 13,204 6,479 7,202 39.5 dash
19 no-host configure.util-linux 31,851 19,918 12,982 39.5 osh-cpython
27 no-host configure.util-linux 13,550 6,247 7,515 39.7 osh-native
35 no-host configure.util-linux 13,574 6,182 7,460 39.7 osh-native-souffle
6 no-host configure.yash 1,671 947 732 33.4 bash
14 no-host configure.yash 1,624 935 691 33.4 dash
22 no-host configure.yash 2,406 1,390 1,057 33.1 osh-cpython
30 no-host configure.yash 1,705 946 763 33.4 osh-native
38 no-host configure.yash 1,721 989 732 33.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 41 18 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 0 3 6.4 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,418 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,874 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,390 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 99,935 0 0 0 8 0 1,978 68 bash
9 no-host bin-true 49,355 0 0 0 8 0 2,965 58 dash
17 no-host bin-true 834,021 0 0 0 8 0 1,994 119 osh-cpython
25 no-host bin-true 135,270 0 0 0 16 0 1,985 83 osh-native
33 no-host bin-true 136,281 0 0 0 16 0 1,978 78 osh-native-souffle
2 no-host configure.cpython 1,631,904 0 0 0 25,272 0 14,047 976 bash
10 no-host configure.cpython 1,638,937 0 0 0 25,272 0 14,076 1,052 dash
18 no-host configure.cpython 5,958,894 0 0 0 25,272 0 12,866 870 osh-cpython
26 no-host configure.cpython 1,816,014 0 0 0 25,280 0 12,892 1,082 osh-native
34 no-host configure.cpython 1,784,069 0 0 0 25,280 0 12,840 1,019 osh-native-souffle
4 no-host configure.ocaml 299,126 0 0 0 4,432 0 2,010 217 bash
12 no-host configure.ocaml 280,741 0 0 0 4,432 0 2,103 204 dash
20 no-host configure.ocaml 556,212 0 0 0 4,432 0 1,910 190 osh-cpython
28 no-host configure.ocaml 317,006 0 0 0 4,440 0 2,000 220 osh-native
36 no-host configure.ocaml 315,547 0 0 0 4,440 0 2,000 199 osh-native-souffle
5 no-host configure.tcc 5,240 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,191 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,756 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,976 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,897 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,536,985 0 0 0 35,944 0 18,941 1,044 bash
11 no-host configure.util-linux 1,693,782 0 0 0 35,936 0 17,124 1,205 dash
19 no-host configure.util-linux 4,967,870 2 0 0 35,960 0 17,538 827 osh-cpython
27 no-host configure.util-linux 1,719,684 4 0 0 35,944 0 17,508 1,098 osh-native
35 no-host configure.util-linux 1,718,421 0 0 0 35,944 0 17,507 1,131 osh-native-souffle
6 no-host configure.yash 173,589 0 0 0 3,616 0 871 102 bash
14 no-host configure.yash 159,558 0 0 0 3,616 0 989 94 dash
22 no-host configure.yash 315,554 0 0 0 3,616 0 855 109 osh-cpython
30 no-host configure.yash 179,827 0 0 0 3,624 0 859 101 osh-native
38 no-host configure.yash 178,657 0 0 0 3,632 0 856 147 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,871 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-88f1f824
dash dash-cea41b3e
osh-cpython osh-3a127c07
osh-native osh-294c5256
osh-native-souffle osh-c1bf9d31
host label host id
no-host no-host-2411472