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 17 9 526 22 21 31.30 1.31
bin-true no-host 637 455 2,493 824 813 3.91 1.29
configure.cpython no-host 13,919 13,958 29,579 14,846 14,842 2.13 1.07
configure.ocaml no-host 3,691 3,644 4,692 3,745 3,751 1.27 1.01
configure.tcc no-host 50 43 221 50 49 4.42 0.99
configure.util-linux no-host 12,724 13,555 32,261 13,799 13,953 2.54 1.08
configure.yash no-host 1,711 1,660 2,441 1,738 1,738 1.43 1.02
hello-world no-host 1 1 60 3 3 47.49 2.27

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,420 1,162 24,678 3,468 3,336 10.20 1.43
bin-true no-host 99,939 49,377 830,532 134,262 131,266 8.31 1.34
configure.cpython no-host 1,624,282 1,633,322 5,936,916 1,815,392 1,794,772 3.66 1.12
configure.ocaml no-host 299,161 280,905 555,189 316,722 315,880 1.86 1.06
configure.tcc no-host 5,220 4,218 23,760 5,936 5,866 4.55 1.14
configure.util-linux no-host 1,535,044 1,689,958 4,960,636 1,724,370 1,713,804 3.23 1.12
configure.yash no-host 173,359 159,445 314,808 179,579 178,729 1.82 1.04
hello-world no-host 150 87 3,878 384 377 25.85 2.56

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.6 4.1 22.6 9.8 9.3 4.94 2.14
bin-true no-host 3.3 1.7 18.1 8.8 8.3 5.51 2.68
configure.cpython no-host 34.5 34.8 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.7 28.8 1.00 1.00
configure.tcc no-host 26.3 26.3 26.3 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.5 39.6 39.6 39.7 39.5 1.00 1.01
configure.yash no-host 33.4 33.2 33.4 33.5 33.1 1.00 1.01
hello-world no-host 3.3 1.6 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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,846 1 68 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,799 3 61 21.4 39.7 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,745 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.6 33.5 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,842 1 64 15.2 34.5 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,953 3 59 21.4 39.5 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,751 1 2 2.7 28.8 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.6 33.1 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,366 64,433 42,634 4,563 54,471 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 17 8 9 4.6 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 526 470 59 22.6 osh-cpython
31 no-host abuild-print-help 22 11 12 9.8 osh-native
39 no-host abuild-print-help 21 13 9 9.3 osh-native-souffle
1 no-host bin-true 637 319 356 3.3 bash
9 no-host bin-true 455 275 185 1.7 dash
17 no-host bin-true 2,493 897 1,867 18.1 osh-cpython
25 no-host bin-true 824 303 539 8.8 osh-native
33 no-host bin-true 813 305 526 8.3 osh-native-souffle
2 no-host configure.cpython 13,919 7,400 6,904 34.5 bash
10 no-host configure.cpython 13,958 7,395 6,963 34.8 dash
18 no-host configure.cpython 29,579 16,203 15,337 34.5 osh-cpython
26 no-host configure.cpython 14,846 7,385 7,742 34.5 osh-native
34 no-host configure.cpython 14,842 7,240 7,785 34.5 osh-native-souffle
4 no-host configure.ocaml 3,691 1,457 1,274 28.7 bash
12 no-host configure.ocaml 3,644 1,436 1,229 28.7 dash
20 no-host configure.ocaml 4,692 2,108 1,808 28.6 osh-cpython
28 no-host configure.ocaml 3,745 1,471 1,315 28.7 osh-native
36 no-host configure.ocaml 3,751 1,475 1,316 28.8 osh-native-souffle
5 no-host configure.tcc 50 21 29 26.3 bash
13 no-host configure.tcc 43 25 18 26.3 dash
21 no-host configure.tcc 221 150 75 26.3 osh-cpython
29 no-host configure.tcc 50 28 22 26.2 osh-native
37 no-host configure.tcc 49 25 24 26.3 osh-native-souffle
3 no-host configure.util-linux 12,724 6,438 6,762 39.5 bash
11 no-host configure.util-linux 13,555 6,353 7,693 39.6 dash
19 no-host configure.util-linux 32,261 20,113 13,214 39.6 osh-cpython
27 no-host configure.util-linux 13,799 6,283 7,759 39.7 osh-native
35 no-host configure.util-linux 13,953 6,202 7,835 39.5 osh-native-souffle
6 no-host configure.yash 1,711 942 777 33.4 bash
14 no-host configure.yash 1,660 891 770 33.2 dash
22 no-host configure.yash 2,441 1,415 1,069 33.4 osh-cpython
30 no-host configure.yash 1,738 954 788 33.5 osh-native
38 no-host configure.yash 1,738 921 819 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 41 19 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 1 2 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,420 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,162 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,678 0 0 0 8 0 46 5 osh-cpython
31 no-host abuild-print-help 3,468 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,336 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,939 0 0 0 8 0 1,970 84 bash
9 no-host bin-true 49,377 0 0 0 8 0 2,967 62 dash
17 no-host bin-true 830,532 0 0 0 8 0 1,970 210 osh-cpython
25 no-host bin-true 134,262 0 0 0 16 0 1,979 228 osh-native
33 no-host bin-true 131,266 0 0 0 16 0 1,969 160 osh-native-souffle
2 no-host configure.cpython 1,624,282 0 0 0 25,272 0 14,018 1,124 bash
10 no-host configure.cpython 1,633,322 0 0 0 25,272 0 14,081 1,256 dash
18 no-host configure.cpython 5,936,916 0 0 0 25,272 0 12,870 1,247 osh-cpython
26 no-host configure.cpython 1,815,392 0 0 0 25,280 0 12,911 1,178 osh-native
34 no-host configure.cpython 1,794,772 0 0 0 25,280 0 12,866 1,149 osh-native-souffle
4 no-host configure.ocaml 299,161 0 0 0 4,432 0 2,013 218 bash
12 no-host configure.ocaml 280,905 0 0 0 4,432 0 2,102 193 dash
20 no-host configure.ocaml 555,189 0 0 0 4,432 0 1,911 193 osh-cpython
28 no-host configure.ocaml 316,722 0 0 0 4,440 0 1,997 210 osh-native
36 no-host configure.ocaml 315,880 0 0 0 4,440 0 1,993 199 osh-native-souffle
5 no-host configure.tcc 5,220 0 0 0 80 0 53 0 bash
13 no-host configure.tcc 4,218 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 23,760 0 0 0 88 0 53 11 osh-cpython
29 no-host configure.tcc 5,936 0 0 0 96 0 47 15 osh-native
37 no-host configure.tcc 5,866 0 0 0 96 0 46 5 osh-native-souffle
3 no-host configure.util-linux 1,535,044 1 0 0 35,944 0 18,943 1,262 bash
11 no-host configure.util-linux 1,689,958 4 0 0 35,936 0 17,174 1,363 dash
19 no-host configure.util-linux 4,960,636 2 0 0 35,944 0 17,528 1,151 osh-cpython
27 no-host configure.util-linux 1,724,370 2 0 0 35,952 0 17,422 1,111 osh-native
35 no-host configure.util-linux 1,713,804 1 0 0 35,952 0 17,330 1,154 osh-native-souffle
6 no-host configure.yash 173,359 0 0 0 3,616 0 883 138 bash
14 no-host configure.yash 159,445 0 0 0 3,616 0 1,000 119 dash
22 no-host configure.yash 314,808 0 0 0 3,616 0 861 138 osh-cpython
30 no-host configure.yash 179,579 0 0 0 3,624 0 854 142 osh-native
38 no-host configure.yash 178,729 0 0 0 3,624 0 861 134 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,878 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7aa1a6cf
dash dash-cea41b3e
osh-cpython osh-94767751
osh-native osh-d18e7188
osh-native-souffle osh-0d7db342
host label host id
no-host no-host-2411472