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 21 21 34.12 1.38
bin-true no-host 614 436 2,458 808 787 4.00 1.32
configure.cpython no-host 13,909 13,925 29,630 15,259 14,881 2.13 1.10
configure.ocaml no-host 3,680 3,612 4,661 3,739 3,747 1.27 1.02
configure.tcc no-host 46 41 223 49 49 4.84 1.06
configure.util-linux no-host 12,640 13,314 32,097 14,196 13,739 2.54 1.12
configure.yash no-host 1,708 1,639 2,450 1,729 1,723 1.43 1.01
hello-world no-host 1 1 61 3 3 51.28 2.42

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,424 1,167 24,542 3,395 3,368 10.12 1.40
bin-true no-host 100,958 49,394 826,219 135,340 132,253 8.18 1.34
configure.cpython no-host 1,624,465 1,637,904 5,958,486 1,808,358 1,786,580 3.67 1.11
configure.ocaml no-host 298,578 280,782 555,327 317,702 316,138 1.86 1.06
configure.tcc no-host 5,199 4,206 23,792 5,985 5,888 4.58 1.15
configure.util-linux no-host 1,530,334 1,695,908 4,977,962 1,722,476 1,702,603 3.25 1.13
configure.yash no-host 173,868 159,558 315,700 179,148 179,446 1.82 1.03
hello-world no-host 149 88 3,890 386 381 26.11 2.59

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 4.1 22.7 9.7 9.4 4.67 2.00
bin-true no-host 3.3 1.6 18.2 8.8 8.4 5.55 2.68
configure.cpython no-host 34.8 34.5 34.6 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.0 26.1 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.6 39.5 39.6 1.00 0.99
configure.yash no-host 33.4 33.4 33.1 33.4 33.5 0.99 1.00
hello-world no-host 3.1 1.6 18.1 6.9 6.4 5.74 2.21

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 808 1 2 2.6 8.8 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 15,259 1 69 15.2 34.6 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 14,196 3 66 21.4 39.5 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,739 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,729 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 21 1 2 2.8 9.7 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 787 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,881 1 66 15.2 34.5 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,739 3 60 21.4 39.6 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.1 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,723 1 2 2.6 33.5 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.4 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.8 bash
15 no-host abuild-print-help 9 5 5 4.1 dash
23 no-host abuild-print-help 531 479 56 22.7 osh-cpython
31 no-host abuild-print-help 21 18 4 9.7 osh-native
39 no-host abuild-print-help 21 12 10 9.4 osh-native-souffle
1 no-host bin-true 614 310 342 3.3 bash
9 no-host bin-true 436 263 177 1.6 dash
17 no-host bin-true 2,458 886 1,845 18.2 osh-cpython
25 no-host bin-true 808 307 517 8.8 osh-native
33 no-host bin-true 787 313 491 8.4 osh-native-souffle
2 no-host configure.cpython 13,909 7,564 6,693 34.8 bash
10 no-host configure.cpython 13,925 7,591 6,700 34.5 dash
18 no-host configure.cpython 29,630 16,285 15,357 34.6 osh-cpython
26 no-host configure.cpython 15,259 7,621 7,924 34.6 osh-native
34 no-host configure.cpython 14,881 7,447 7,501 34.5 osh-native-souffle
4 no-host configure.ocaml 3,680 1,465 1,246 28.7 bash
12 no-host configure.ocaml 3,612 1,458 1,178 28.5 dash
20 no-host configure.ocaml 4,661 2,116 1,768 28.7 osh-cpython
28 no-host configure.ocaml 3,739 1,488 1,293 28.7 osh-native
36 no-host configure.ocaml 3,747 1,448 1,336 28.7 osh-native-souffle
5 no-host configure.tcc 46 18 29 26.1 bash
13 no-host configure.tcc 41 22 20 26.0 dash
21 no-host configure.tcc 223 149 78 26.1 osh-cpython
29 no-host configure.tcc 49 26 23 26.2 osh-native
37 no-host configure.tcc 49 28 21 26.1 osh-native-souffle
3 no-host configure.util-linux 12,640 6,572 6,508 39.7 bash
11 no-host configure.util-linux 13,314 6,470 7,321 39.7 dash
19 no-host configure.util-linux 32,097 20,162 13,002 39.6 osh-cpython
27 no-host configure.util-linux 14,196 6,607 7,804 39.5 osh-native
35 no-host configure.util-linux 13,739 6,221 7,568 39.6 osh-native-souffle
6 no-host configure.yash 1,708 968 746 33.4 bash
14 no-host configure.yash 1,639 939 701 33.4 dash
22 no-host configure.yash 2,450 1,469 1,025 33.1 osh-cpython
30 no-host configure.yash 1,729 946 786 33.4 osh-native
38 no-host configure.yash 1,723 938 789 33.5 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 61 43 19 18.1 osh-cpython
24 no-host hello-world 3 1 2 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,424 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,167 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,542 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,395 0 0 0 16 0 38 1 osh-native
39 no-host abuild-print-help 3,368 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,958 0 0 0 8 0 1,982 74 bash
9 no-host bin-true 49,394 0 0 0 8 0 2,971 57 dash
17 no-host bin-true 826,219 0 0 0 8 0 1,982 105 osh-cpython
25 no-host bin-true 135,340 0 0 0 16 0 1,971 137 osh-native
33 no-host bin-true 132,253 0 0 0 16 0 1,986 77 osh-native-souffle
2 no-host configure.cpython 1,624,465 0 0 0 25,272 0 14,028 1,077 bash
10 no-host configure.cpython 1,637,904 0 0 0 25,272 0 14,075 999 dash
18 no-host configure.cpython 5,958,486 0 0 0 25,272 0 12,876 955 osh-cpython
26 no-host configure.cpython 1,808,358 0 0 0 25,280 0 12,825 1,048 osh-native
34 no-host configure.cpython 1,786,580 0 0 0 25,280 0 12,841 1,030 osh-native-souffle
4 no-host configure.ocaml 298,578 0 0 0 4,432 0 2,009 185 bash
12 no-host configure.ocaml 280,782 0 0 0 4,432 0 2,099 184 dash
20 no-host configure.ocaml 555,327 0 0 0 4,432 0 1,913 201 osh-cpython
28 no-host configure.ocaml 317,702 0 0 0 4,440 0 1,997 203 osh-native
36 no-host configure.ocaml 316,138 0 0 0 4,440 0 1,999 216 osh-native-souffle
5 no-host configure.tcc 5,199 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,792 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,985 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,888 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,530,334 0 0 0 35,944 0 18,985 1,134 bash
11 no-host configure.util-linux 1,695,908 0 0 0 35,936 0 17,070 1,278 dash
19 no-host configure.util-linux 4,977,962 3 0 0 35,960 0 17,534 830 osh-cpython
27 no-host configure.util-linux 1,722,476 1 0 0 35,944 0 17,500 1,093 osh-native
35 no-host configure.util-linux 1,702,603 3 0 0 35,944 0 17,521 1,081 osh-native-souffle
6 no-host configure.yash 173,868 0 0 0 3,616 0 874 103 bash
14 no-host configure.yash 159,558 0 0 0 3,624 0 998 115 dash
22 no-host configure.yash 315,700 0 0 0 3,616 0 858 110 osh-cpython
30 no-host configure.yash 179,148 0 0 0 3,624 0 854 97 osh-native
38 no-host configure.yash 179,446 0 0 0 3,624 0 858 103 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,890 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 381 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-df18773c
dash dash-cea41b3e
osh-cpython osh-5654d9a8
osh-native osh-e9045711
osh-native-souffle osh-7bde4e01
host label host id
no-host no-host-2411472