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 541 22 21 34.15 1.38
bin-true no-host 624 441 2,470 809 802 3.96 1.30
configure.cpython no-host 14,096 14,292 30,594 15,045 14,944 2.17 1.07
configure.ocaml no-host 3,756 3,699 4,837 3,837 3,833 1.29 1.02
configure.tcc no-host 47 42 228 50 50 4.90 1.08
configure.util-linux no-host 12,754 13,705 33,540 13,983 14,212 2.63 1.10
configure.yash no-host 1,734 1,679 2,487 1,775 1,767 1.43 1.02
hello-world no-host 1 1 61 3 3 48.57 2.30

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,394 1,147 24,545 3,461 3,356 10.25 1.45
bin-true no-host 99,909 49,395 827,261 136,251 134,247 8.28 1.36
configure.cpython no-host 1,621,198 1,639,308 5,980,851 1,793,379 1,770,756 3.69 1.11
configure.ocaml no-host 298,729 280,563 555,399 317,225 316,492 1.86 1.06
configure.tcc no-host 5,212 4,206 23,775 5,985 5,881 4.56 1.15
configure.util-linux no-host 1,534,656 1,694,723 4,977,614 1,718,060 1,704,330 3.24 1.12
configure.yash no-host 173,486 159,529 315,713 179,559 179,299 1.82 1.04
hello-world no-host 151 86 3,891 385 379 25.77 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.8 3.9 22.8 9.8 9.2 4.71 2.03
bin-true no-host 3.4 1.4 18.1 8.7 8.4 5.30 2.54
configure.cpython no-host 34.6 34.5 34.8 34.7 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.6 28.8 1.00 1.00
configure.tcc no-host 26.0 26.0 26.1 26.3 26.2 1.01 1.01
configure.util-linux no-host 39.7 39.5 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.2 33.1 33.2 1.00 0.99
hello-world no-host 3.3 1.4 18.1 6.9 6.4 5.51 2.12

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.9 3,826 3,826 0 703 1,880 1,243 2 0 50,000 0
bin-true no-host 809 1 2 2.6 8.7 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 15,045 1 69 15.2 34.7 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,983 3 61 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,837 1 2 2.7 28.6 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.3 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,775 1 2 2.6 33.1 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.4 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 802 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,944 1 67 15.2 34.4 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,212 3 64 21.4 39.7 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,833 1 2 2.7 28.8 149,873 12,470 6,513 7,820 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 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,767 1 2 2.6 33.2 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 9 8 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 541 484 60 22.8 osh-cpython
31 no-host abuild-print-help 22 10 13 9.8 osh-native
39 no-host abuild-print-help 21 8 14 9.2 osh-native-souffle
1 no-host bin-true 624 312 350 3.4 bash
9 no-host bin-true 441 267 179 1.4 dash
17 no-host bin-true 2,470 896 1,854 18.1 osh-cpython
25 no-host bin-true 809 318 508 8.7 osh-native
33 no-host bin-true 802 301 517 8.4 osh-native-souffle
2 no-host configure.cpython 14,096 7,667 6,806 34.6 bash
10 no-host configure.cpython 14,292 7,764 6,935 34.5 dash
18 no-host configure.cpython 30,594 16,659 16,030 34.8 osh-cpython
26 no-host configure.cpython 15,045 7,527 7,821 34.7 osh-native
34 no-host configure.cpython 14,944 7,503 7,561 34.4 osh-native-souffle
4 no-host configure.ocaml 3,756 1,496 1,297 28.7 bash
12 no-host configure.ocaml 3,699 1,481 1,241 28.8 dash
20 no-host configure.ocaml 4,837 2,189 1,882 28.8 osh-cpython
28 no-host configure.ocaml 3,837 1,519 1,360 28.6 osh-native
36 no-host configure.ocaml 3,833 1,515 1,359 28.8 osh-native-souffle
5 no-host configure.tcc 47 24 22 26.0 bash
13 no-host configure.tcc 42 21 21 26.0 dash
21 no-host configure.tcc 228 172 60 26.1 osh-cpython
29 no-host configure.tcc 50 23 27 26.3 osh-native
37 no-host configure.tcc 50 28 23 26.2 osh-native-souffle
3 no-host configure.util-linux 12,754 6,640 6,579 39.7 bash
11 no-host configure.util-linux 13,705 6,568 7,632 39.5 dash
19 no-host configure.util-linux 33,540 20,987 13,699 39.7 osh-cpython
27 no-host configure.util-linux 13,983 6,545 7,672 39.7 osh-native
35 no-host configure.util-linux 14,212 6,462 7,823 39.7 osh-native-souffle
6 no-host configure.yash 1,734 950 792 33.4 bash
14 no-host configure.yash 1,679 952 728 33.4 dash
22 no-host configure.yash 2,487 1,472 1,059 33.2 osh-cpython
30 no-host configure.yash 1,775 947 830 33.1 osh-native
38 no-host configure.yash 1,767 945 824 33.2 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 61 40 22 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 1 2 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,394 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,147 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,545 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,461 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,356 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,909 0 0 0 8 0 1,987 65 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,977 53 dash
17 no-host bin-true 827,261 0 0 0 8 0 1,978 156 osh-cpython
25 no-host bin-true 136,251 0 0 0 16 0 1,986 63 osh-native
33 no-host bin-true 134,247 0 0 0 16 0 1,972 87 osh-native-souffle
2 no-host configure.cpython 1,621,198 0 0 0 25,272 0 13,996 1,101 bash
10 no-host configure.cpython 1,639,308 0 0 0 25,272 0 14,065 1,031 dash
18 no-host configure.cpython 5,980,851 0 0 0 25,272 0 12,861 862 osh-cpython
26 no-host configure.cpython 1,793,379 0 0 0 25,280 0 12,810 999 osh-native
34 no-host configure.cpython 1,770,756 0 0 0 25,280 0 12,802 1,073 osh-native-souffle
4 no-host configure.ocaml 298,729 0 0 0 4,432 0 2,010 181 bash
12 no-host configure.ocaml 280,563 0 0 0 4,432 0 2,089 194 dash
20 no-host configure.ocaml 555,399 0 0 0 4,432 0 1,916 196 osh-cpython
28 no-host configure.ocaml 317,225 0 0 0 4,440 0 1,993 201 osh-native
36 no-host configure.ocaml 316,492 0 0 0 4,440 0 2,003 184 osh-native-souffle
5 no-host configure.tcc 5,212 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,775 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,985 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,881 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,534,656 0 0 0 35,944 0 18,895 1,121 bash
11 no-host configure.util-linux 1,694,723 0 0 0 35,936 0 17,014 1,235 dash
19 no-host configure.util-linux 4,977,614 0 0 0 35,960 0 17,516 857 osh-cpython
27 no-host configure.util-linux 1,718,060 1 0 0 35,952 0 17,479 1,075 osh-native
35 no-host configure.util-linux 1,704,330 2 0 0 35,952 0 17,457 1,039 osh-native-souffle
6 no-host configure.yash 173,486 0 0 0 3,616 0 874 99 bash
14 no-host configure.yash 159,529 0 0 0 3,616 0 1,001 124 dash
22 no-host configure.yash 315,713 0 0 0 3,616 0 862 103 osh-cpython
30 no-host configure.yash 179,559 0 0 0 3,624 0 856 112 osh-native
38 no-host configure.yash 179,299 0 0 0 3,624 0 857 98 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,891 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 379 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2a83ec92
dash dash-cea41b3e
osh-cpython osh-53a73d66
osh-native osh-d47e4711
osh-native-souffle osh-b75c96f9
host label host id
no-host no-host-2411472