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 534 23 20 34.17 1.48
bin-true no-host 611 437 2,464 791 805 4.03 1.29
configure.cpython no-host 13,860 13,826 29,386 14,647 14,683 2.12 1.06
configure.ocaml no-host 3,681 3,606 4,632 3,720 3,771 1.26 1.01
configure.tcc no-host 45 41 220 49 49 4.84 1.08
configure.util-linux no-host 12,493 13,307 32,114 13,602 13,752 2.57 1.09
configure.yash no-host 1,696 1,635 2,422 1,716 1,732 1.43 1.01
hello-world no-host 1 1 63 3 3 52.99 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,390 1,201 24,889 3,485 3,363 10.41 1.46
bin-true no-host 99,985 49,445 839,050 133,290 137,301 8.39 1.33
configure.cpython no-host 1,619,504 1,646,125 5,959,772 1,807,190 1,775,621 3.68 1.12
configure.ocaml no-host 299,055 280,776 556,006 316,916 315,228 1.86 1.06
configure.tcc no-host 5,189 4,206 23,774 5,916 5,899 4.58 1.14
configure.util-linux no-host 1,532,754 1,695,465 4,968,002 1,726,520 1,702,964 3.24 1.13
configure.yash no-host 173,457 159,504 315,684 179,676 179,347 1.82 1.04
hello-world no-host 152 85 3,875 384 377 25.49 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.8 3.9 22.7 10.0 9.4 4.68 2.05
bin-true no-host 3.1 1.4 18.2 8.8 8.4 5.79 2.79
configure.cpython no-host 34.4 34.5 34.5 34.3 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.2 26.3 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.9 39.5 39.6 39.5 39.9 0.99 0.99
configure.yash no-host 33.4 33.3 33.5 33.3 33.3 1.01 1.00
hello-world no-host 3.1 1.6 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,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 791 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,647 1 65 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,602 3 59 21.4 39.5 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,720 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,716 1 2 2.6 33.3 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 10.0 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.6 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 805 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,683 1 64 15.2 34.5 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,752 3 60 21.4 39.9 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,771 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.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,732 1 2 2.6 33.3 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.4 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 4 12 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 534 486 52 22.7 osh-cpython
31 no-host abuild-print-help 23 16 8 10.0 osh-native
39 no-host abuild-print-help 20 9 12 9.4 osh-native-souffle
1 no-host bin-true 611 308 339 3.1 bash
9 no-host bin-true 437 277 163 1.4 dash
17 no-host bin-true 2,464 900 1,835 18.2 osh-cpython
25 no-host bin-true 791 301 507 8.8 osh-native
33 no-host bin-true 805 318 503 8.4 osh-native-souffle
2 no-host configure.cpython 13,860 7,530 6,700 34.4 bash
10 no-host configure.cpython 13,826 7,531 6,676 34.5 dash
18 no-host configure.cpython 29,386 16,179 15,180 34.5 osh-cpython
26 no-host configure.cpython 14,647 7,348 7,596 34.3 osh-native
34 no-host configure.cpython 14,683 7,382 7,427 34.5 osh-native-souffle
4 no-host configure.ocaml 3,681 1,479 1,240 28.7 bash
12 no-host configure.ocaml 3,606 1,442 1,187 28.7 dash
20 no-host configure.ocaml 4,632 2,109 1,744 28.7 osh-cpython
28 no-host configure.ocaml 3,720 1,474 1,287 28.7 osh-native
36 no-host configure.ocaml 3,771 1,473 1,337 28.7 osh-native-souffle
5 no-host configure.tcc 45 27 19 26.3 bash
13 no-host configure.tcc 41 17 25 26.2 dash
21 no-host configure.tcc 220 163 60 26.3 osh-cpython
29 no-host configure.tcc 49 23 27 26.2 osh-native
37 no-host configure.tcc 49 25 25 26.1 osh-native-souffle
3 no-host configure.util-linux 12,493 6,541 6,399 39.9 bash
11 no-host configure.util-linux 13,307 6,299 7,483 39.5 dash
19 no-host configure.util-linux 32,114 20,083 13,109 39.6 osh-cpython
27 no-host configure.util-linux 13,602 6,331 7,502 39.5 osh-native
35 no-host configure.util-linux 13,752 6,301 7,526 39.9 osh-native-souffle
6 no-host configure.yash 1,696 938 765 33.4 bash
14 no-host configure.yash 1,635 938 698 33.3 dash
22 no-host configure.yash 2,422 1,456 1,010 33.5 osh-cpython
30 no-host configure.yash 1,716 941 778 33.3 osh-native
38 no-host configure.yash 1,732 978 756 33.3 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 63 41 22 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 1 2 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,390 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,201 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,889 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,485 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,363 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 99,985 0 0 0 8 0 1,969 74 bash
9 no-host bin-true 49,445 0 0 0 8 0 2,951 66 dash
17 no-host bin-true 839,050 0 0 0 8 0 1,982 153 osh-cpython
25 no-host bin-true 133,290 0 0 0 16 0 1,978 87 osh-native
33 no-host bin-true 137,301 0 0 0 16 0 1,978 79 osh-native-souffle
2 no-host configure.cpython 1,619,504 0 0 0 25,272 0 14,018 1,026 bash
10 no-host configure.cpython 1,646,125 0 0 0 25,272 0 14,050 1,074 dash
18 no-host configure.cpython 5,959,772 0 0 0 25,272 0 12,856 896 osh-cpython
26 no-host configure.cpython 1,807,190 0 0 0 25,280 0 12,852 1,013 osh-native
34 no-host configure.cpython 1,775,621 0 0 0 25,280 0 12,826 1,058 osh-native-souffle
4 no-host configure.ocaml 299,055 0 0 0 4,432 0 2,011 185 bash
12 no-host configure.ocaml 280,776 0 0 0 4,432 0 2,105 193 dash
20 no-host configure.ocaml 556,006 0 0 0 4,432 0 1,913 189 osh-cpython
28 no-host configure.ocaml 316,916 0 0 0 4,440 0 1,993 223 osh-native
36 no-host configure.ocaml 315,228 0 0 0 4,440 0 2,002 207 osh-native-souffle
5 no-host configure.tcc 5,189 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,774 0 0 0 88 0 53 6 osh-cpython
29 no-host configure.tcc 5,916 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,899 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,532,754 1 0 0 35,944 0 18,910 1,098 bash
11 no-host configure.util-linux 1,695,465 0 0 0 35,936 0 17,057 1,238 dash
19 no-host configure.util-linux 4,968,002 0 0 0 35,944 0 17,517 883 osh-cpython
27 no-host configure.util-linux 1,726,520 1 0 0 35,944 0 17,444 1,156 osh-native
35 no-host configure.util-linux 1,702,964 2 0 0 35,944 0 17,462 1,132 osh-native-souffle
6 no-host configure.yash 173,457 0 0 0 3,616 0 872 94 bash
14 no-host configure.yash 159,504 0 0 0 3,624 0 996 98 dash
22 no-host configure.yash 315,684 0 0 0 3,616 0 863 105 osh-cpython
30 no-host configure.yash 179,676 0 0 0 3,624 0 856 100 osh-native
38 no-host configure.yash 179,347 0 0 0 3,624 0 857 103 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,875 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b5774262
dash dash-cea41b3e
osh-cpython osh-c4ea6d92
osh-native osh-e8b6187c
osh-native-souffle osh-9b696b90
host label host id
no-host no-host-2411472