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 9 477 23 21 24.16 1.14
bin-true no-host 694 559 2,274 817 833 3.28 1.18
configure.cpython no-host 15,580 15,898 30,050 15,924 16,001 1.93 1.02
configure.ocaml no-host 3,922 3,842 4,791 3,944 3,972 1.22 1.01
configure.tcc no-host 49 43 200 50 50 4.05 1.01
configure.util-linux no-host 14,608 15,467 32,538 15,248 14,949 2.23 1.04
configure.yash no-host 1,882 1,839 2,554 1,901 1,907 1.36 1.01
hello-world no-host 2 1 50 3 3 32.39 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,514 1,102 23,454 3,173 3,117 9.33 1.26
bin-true no-host 105,395 65,352 752,476 125,107 127,831 7.14 1.19
configure.cpython no-host 2,230,114 2,238,243 6,207,637 2,229,552 2,223,195 2.78 1.00
configure.ocaml no-host 410,583 391,170 646,028 413,518 413,336 1.57 1.01
configure.tcc no-host 6,560 5,473 23,478 7,012 6,960 3.58 1.07
configure.util-linux no-host 2,108,618 2,260,701 5,342,412 1,997,968 1,998,657 2.53 0.95
configure.yash no-host 255,662 245,194 387,915 258,631 257,340 1.52 1.01
hello-world no-host 154 84 3,724 348 347 24.18 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.4 21.9 9.0 8.8 5.06 2.09
bin-true no-host 2.9 1.6 17.7 8.1 7.7 6.14 2.82
configure.cpython no-host 27.5 27.3 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.4 19.3 19.3 19.4 19.3 0.99 1.00
configure.util-linux no-host 30.1 30.3 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.1 24.4 1.01 0.99
hello-world no-host 2.9 1.4 17.6 6.3 5.9 6.09 2.18

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.3 3,773 3,773 0 694 1,851 1,228 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.1 154,738 13,218 2,875 9,744 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,924 1 66 15.0 27.4 1,772,720 49,852 28,585 86,397 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 15,248 3 67 21.3 30.1 2,703,488 42,056 65,868 109,675 1,320,578 1,273,235 27,391 41 131,736 1
configure.ocaml no-host 3,944 1 2 2.6 20.6 150,094 11,049 5,219 7,531 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,579 30,579 0 1,520 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,901 1 2 2.6 24.1 139,747 8,018 6,677 6,336 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,322 64,528 42,738 4,571 54,520 57,231 270 3 85,476 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 695 1,851 1,226 2 0 50,000 0
bin-true no-host 833 1 2 2.6 7.7 154,737 13,061 2,813 9,745 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 16,001 1 65 14.9 27.3 1,772,719 49,103 28,523 86,398 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,949 3 64 21.3 30.0 2,703,488 44,166 65,806 109,677 1,320,578 1,273,233 27,391 41 131,612 1
configure.ocaml no-host 3,972 1 2 2.6 20.6 150,094 10,987 5,157 7,533 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,579 30,579 0 1,522 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,907 1 2 2.6 24.4 139,747 7,956 6,615 6,338 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,321 64,466 42,676 4,572 54,520 57,229 270 3 85,352 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.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 477 430 51 21.9 osh-cpython
31 no-host abuild-print-help 23 14 9 9.0 osh-native
39 no-host abuild-print-help 21 17 5 8.8 osh-native-souffle
1 no-host bin-true 694 507 216 2.9 bash
9 no-host bin-true 559 426 142 1.6 dash
17 no-host bin-true 2,274 1,438 1,103 17.7 osh-cpython
25 no-host bin-true 817 587 245 8.1 osh-native
33 no-host bin-true 833 596 251 7.7 osh-native-souffle
2 no-host configure.cpython 15,580 9,312 6,670 27.5 bash
10 no-host configure.cpython 15,898 9,534 6,569 27.3 dash
18 no-host configure.cpython 30,050 17,990 14,026 27.5 osh-cpython
26 no-host configure.cpython 15,924 9,159 7,024 27.4 osh-native
34 no-host configure.cpython 16,001 9,254 6,815 27.3 osh-native-souffle
4 no-host configure.ocaml 3,922 1,669 1,294 20.6 bash
12 no-host configure.ocaml 3,842 1,588 1,273 20.6 dash
20 no-host configure.ocaml 4,791 2,308 1,700 20.4 osh-cpython
28 no-host configure.ocaml 3,944 1,671 1,312 20.6 osh-native
36 no-host configure.ocaml 3,972 1,706 1,305 20.6 osh-native-souffle
5 no-host configure.tcc 49 21 29 19.4 bash
13 no-host configure.tcc 43 24 19 19.3 dash
21 no-host configure.tcc 200 141 62 19.3 osh-cpython
29 no-host configure.tcc 50 30 20 19.4 osh-native
37 no-host configure.tcc 50 36 14 19.3 osh-native-souffle
3 no-host configure.util-linux 14,608 9,169 5,917 30.1 bash
11 no-host configure.util-linux 15,467 9,410 6,552 30.3 dash
19 no-host configure.util-linux 32,538 21,614 12,073 30.1 osh-cpython
27 no-host configure.util-linux 15,248 8,830 6,258 30.1 osh-native
35 no-host configure.util-linux 14,949 9,027 6,114 30.0 osh-native-souffle
6 no-host configure.yash 1,882 1,063 828 24.2 bash
14 no-host configure.yash 1,839 1,036 808 24.4 dash
22 no-host configure.yash 2,554 1,574 1,024 24.4 osh-cpython
30 no-host configure.yash 1,901 1,056 850 24.1 osh-native
38 no-host configure.yash 1,907 1,097 812 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.4 dash
16 no-host hello-world 50 30 21 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,514 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,454 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,173 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,117 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,395 0 0 0 8 0 1,989 50 bash
9 no-host bin-true 65,352 0 0 0 8 0 1,981 88 dash
17 no-host bin-true 752,476 0 0 0 8 0 2,001 124 osh-cpython
25 no-host bin-true 125,107 0 0 0 16 0 1,985 91 osh-native
33 no-host bin-true 127,831 0 0 0 16 0 1,982 99 osh-native-souffle
2 no-host configure.cpython 2,230,114 0 0 0 32,928 0 14,526 1,153 bash
10 no-host configure.cpython 2,238,243 1 0 0 32,992 0 14,689 1,320 dash
18 no-host configure.cpython 6,207,637 1 0 0 27,512 0 13,278 1,380 osh-cpython
26 no-host configure.cpython 2,229,552 0 0 0 27,520 0 13,193 1,128 osh-native
34 no-host configure.cpython 2,223,195 0 0 0 27,520 0 13,267 1,007 osh-native-souffle
4 no-host configure.ocaml 410,583 0 0 0 5,120 0 1,946 178 bash
12 no-host configure.ocaml 391,170 0 0 0 5,112 0 1,870 166 dash
20 no-host configure.ocaml 646,028 1 0 0 5,112 0 1,850 166 osh-cpython
28 no-host configure.ocaml 413,518 0 0 0 5,120 0 1,929 160 osh-native
36 no-host configure.ocaml 413,336 0 0 0 5,120 0 1,927 159 osh-native-souffle
5 no-host configure.tcc 6,560 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,473 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,478 0 0 0 96 0 52 5 osh-cpython
29 no-host configure.tcc 7,012 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,960 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,108,618 0 0 0 42,400 0 18,587 1,093 bash
11 no-host configure.util-linux 2,260,701 1 0 0 42,584 0 17,426 1,277 dash
19 no-host configure.util-linux 5,342,412 18 0 0 39,136 0 17,001 1,378 osh-cpython
27 no-host configure.util-linux 1,997,968 3 0 0 39,120 0 16,941 1,068 osh-native
35 no-host configure.util-linux 1,998,657 0 0 0 39,136 0 16,909 1,060 osh-native-souffle
6 no-host configure.yash 255,662 0 0 0 4,120 0 870 77 bash
14 no-host configure.yash 245,194 0 0 0 3,720 0 866 83 dash
22 no-host configure.yash 387,915 0 0 0 3,728 0 856 91 osh-cpython
30 no-host configure.yash 258,631 0 0 0 3,736 0 847 81 osh-native
38 no-host configure.yash 257,340 0 0 0 3,736 0 848 84 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,724 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2bd33c07
dash dash-0ebcf347
osh-cpython osh-7adb50d7
osh-native osh-493ade06
osh-native-souffle osh-44611d93
host label host id
no-host no-host-556df3ee