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 531 25 22 32.54 1.52
bin-true no-host 618 437 2,494 814 825 4.03 1.32
configure.cpython no-host 14,022 14,316 29,498 15,124 15,584 2.10 1.08
configure.ocaml no-host 3,682 3,715 4,777 3,889 3,853 1.30 1.06
configure.tcc no-host 46 41 226 51 49 4.88 1.11
configure.util-linux no-host 12,670 13,372 31,979 13,935 14,287 2.52 1.10
configure.yash no-host 1,716 1,655 2,507 1,872 1,835 1.46 1.09
hello-world no-host 1 1 60 3 3 51.24 2.53

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,411 1,153 24,869 3,449 3,324 10.31 1.43
bin-true no-host 101,916 49,378 838,066 134,243 135,263 8.22 1.32
configure.cpython no-host 1,624,147 1,635,551 5,952,751 1,813,078 1,794,866 3.67 1.12
configure.ocaml no-host 299,014 280,692 556,079 316,588 316,349 1.86 1.06
configure.tcc no-host 5,217 4,206 23,775 5,938 5,861 4.56 1.14
configure.util-linux no-host 1,534,923 1,693,774 4,956,522 1,721,800 1,702,831 3.23 1.12
configure.yash no-host 173,709 159,548 315,147 179,460 179,126 1.81 1.03
hello-world no-host 154 84 3,872 380 376 25.14 2.47

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.8 22.7 9.6 9.2 4.67 1.97
bin-true no-host 3.1 1.4 18.2 8.8 8.1 5.79 2.79
configure.cpython no-host 34.5 34.5 34.7 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.1 26.3 26.1 26.0 1.01 1.00
configure.util-linux no-host 39.6 39.9 39.7 39.8 40.0 1.00 1.00
configure.yash no-host 33.5 33.3 33.3 33.5 33.4 0.99 1.00
hello-world no-host 3.1 1.6 18.2 6.8 6.4 5.79 2.17

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 814 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 15,124 2 74 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,935 4 65 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,889 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 51 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,872 1 2 2.6 33.5 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 25 1 2 2.8 9.6 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 825 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 15,584 2 72 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 14,287 3 68 21.4 40.0 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,853 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 49 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,835 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 22 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 8 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.8 dash
23 no-host abuild-print-help 531 472 63 22.7 osh-cpython
31 no-host abuild-print-help 25 13 13 9.6 osh-native
39 no-host abuild-print-help 22 12 11 9.2 osh-native-souffle
1 no-host bin-true 618 310 345 3.1 bash
9 no-host bin-true 437 280 160 1.4 dash
17 no-host bin-true 2,494 894 1,874 18.2 osh-cpython
25 no-host bin-true 814 330 500 8.8 osh-native
33 no-host bin-true 825 311 530 8.1 osh-native-souffle
2 no-host configure.cpython 14,022 7,515 6,884 34.5 bash
10 no-host configure.cpython 14,316 7,820 6,902 34.5 dash
18 no-host configure.cpython 29,498 16,032 15,438 34.7 osh-cpython
26 no-host configure.cpython 15,124 7,571 7,874 34.5 osh-native
34 no-host configure.cpython 15,584 7,675 8,044 34.6 osh-native-souffle
4 no-host configure.ocaml 3,682 1,468 1,254 28.6 bash
12 no-host configure.ocaml 3,715 1,491 1,246 28.7 dash
20 no-host configure.ocaml 4,777 2,156 1,856 28.7 osh-cpython
28 no-host configure.ocaml 3,889 1,596 1,336 28.7 osh-native
36 no-host configure.ocaml 3,853 1,537 1,357 28.7 osh-native-souffle
5 no-host configure.tcc 46 27 20 26.2 bash
13 no-host configure.tcc 41 23 19 26.1 dash
21 no-host configure.tcc 226 161 68 26.3 osh-cpython
29 no-host configure.tcc 51 31 20 26.1 osh-native
37 no-host configure.tcc 49 27 23 26.0 osh-native-souffle
3 no-host configure.util-linux 12,670 6,559 6,587 39.6 bash
11 no-host configure.util-linux 13,372 6,441 7,415 39.9 dash
19 no-host configure.util-linux 31,979 19,995 13,051 39.7 osh-cpython
27 no-host configure.util-linux 13,935 6,541 7,636 39.8 osh-native
35 no-host configure.util-linux 14,287 6,586 7,781 40.0 osh-native-souffle
6 no-host configure.yash 1,716 955 767 33.5 bash
14 no-host configure.yash 1,655 934 722 33.3 dash
22 no-host configure.yash 2,507 1,486 1,064 33.3 osh-cpython
30 no-host configure.yash 1,872 1,028 846 33.5 osh-native
38 no-host configure.yash 1,835 995 843 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 41 19 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 2 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,411 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,869 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,449 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,324 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 101,916 0 0 0 8 0 1,972 68 bash
9 no-host bin-true 49,378 0 0 0 8 0 2,967 64 dash
17 no-host bin-true 838,066 0 0 0 8 0 1,973 134 osh-cpython
25 no-host bin-true 134,243 0 0 0 16 0 1,963 95 osh-native
33 no-host bin-true 135,263 0 0 0 16 0 1,957 93 osh-native-souffle
2 no-host configure.cpython 1,624,147 0 0 0 25,296 0 14,014 1,158 bash
10 no-host configure.cpython 1,635,551 0 0 0 25,272 0 14,054 1,079 dash
18 no-host configure.cpython 5,952,751 0 0 0 25,272 0 12,857 878 osh-cpython
26 no-host configure.cpython 1,813,078 0 0 0 25,280 0 12,981 1,065 osh-native
34 no-host configure.cpython 1,794,866 0 0 0 25,280 0 12,840 1,152 osh-native-souffle
4 no-host configure.ocaml 299,014 0 0 0 4,432 0 2,020 186 bash
12 no-host configure.ocaml 280,692 0 0 0 4,432 0 2,098 205 dash
20 no-host configure.ocaml 556,079 0 0 0 4,432 0 1,915 188 osh-cpython
28 no-host configure.ocaml 316,588 0 0 0 4,440 0 2,004 206 osh-native
36 no-host configure.ocaml 316,349 0 0 0 4,440 0 2,001 215 osh-native-souffle
5 no-host configure.tcc 5,217 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,775 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,938 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,861 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,923 0 0 0 35,944 0 18,950 1,045 bash
11 no-host configure.util-linux 1,693,774 0 0 0 35,936 0 17,085 1,207 dash
19 no-host configure.util-linux 4,956,522 0 0 0 35,944 0 17,501 874 osh-cpython
27 no-host configure.util-linux 1,721,800 1 0 0 35,952 0 17,369 1,092 osh-native
35 no-host configure.util-linux 1,702,831 0 0 0 35,952 0 17,304 1,180 osh-native-souffle
6 no-host configure.yash 173,709 0 0 0 3,616 0 875 110 bash
14 no-host configure.yash 159,548 0 0 0 3,616 0 999 157 dash
22 no-host configure.yash 315,147 0 0 0 3,616 0 860 103 osh-cpython
30 no-host configure.yash 179,460 0 0 0 3,624 0 857 101 osh-native
38 no-host configure.yash 179,126 0 0 0 3,624 0 854 98 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,872 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 380 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 376 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c45f4ee2
dash dash-cea41b3e
osh-cpython osh-5bc24d5e
osh-native osh-a722f089
osh-native-souffle osh-42629325
host label host id
no-host no-host-2411472