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 555 22 21 35.35 1.39
bin-true no-host 615 434 2,455 801 800 3.99 1.30
configure.cpython no-host 13,817 13,862 29,826 14,725 14,902 2.16 1.07
configure.ocaml no-host 3,677 3,639 4,656 3,739 3,774 1.27 1.02
configure.tcc no-host 46 42 224 49 49 4.90 1.07
configure.util-linux no-host 12,555 13,353 32,248 13,648 13,752 2.57 1.09
configure.yash no-host 1,714 1,656 2,448 1,737 1,734 1.43 1.01
hello-world no-host 1 1 60 3 3 48.62 2.36

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,162 24,702 3,443 3,345 10.27 1.43
bin-true no-host 102,865 49,396 840,684 138,299 135,262 8.17 1.34
configure.cpython no-host 1,621,787 1,640,639 5,997,595 1,798,420 1,791,667 3.70 1.11
configure.ocaml no-host 298,966 280,705 557,836 317,470 316,759 1.87 1.06
configure.tcc no-host 5,207 4,220 23,959 5,971 5,889 4.60 1.15
configure.util-linux no-host 1,530,168 1,698,465 4,988,977 1,721,921 1,713,317 3.26 1.13
configure.yash no-host 173,395 159,510 316,090 179,126 178,896 1.82 1.03
hello-world no-host 154 84 3,869 387 380 25.12 2.51

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 3.9 22.9 9.7 9.3 4.86 2.06
bin-true no-host 3.1 1.6 18.2 8.8 8.3 5.79 2.79
configure.cpython no-host 34.4 34.7 34.7 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.8 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.7 39.8 39.7 1.00 1.00
configure.yash no-host 33.5 33.4 33.4 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.4 18.1 7.1 6.6 5.74 2.25

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 7.1 3,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 801 1 2 2.6 8.8 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,725 1 66 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,648 3 61 21.4 39.8 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,739 1 2 2.7 28.8 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,737 1 2 2.6 33.4 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.7 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 800 1 2 2.6 8.3 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,902 1 66 15.2 34.5 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,752 3 59 21.4 39.7 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,774 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,734 1 2 2.6 33.1 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 3.9 dash
23 no-host abuild-print-help 555 501 57 22.9 osh-cpython
31 no-host abuild-print-help 22 10 13 9.7 osh-native
39 no-host abuild-print-help 21 12 9 9.3 osh-native-souffle
1 no-host bin-true 615 310 342 3.1 bash
9 no-host bin-true 434 272 167 1.6 dash
17 no-host bin-true 2,455 898 1,826 18.2 osh-cpython
25 no-host bin-true 801 300 516 8.8 osh-native
33 no-host bin-true 800 308 507 8.3 osh-native-souffle
2 no-host configure.cpython 13,817 7,506 6,683 34.4 bash
10 no-host configure.cpython 13,862 7,662 6,592 34.7 dash
18 no-host configure.cpython 29,826 16,390 15,425 34.7 osh-cpython
26 no-host configure.cpython 14,725 7,410 7,608 34.5 osh-native
34 no-host configure.cpython 14,902 7,480 7,471 34.5 osh-native-souffle
4 no-host configure.ocaml 3,677 1,483 1,234 28.7 bash
12 no-host configure.ocaml 3,639 1,436 1,226 28.7 dash
20 no-host configure.ocaml 4,656 2,111 1,767 28.7 osh-cpython
28 no-host configure.ocaml 3,739 1,488 1,293 28.8 osh-native
36 no-host configure.ocaml 3,774 1,454 1,330 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.2 bash
13 no-host configure.tcc 42 25 16 26.3 dash
21 no-host configure.tcc 224 174 54 26.1 osh-cpython
29 no-host configure.tcc 49 25 25 26.2 osh-native
37 no-host configure.tcc 49 23 26 26.3 osh-native-souffle
3 no-host configure.util-linux 12,555 6,567 6,438 39.6 bash
11 no-host configure.util-linux 13,353 6,539 7,291 39.5 dash
19 no-host configure.util-linux 32,248 20,284 13,022 39.7 osh-cpython
27 no-host configure.util-linux 13,648 6,242 7,638 39.8 osh-native
35 no-host configure.util-linux 13,752 6,254 7,569 39.7 osh-native-souffle
6 no-host configure.yash 1,714 961 761 33.5 bash
14 no-host configure.yash 1,656 929 729 33.4 dash
22 no-host configure.yash 2,448 1,467 1,023 33.4 osh-cpython
30 no-host configure.yash 1,737 957 782 33.4 osh-native
38 no-host configure.yash 1,734 954 784 33.1 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 38 22 18.1 osh-cpython
24 no-host hello-world 3 3 0 7.1 osh-native
32 no-host hello-world 3 1 1 6.6 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 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,702 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,443 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,345 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 102,865 0 0 0 8 0 1,989 78 bash
9 no-host bin-true 49,396 0 0 0 8 0 2,977 51 dash
17 no-host bin-true 840,684 0 0 0 8 0 1,991 143 osh-cpython
25 no-host bin-true 138,299 0 0 0 16 0 1,968 105 osh-native
33 no-host bin-true 135,262 0 0 0 16 0 1,975 111 osh-native-souffle
2 no-host configure.cpython 1,621,787 0 0 0 25,272 0 14,064 1,056 bash
10 no-host configure.cpython 1,640,639 0 0 0 25,272 0 14,105 1,078 dash
18 no-host configure.cpython 5,997,595 0 0 0 25,272 0 12,876 913 osh-cpython
26 no-host configure.cpython 1,798,420 0 0 0 25,280 0 12,841 1,036 osh-native
34 no-host configure.cpython 1,791,667 0 0 0 25,280 0 12,844 1,039 osh-native-souffle
4 no-host configure.ocaml 298,966 0 0 0 4,432 0 2,015 199 bash
12 no-host configure.ocaml 280,705 0 0 0 4,432 0 2,099 179 dash
20 no-host configure.ocaml 557,836 0 0 0 4,432 0 1,909 166 osh-cpython
28 no-host configure.ocaml 317,470 0 0 0 4,440 0 1,991 199 osh-native
36 no-host configure.ocaml 316,759 0 0 0 4,440 0 1,996 210 osh-native-souffle
5 no-host configure.tcc 5,207 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,220 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,959 0 0 0 88 0 54 3 osh-cpython
29 no-host configure.tcc 5,971 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,889 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,530,168 0 0 0 35,944 0 19,000 1,130 bash
11 no-host configure.util-linux 1,698,465 1 0 0 35,936 0 17,109 1,287 dash
19 no-host configure.util-linux 4,988,977 1 0 0 35,952 0 17,532 852 osh-cpython
27 no-host configure.util-linux 1,721,921 0 0 0 35,952 0 17,457 1,070 osh-native
35 no-host configure.util-linux 1,713,317 0 0 0 35,952 0 17,501 1,113 osh-native-souffle
6 no-host configure.yash 173,395 0 0 0 3,616 0 876 95 bash
14 no-host configure.yash 159,510 0 0 0 3,616 0 999 121 dash
22 no-host configure.yash 316,090 0 0 0 3,616 0 858 105 osh-cpython
30 no-host configure.yash 179,126 0 0 0 3,624 0 856 104 osh-native
38 no-host configure.yash 178,896 0 0 0 3,624 0 857 97 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,869 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-22422124
dash dash-cea41b3e
osh-cpython osh-4e36bedb
osh-native osh-1b01d525
osh-native-souffle osh-9338da50
host label host id
no-host no-host-31404de8