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 22 21 34.08 1.41
bin-true no-host 612 436 2,448 806 798 4.00 1.32
configure.cpython no-host 13,899 14,160 29,878 14,786 14,877 2.15 1.06
configure.ocaml no-host 3,676 3,636 4,683 3,817 3,747 1.27 1.04
configure.tcc no-host 46 41 221 49 49 4.81 1.07
configure.util-linux no-host 12,703 13,465 32,417 13,952 13,814 2.55 1.10
configure.yash no-host 1,708 1,660 2,440 1,760 1,742 1.43 1.03
hello-world no-host 1 1 61 3 3 50.32 2.41

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,375 1,176 24,567 3,444 3,369 10.34 1.45
bin-true no-host 99,986 49,410 831,252 138,291 135,229 8.31 1.38
configure.cpython no-host 1,623,697 1,639,435 5,966,374 1,813,177 1,790,485 3.67 1.12
configure.ocaml no-host 299,197 280,695 556,187 316,661 315,328 1.86 1.06
configure.tcc no-host 5,212 4,213 23,785 5,933 5,895 4.56 1.14
configure.util-linux no-host 1,534,106 1,694,773 4,975,517 1,727,864 1,712,814 3.24 1.13
configure.yash no-host 173,630 159,610 315,980 179,013 179,007 1.82 1.03
hello-world no-host 151 82 3,889 385 375 25.75 2.55

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.7 4.1 22.7 9.8 9.2 4.80 2.08
bin-true no-host 3.1 1.4 18.3 8.5 8.4 5.83 2.71
configure.cpython no-host 34.5 34.5 34.5 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.4 26.0 26.3 26.2 26.2 1.00 0.99
configure.util-linux no-host 39.4 39.8 39.7 39.7 39.8 1.01 1.01
configure.yash no-host 33.3 33.1 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.0 1.4 17.9 6.8 6.3 5.95 2.26

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 703 1,880 1,243 2 0 50,000 0
bin-true no-host 806 1 2 2.6 8.5 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 14,786 2 68 15.2 34.5 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 13,952 3 62 21.4 39.7 2,707,122 126,354 66,586 113,462 1,294,567 1,299,093 32,539 41 133,172 1
configure.ocaml no-host 3,817 1 2 2.7 28.7 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,760 1 2 2.6 33.4 140,017 8,080 6,714 6,525 68,347 65,145 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,561 54,471 57,336 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.3 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 798 1 2 2.6 8.4 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,877 1 67 15.2 34.7 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,814 3 60 21.4 39.8 2,707,122 126,347 66,579 113,464 1,294,567 1,299,091 32,539 41 133,158 1
configure.ocaml no-host 3,747 1 2 2.7 28.7 149,873 12,470 6,513 7,820 70,839 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,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,742 1 2 2.6 33.4 140,017 8,069 6,703 6,527 68,347 65,143 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,562 54,471 57,334 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 7 9 4.7 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 531 470 65 22.7 osh-cpython
31 no-host abuild-print-help 22 10 12 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.2 osh-native-souffle
1 no-host bin-true 612 298 350 3.1 bash
9 no-host bin-true 436 275 165 1.4 dash
17 no-host bin-true 2,448 878 1,836 18.3 osh-cpython
25 no-host bin-true 806 307 514 8.5 osh-native
33 no-host bin-true 798 298 514 8.4 osh-native-souffle
2 no-host configure.cpython 13,899 7,518 6,758 34.5 bash
10 no-host configure.cpython 14,160 7,681 6,867 34.5 dash
18 no-host configure.cpython 29,878 16,199 15,685 34.5 osh-cpython
26 no-host configure.cpython 14,786 7,417 7,661 34.5 osh-native
34 no-host configure.cpython 14,877 7,354 7,688 34.7 osh-native-souffle
4 no-host configure.ocaml 3,676 1,466 1,249 28.6 bash
12 no-host configure.ocaml 3,636 1,475 1,182 28.7 dash
20 no-host configure.ocaml 4,683 2,127 1,778 28.6 osh-cpython
28 no-host configure.ocaml 3,817 1,465 1,393 28.7 osh-native
36 no-host configure.ocaml 3,747 1,486 1,298 28.7 osh-native-souffle
5 no-host configure.tcc 46 27 20 26.4 bash
13 no-host configure.tcc 41 25 17 26.0 dash
21 no-host configure.tcc 221 157 68 26.3 osh-cpython
29 no-host configure.tcc 49 27 22 26.2 osh-native
37 no-host configure.tcc 49 18 31 26.2 osh-native-souffle
3 no-host configure.util-linux 12,703 6,483 6,671 39.4 bash
11 no-host configure.util-linux 13,465 6,556 7,380 39.8 dash
19 no-host configure.util-linux 32,417 20,338 13,157 39.7 osh-cpython
27 no-host configure.util-linux 13,952 6,376 7,798 39.7 osh-native
35 no-host configure.util-linux 13,814 6,236 7,639 39.8 osh-native-souffle
6 no-host configure.yash 1,708 948 768 33.3 bash
14 no-host configure.yash 1,660 928 733 33.1 dash
22 no-host configure.yash 2,440 1,439 1,043 33.2 osh-cpython
30 no-host configure.yash 1,760 958 805 33.4 osh-native
38 no-host configure.yash 1,742 912 831 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.0 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 61 40 21 17.9 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 1 1 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,375 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,567 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,444 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,369 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,986 0 0 0 8 0 1,980 74 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,968 58 dash
17 no-host bin-true 831,252 0 0 0 8 0 1,991 164 osh-cpython
25 no-host bin-true 138,291 0 0 0 16 0 1,970 85 osh-native
33 no-host bin-true 135,229 0 0 0 16 0 1,979 94 osh-native-souffle
2 no-host configure.cpython 1,623,697 0 0 0 25,272 0 14,052 1,035 bash
10 no-host configure.cpython 1,639,435 0 0 0 25,272 0 14,097 1,059 dash
18 no-host configure.cpython 5,966,374 0 0 0 25,272 0 12,879 963 osh-cpython
26 no-host configure.cpython 1,813,177 0 0 0 25,280 0 12,851 1,082 osh-native
34 no-host configure.cpython 1,790,485 0 0 0 25,280 0 12,854 1,002 osh-native-souffle
4 no-host configure.ocaml 299,197 0 0 0 4,432 0 2,009 182 bash
12 no-host configure.ocaml 280,695 0 0 0 4,432 0 2,101 201 dash
20 no-host configure.ocaml 556,187 0 0 0 4,432 0 1,912 245 osh-cpython
28 no-host configure.ocaml 316,661 0 0 0 4,440 0 1,991 187 osh-native
36 no-host configure.ocaml 315,328 0 0 0 4,440 0 1,992 194 osh-native-souffle
5 no-host configure.tcc 5,212 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,785 0 0 0 88 0 51 7 osh-cpython
29 no-host configure.tcc 5,933 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,895 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,534,106 0 0 0 35,944 0 18,919 1,175 bash
11 no-host configure.util-linux 1,694,773 0 0 0 35,936 0 17,045 1,266 dash
19 no-host configure.util-linux 4,975,517 1 0 0 35,944 0 17,525 859 osh-cpython
27 no-host configure.util-linux 1,727,864 0 0 0 35,952 0 17,528 1,048 osh-native
35 no-host configure.util-linux 1,712,814 2 0 0 35,952 0 17,517 1,123 osh-native-souffle
6 no-host configure.yash 173,630 0 0 0 3,616 0 876 109 bash
14 no-host configure.yash 159,610 0 0 0 3,616 0 1,001 97 dash
22 no-host configure.yash 315,980 0 0 0 3,616 0 858 107 osh-cpython
30 no-host configure.yash 179,013 0 0 0 3,624 0 855 94 osh-native
38 no-host configure.yash 179,007 0 0 0 3,624 0 858 95 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,889 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 385 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 375 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-65fc2350
dash dash-cea41b3e
osh-cpython osh-cb894159
osh-native osh-425f5d82
osh-native-souffle osh-c78058a6
host label host id
no-host no-host-31404de8