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 549 22 21 34.44 1.39
bin-true no-host 616 436 2,478 802 788 4.02 1.30
configure.cpython no-host 14,465 14,306 30,108 14,984 15,087 2.08 1.04
configure.ocaml no-host 3,854 3,704 4,786 3,821 3,791 1.24 0.99
configure.tcc no-host 48 44 228 49 49 4.77 1.03
configure.util-linux no-host 13,223 13,797 33,182 14,088 14,030 2.51 1.07
configure.yash no-host 1,755 1,685 2,539 1,769 1,752 1.45 1.01
hello-world no-host 1 1 65 3 3 49.22 2.20

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,391 1,162 24,925 3,484 3,370 10.42 1.46
bin-true no-host 99,912 49,437 832,716 135,285 133,268 8.33 1.35
configure.cpython no-host 1,617,928 1,637,432 6,011,999 1,793,780 1,783,124 3.72 1.11
configure.ocaml no-host 298,467 281,171 556,996 317,103 315,328 1.87 1.06
configure.tcc no-host 5,233 4,201 23,877 5,962 5,880 4.56 1.14
configure.util-linux no-host 1,533,598 1,691,434 5,001,666 1,726,855 1,711,486 3.26 1.13
configure.yash no-host 173,778 159,594 316,098 179,568 178,543 1.82 1.03
hello-world no-host 154 87 3,895 389 379 25.29 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.7 3.8 22.8 9.8 9.3 4.83 2.08
bin-true no-host 3.1 1.4 18.1 8.8 8.3 5.74 2.79
configure.cpython no-host 34.5 34.8 34.5 34.6 34.4 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.7 28.8 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.9 39.5 39.6 39.6 0.99 1.00
configure.yash no-host 33.5 33.4 33.1 33.1 33.4 0.99 0.99
hello-world no-host 3.3 1.4 18.1 7.1 6.6 5.51 2.16

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 802 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,984 1 68 15.2 34.6 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,088 3 63 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,821 1 2 2.7 28.8 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.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,769 1 2 2.6 33.1 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.6 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.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 15,087 1 67 15.2 34.4 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,030 3 62 21.4 39.6 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,791 1 2 2.7 28.6 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.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,752 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.3 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 8 4.7 bash
15 no-host abuild-print-help 9 6 3 3.8 dash
23 no-host abuild-print-help 549 484 68 22.8 osh-cpython
31 no-host abuild-print-help 22 8 15 9.8 osh-native
39 no-host abuild-print-help 21 11 11 9.3 osh-native-souffle
1 no-host bin-true 616 307 346 3.1 bash
9 no-host bin-true 436 275 166 1.4 dash
17 no-host bin-true 2,478 888 1,867 18.1 osh-cpython
25 no-host bin-true 802 312 507 8.8 osh-native
33 no-host bin-true 788 303 501 8.3 osh-native-souffle
2 no-host configure.cpython 14,465 7,830 7,024 34.5 bash
10 no-host configure.cpython 14,306 7,735 6,969 34.8 dash
18 no-host configure.cpython 30,108 16,506 15,632 34.5 osh-cpython
26 no-host configure.cpython 14,984 7,623 7,660 34.6 osh-native
34 no-host configure.cpython 15,087 7,588 7,655 34.4 osh-native-souffle
4 no-host configure.ocaml 3,854 1,518 1,375 28.8 bash
12 no-host configure.ocaml 3,704 1,473 1,253 28.7 dash
20 no-host configure.ocaml 4,786 2,172 1,842 28.7 osh-cpython
28 no-host configure.ocaml 3,821 1,491 1,372 28.8 osh-native
36 no-host configure.ocaml 3,791 1,493 1,336 28.6 osh-native-souffle
5 no-host configure.tcc 48 20 28 26.2 bash
13 no-host configure.tcc 44 25 18 26.2 dash
21 no-host configure.tcc 228 159 73 26.2 osh-cpython
29 no-host configure.tcc 49 22 28 26.3 osh-native
37 no-host configure.tcc 49 26 24 26.3 osh-native-souffle
3 no-host configure.util-linux 13,223 6,847 6,842 39.7 bash
11 no-host configure.util-linux 13,797 6,720 7,571 39.9 dash
19 no-host configure.util-linux 33,182 20,764 13,536 39.5 osh-cpython
27 no-host configure.util-linux 14,088 6,516 7,812 39.6 osh-native
35 no-host configure.util-linux 14,030 6,513 7,597 39.6 osh-native-souffle
6 no-host configure.yash 1,755 963 800 33.5 bash
14 no-host configure.yash 1,685 955 730 33.4 dash
22 no-host configure.yash 2,539 1,493 1,088 33.1 osh-cpython
30 no-host configure.yash 1,769 983 788 33.1 osh-native
38 no-host configure.yash 1,752 977 776 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 65 45 20 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 0 3 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,391 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,162 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,925 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,484 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,370 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 99,912 0 0 0 8 0 1,978 76 bash
9 no-host bin-true 49,437 0 0 0 8 0 2,940 57 dash
17 no-host bin-true 832,716 0 0 0 8 0 1,977 147 osh-cpython
25 no-host bin-true 135,285 0 0 0 16 0 1,975 70 osh-native
33 no-host bin-true 133,268 0 0 0 16 0 1,993 75 osh-native-souffle
2 no-host configure.cpython 1,617,928 0 0 0 25,272 0 14,004 1,045 bash
10 no-host configure.cpython 1,637,432 0 0 0 25,272 0 14,060 1,100 dash
18 no-host configure.cpython 6,011,999 0 0 0 25,272 0 12,859 841 osh-cpython
26 no-host configure.cpython 1,793,780 0 0 0 25,280 0 12,821 1,127 osh-native
34 no-host configure.cpython 1,783,124 0 0 0 25,280 0 12,831 1,022 osh-native-souffle
4 no-host configure.ocaml 298,467 0 0 0 4,432 0 2,008 187 bash
12 no-host configure.ocaml 281,171 0 0 0 4,432 0 2,096 225 dash
20 no-host configure.ocaml 556,996 0 0 0 4,432 0 1,908 182 osh-cpython
28 no-host configure.ocaml 317,103 0 0 0 4,440 0 1,998 188 osh-native
36 no-host configure.ocaml 315,328 0 0 0 4,440 0 1,995 203 osh-native-souffle
5 no-host configure.tcc 5,233 0 0 0 80 0 48 1 bash
13 no-host configure.tcc 4,201 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,877 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,962 0 0 0 96 0 46 4 osh-native
37 no-host configure.tcc 5,880 0 0 0 96 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,533,598 0 0 0 35,944 0 18,997 1,048 bash
11 no-host configure.util-linux 1,691,434 0 0 0 35,936 0 17,065 1,270 dash
19 no-host configure.util-linux 5,001,666 0 0 0 35,944 0 17,495 851 osh-cpython
27 no-host configure.util-linux 1,726,855 0 0 0 35,944 0 17,494 1,043 osh-native
35 no-host configure.util-linux 1,711,486 1 0 0 35,944 0 17,486 1,070 osh-native-souffle
6 no-host configure.yash 173,778 0 0 0 3,616 0 869 99 bash
14 no-host configure.yash 159,594 0 0 0 3,624 0 994 113 dash
22 no-host configure.yash 316,098 0 0 0 3,616 0 857 108 osh-cpython
30 no-host configure.yash 179,568 0 0 0 3,624 0 858 94 osh-native
38 no-host configure.yash 178,543 0 0 0 3,624 0 848 98 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,895 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 389 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7abb0eda
dash dash-cea41b3e
osh-cpython osh-5d23bf8d
osh-native osh-d7a6b442
osh-native-souffle osh-18f7ca74
host label host id
no-host no-host-2411472