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 529 22 21 32.74 1.37
bin-true no-host 644 456 2,478 818 823 3.85 1.27
configure.cpython no-host 14,145 14,014 29,645 14,725 14,830 2.10 1.04
configure.ocaml no-host 3,691 3,635 4,651 3,733 3,809 1.26 1.01
configure.tcc no-host 46 42 221 49 64 4.79 1.06
configure.util-linux no-host 12,960 13,503 32,223 13,580 13,956 2.49 1.05
configure.yash no-host 1,756 1,677 2,423 1,727 1,764 1.38 0.98
hello-world no-host 1 1 61 3 3 46.75 2.29

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,378 1,175 24,898 3,462 3,329 10.47 1.46
bin-true no-host 102,905 49,372 835,115 135,277 136,322 8.12 1.31
configure.cpython no-host 1,627,527 1,642,728 5,965,821 1,806,380 1,780,940 3.67 1.11
configure.ocaml no-host 298,998 280,679 556,430 316,307 316,146 1.86 1.06
configure.tcc no-host 5,223 4,200 23,758 5,940 5,893 4.55 1.14
configure.util-linux no-host 1,533,313 1,697,612 4,963,139 1,718,004 1,713,250 3.24 1.12
configure.yash no-host 173,620 159,608 315,643 179,648 179,224 1.82 1.03
hello-world no-host 151 86 3,870 382 374 25.63 2.53

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 3.9 22.7 9.8 9.2 4.94 2.14
bin-true no-host 3.1 1.6 18.2 8.5 8.4 5.79 2.71
configure.cpython no-host 34.5 34.5 34.4 34.3 34.6 1.00 0.99
configure.ocaml no-host 28.7 28.8 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.0 26.3 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.5 39.8 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.1 33.1 1.00 0.99
hello-world no-host 3.3 1.6 17.9 6.8 6.3 5.47 2.08

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.8 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.5 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,725 1 64 15.2 34.3 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,580 3 58 21.4 39.8 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,733 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,727 1 2 2.6 33.1 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 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.3 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 823 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,830 2 65 15.2 34.6 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,956 3 59 21.4 39.6 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,809 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 64 0 0 1.3 26.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,764 1 2 2.6 33.1 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 9 8 4.6 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 529 477 55 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.8 osh-native
39 no-host abuild-print-help 21 10 12 9.2 osh-native-souffle
1 no-host bin-true 644 324 359 3.1 bash
9 no-host bin-true 456 286 176 1.6 dash
17 no-host bin-true 2,478 914 1,834 18.2 osh-cpython
25 no-host bin-true 818 304 530 8.5 osh-native
33 no-host bin-true 823 308 531 8.4 osh-native-souffle
2 no-host configure.cpython 14,145 7,509 7,027 34.5 bash
10 no-host configure.cpython 14,014 7,352 7,038 34.5 dash
18 no-host configure.cpython 29,645 16,217 15,392 34.4 osh-cpython
26 no-host configure.cpython 14,725 7,293 7,739 34.3 osh-native
34 no-host configure.cpython 14,830 7,315 7,689 34.6 osh-native-souffle
4 no-host configure.ocaml 3,691 1,468 1,263 28.7 bash
12 no-host configure.ocaml 3,635 1,433 1,226 28.8 dash
20 no-host configure.ocaml 4,651 2,113 1,762 28.7 osh-cpython
28 no-host configure.ocaml 3,733 1,461 1,313 28.7 osh-native
36 no-host configure.ocaml 3,809 1,488 1,363 28.7 osh-native-souffle
5 no-host configure.tcc 46 27 19 26.2 bash
13 no-host configure.tcc 42 23 19 26.0 dash
21 no-host configure.tcc 221 155 71 26.3 osh-cpython
29 no-host configure.tcc 49 27 23 26.2 osh-native
37 no-host configure.tcc 64 35 29 26.3 osh-native-souffle
3 no-host configure.util-linux 12,960 6,504 6,942 39.6 bash
11 no-host configure.util-linux 13,503 6,468 7,524 39.5 dash
19 no-host configure.util-linux 32,223 20,225 13,070 39.5 osh-cpython
27 no-host configure.util-linux 13,580 6,135 7,690 39.8 osh-native
35 no-host configure.util-linux 13,956 6,174 7,870 39.6 osh-native-souffle
6 no-host configure.yash 1,756 966 799 33.4 bash
14 no-host configure.yash 1,677 916 763 33.3 dash
22 no-host configure.yash 2,423 1,445 1,021 33.4 osh-cpython
30 no-host configure.yash 1,727 922 809 33.1 osh-native
38 no-host configure.yash 1,764 926 841 33.1 osh-native-souffle
0 no-host hello-world 1 1 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 61 41 20 17.9 osh-cpython
24 no-host hello-world 3 0 3 6.8 osh-native
32 no-host hello-world 3 1 2 6.3 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,378 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,175 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,898 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,462 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,329 0 0 0 16 0 39 6 osh-native-souffle
1 no-host bin-true 102,905 0 0 0 8 0 1,982 82 bash
9 no-host bin-true 49,372 0 0 0 8 0 2,961 66 dash
17 no-host bin-true 835,115 0 0 0 8 0 1,971 121 osh-cpython
25 no-host bin-true 135,277 0 0 0 16 0 1,968 143 osh-native
33 no-host bin-true 136,322 0 0 0 16 0 1,970 150 osh-native-souffle
2 no-host configure.cpython 1,627,527 0 0 0 25,272 0 14,019 1,235 bash
10 no-host configure.cpython 1,642,728 0 0 0 25,272 0 14,075 1,226 dash
18 no-host configure.cpython 5,965,821 0 0 0 25,272 0 12,875 1,242 osh-cpython
26 no-host configure.cpython 1,806,380 0 0 0 25,280 0 12,862 1,186 osh-native
34 no-host configure.cpython 1,780,940 0 0 0 25,280 0 12,865 1,206 osh-native-souffle
4 no-host configure.ocaml 298,998 0 0 0 4,432 0 2,018 191 bash
12 no-host configure.ocaml 280,679 0 0 0 4,432 0 2,095 200 dash
20 no-host configure.ocaml 556,430 0 0 0 4,432 0 1,921 217 osh-cpython
28 no-host configure.ocaml 316,307 0 0 0 4,440 0 1,999 222 osh-native
36 no-host configure.ocaml 316,146 0 0 0 4,440 0 1,999 209 osh-native-souffle
5 no-host configure.tcc 5,223 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,758 0 0 0 88 0 54 7 osh-cpython
29 no-host configure.tcc 5,940 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,893 0 0 0 96 0 45 3 osh-native-souffle
3 no-host configure.util-linux 1,533,313 0 0 0 35,944 0 18,924 1,175 bash
11 no-host configure.util-linux 1,697,612 1 0 0 35,936 0 17,024 1,382 dash
19 no-host configure.util-linux 4,963,139 4 0 0 35,944 0 17,542 1,140 osh-cpython
27 no-host configure.util-linux 1,718,004 3 0 0 35,944 0 17,557 1,068 osh-native
35 no-host configure.util-linux 1,713,250 2 0 0 35,944 0 17,573 1,037 osh-native-souffle
6 no-host configure.yash 173,620 0 0 0 3,616 0 875 130 bash
14 no-host configure.yash 159,608 0 0 0 3,616 0 1,000 130 dash
22 no-host configure.yash 315,643 0 0 0 3,616 0 862 134 osh-cpython
30 no-host configure.yash 179,648 0 0 0 3,624 0 857 143 osh-native
38 no-host configure.yash 179,224 0 0 0 3,624 0 856 156 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,870 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 382 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 374 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-75d6b36a
dash dash-cea41b3e
osh-cpython osh-62c92e4b
osh-native osh-967b8365
osh-native-souffle osh-ff03aaf9
host label host id
no-host no-host-2411472