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 536 22 21 33.74 1.37
bin-true no-host 609 434 2,428 801 788 3.98 1.32
configure.cpython no-host 13,825 13,859 29,537 14,804 14,747 2.14 1.07
configure.ocaml no-host 3,662 3,605 4,651 3,731 3,741 1.27 1.02
configure.tcc no-host 45 41 222 49 50 4.89 1.08
configure.util-linux no-host 12,538 13,297 32,090 13,819 13,750 2.56 1.10
configure.yash no-host 1,711 1,651 2,430 1,725 1,728 1.42 1.01
hello-world no-host 1 1 61 3 3 47.67 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,405 1,160 24,848 3,450 3,353 10.33 1.43
bin-true no-host 99,898 49,421 831,727 136,256 133,269 8.33 1.36
configure.cpython no-host 1,627,228 1,643,774 5,991,387 1,812,995 1,791,204 3.68 1.11
configure.ocaml no-host 298,471 281,122 558,298 317,358 316,538 1.87 1.06
configure.tcc no-host 5,224 4,218 23,915 5,953 5,866 4.58 1.14
configure.util-linux no-host 1,536,978 1,698,854 5,006,647 1,723,749 1,715,196 3.26 1.12
configure.yash no-host 173,786 159,616 316,118 179,641 179,641 1.82 1.03
hello-world no-host 153 87 3,897 387 378 25.47 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.3 1.6 18.2 8.8 8.4 5.55 2.68
configure.cpython no-host 34.5 34.6 34.5 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.6 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.1 26.0 1.01 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.3 33.3 33.2 33.4 1.00 1.00
hello-world no-host 3.1 1.6 18.2 6.9 6.4 5.78 2.21

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 801 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,804 1 66 15.2 34.4 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,819 3 62 21.4 39.6 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,731 1 2 2.7 28.6 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.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,725 1 2 2.6 33.2 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.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 788 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,747 1 65 15.2 34.7 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,750 3 61 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,741 1 2 2.7 28.8 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.0 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,728 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 9 7 4.6 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 536 481 59 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.2 osh-native-souffle
1 no-host bin-true 609 308 337 3.3 bash
9 no-host bin-true 434 270 170 1.6 dash
17 no-host bin-true 2,428 887 1,809 18.2 osh-cpython
25 no-host bin-true 801 311 506 8.8 osh-native
33 no-host bin-true 788 311 495 8.4 osh-native-souffle
2 no-host configure.cpython 13,825 7,526 6,679 34.5 bash
10 no-host configure.cpython 13,859 7,513 6,741 34.6 dash
18 no-host configure.cpython 29,537 16,230 15,289 34.5 osh-cpython
26 no-host configure.cpython 14,804 7,331 7,773 34.4 osh-native
34 no-host configure.cpython 14,747 7,345 7,527 34.7 osh-native-souffle
4 no-host configure.ocaml 3,662 1,492 1,208 28.7 bash
12 no-host configure.ocaml 3,605 1,427 1,201 28.7 dash
20 no-host configure.ocaml 4,651 2,124 1,748 28.6 osh-cpython
28 no-host configure.ocaml 3,731 1,472 1,300 28.6 osh-native
36 no-host configure.ocaml 3,741 1,485 1,298 28.8 osh-native-souffle
5 no-host configure.tcc 45 30 16 26.2 bash
13 no-host configure.tcc 41 24 18 26.2 dash
21 no-host configure.tcc 222 148 78 26.3 osh-cpython
29 no-host configure.tcc 49 28 21 26.1 osh-native
37 no-host configure.tcc 50 23 28 26.0 osh-native-souffle
3 no-host configure.util-linux 12,538 6,465 6,525 39.7 bash
11 no-host configure.util-linux 13,297 6,412 7,370 39.6 dash
19 no-host configure.util-linux 32,090 20,188 12,977 39.6 osh-cpython
27 no-host configure.util-linux 13,819 6,395 7,654 39.6 osh-native
35 no-host configure.util-linux 13,750 6,250 7,563 39.7 osh-native-souffle
6 no-host configure.yash 1,711 975 743 33.4 bash
14 no-host configure.yash 1,651 957 694 33.3 dash
22 no-host configure.yash 2,430 1,427 1,045 33.3 osh-cpython
30 no-host configure.yash 1,725 959 769 33.2 osh-native
38 no-host configure.yash 1,728 964 767 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 61 43 18 18.2 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 1 1 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,405 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,848 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,450 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,353 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,898 0 0 0 8 0 1,966 69 bash
9 no-host bin-true 49,421 0 0 0 8 0 2,968 49 dash
17 no-host bin-true 831,727 0 0 0 8 0 1,989 115 osh-cpython
25 no-host bin-true 136,256 0 0 0 16 0 1,978 82 osh-native
33 no-host bin-true 133,269 0 0 0 16 0 1,972 89 osh-native-souffle
2 no-host configure.cpython 1,627,228 0 0 0 25,272 0 14,017 1,033 bash
10 no-host configure.cpython 1,643,774 0 0 0 25,272 0 14,061 1,076 dash
18 no-host configure.cpython 5,991,387 0 0 0 25,272 0 12,863 898 osh-cpython
26 no-host configure.cpython 1,812,995 0 0 0 25,280 0 12,840 1,137 osh-native
34 no-host configure.cpython 1,791,204 0 0 0 25,280 0 12,805 1,056 osh-native-souffle
4 no-host configure.ocaml 298,471 0 0 0 4,432 0 2,013 198 bash
12 no-host configure.ocaml 281,122 0 0 0 4,432 0 2,089 210 dash
20 no-host configure.ocaml 558,298 0 0 0 4,432 0 1,914 186 osh-cpython
28 no-host configure.ocaml 317,358 0 0 0 4,440 0 1,991 209 osh-native
36 no-host configure.ocaml 316,538 0 0 0 4,440 0 2,003 207 osh-native-souffle
5 no-host configure.tcc 5,224 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,218 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,915 0 0 0 88 0 52 4 osh-cpython
29 no-host configure.tcc 5,953 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,866 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,536,978 0 0 0 35,944 0 18,941 1,085 bash
11 no-host configure.util-linux 1,698,854 0 0 0 35,936 0 16,970 1,230 dash
19 no-host configure.util-linux 5,006,647 1 0 0 35,960 0 17,520 860 osh-cpython
27 no-host configure.util-linux 1,723,749 1 0 0 35,944 0 17,502 1,092 osh-native
35 no-host configure.util-linux 1,715,196 2 0 0 35,944 0 17,336 1,159 osh-native-souffle
6 no-host configure.yash 173,786 0 0 0 3,616 0 877 100 bash
14 no-host configure.yash 159,616 0 0 0 3,616 0 999 101 dash
22 no-host configure.yash 316,118 0 0 0 3,616 0 859 108 osh-cpython
30 no-host configure.yash 179,641 0 0 0 3,624 0 854 116 osh-native
38 no-host configure.yash 179,641 0 0 0 3,624 0 854 106 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 1 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,897 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e2b77258
dash dash-cea41b3e
osh-cpython osh-f47bc30a
osh-native osh-6d931f92
osh-native-souffle osh-37419c36
host label host id
no-host no-host-2411472