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 15 9 527 21 20 34.36 1.39
bin-true no-host 616 435 2,460 795 806 4.00 1.29
configure.cpython no-host 13,560 13,858 29,246 14,410 14,472 2.16 1.06
configure.ocaml no-host 3,683 3,618 4,591 3,695 3,760 1.25 1.00
configure.tcc no-host 46 41 221 48 48 4.77 1.04
configure.util-linux no-host 12,243 13,173 31,695 13,455 13,697 2.59 1.10
configure.yash no-host 1,705 1,668 2,403 1,699 1,694 1.41 1.00
hello-world no-host 1 1 60 3 3 51.89 2.46

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,380 1,189 24,912 3,473 3,364 10.47 1.46
bin-true no-host 100,957 49,404 835,045 137,278 138,288 8.27 1.36
configure.cpython no-host 1,620,997 1,636,067 5,950,447 1,797,785 1,786,572 3.67 1.11
configure.ocaml no-host 298,967 280,674 555,626 316,142 316,357 1.86 1.06
configure.tcc no-host 5,203 4,233 23,777 5,992 5,895 4.57 1.15
configure.util-linux no-host 1,535,783 1,693,724 4,964,204 1,724,024 1,710,836 3.23 1.12
configure.yash no-host 173,424 159,534 315,027 179,822 179,088 1.82 1.04
hello-world no-host 148 90 3,870 387 379 26.15 2.61

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.8 9.8 9.3 4.83 2.08
bin-true no-host 3.1 1.6 18.1 8.7 8.3 5.74 2.75
configure.cpython no-host 34.4 34.4 34.7 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.8 28.7 1.00 1.00
configure.tcc no-host 26.0 26.0 26.1 26.0 26.2 1.01 1.00
configure.util-linux no-host 39.7 39.5 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.1 33.4 33.2 33.4 33.3 1.00 1.01
hello-world no-host 3.1 1.6 18.0 7.1 6.4 5.71 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 795 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,410 1 64 15.2 34.4 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,455 4 60 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,695 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 48 0 0 1.3 26.0 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,699 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 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.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 806 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 14,472 1 63 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,697 3 58 21.4 39.7 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,760 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 48 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,694 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.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 15 8 8 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 527 475 55 22.8 osh-cpython
31 no-host abuild-print-help 21 13 9 9.8 osh-native
39 no-host abuild-print-help 20 11 10 9.3 osh-native-souffle
1 no-host bin-true 616 309 343 3.1 bash
9 no-host bin-true 435 276 163 1.6 dash
17 no-host bin-true 2,460 916 1,822 18.1 osh-cpython
25 no-host bin-true 795 316 496 8.7 osh-native
33 no-host bin-true 806 304 519 8.3 osh-native-souffle
2 no-host configure.cpython 13,560 7,373 6,557 34.4 bash
10 no-host configure.cpython 13,858 7,542 6,709 34.4 dash
18 no-host configure.cpython 29,246 16,069 15,131 34.7 osh-cpython
26 no-host configure.cpython 14,410 7,258 7,448 34.4 osh-native
34 no-host configure.cpython 14,472 7,331 7,314 34.5 osh-native-souffle
4 no-host configure.ocaml 3,683 1,439 1,283 28.7 bash
12 no-host configure.ocaml 3,618 1,451 1,191 28.7 dash
20 no-host configure.ocaml 4,591 2,104 1,706 28.6 osh-cpython
28 no-host configure.ocaml 3,695 1,479 1,255 28.8 osh-native
36 no-host configure.ocaml 3,760 1,495 1,305 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.0 bash
13 no-host configure.tcc 41 21 20 26.0 dash
21 no-host configure.tcc 221 156 69 26.1 osh-cpython
29 no-host configure.tcc 48 30 19 26.0 osh-native
37 no-host configure.tcc 48 27 22 26.2 osh-native-souffle
3 no-host configure.util-linux 12,243 6,332 6,356 39.7 bash
11 no-host configure.util-linux 13,173 6,407 7,248 39.5 dash
19 no-host configure.util-linux 31,695 19,886 12,866 39.7 osh-cpython
27 no-host configure.util-linux 13,455 6,250 7,440 39.6 osh-native
35 no-host configure.util-linux 13,697 6,341 7,427 39.7 osh-native-souffle
6 no-host configure.yash 1,705 965 748 33.1 bash
14 no-host configure.yash 1,668 983 687 33.4 dash
22 no-host configure.yash 2,403 1,423 1,022 33.2 osh-cpython
30 no-host configure.yash 1,699 923 780 33.4 osh-native
38 no-host configure.yash 1,694 911 785 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 40 21 18.0 osh-cpython
24 no-host hello-world 3 2 1 7.1 osh-native
32 no-host hello-world 3 3 0 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,380 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,189 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,912 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,473 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,364 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 100,957 0 0 0 8 0 1,978 76 bash
9 no-host bin-true 49,404 0 0 0 8 0 2,965 55 dash
17 no-host bin-true 835,045 0 0 0 8 0 1,985 130 osh-cpython
25 no-host bin-true 137,278 0 0 0 16 0 1,976 101 osh-native
33 no-host bin-true 138,288 0 0 0 16 0 1,977 101 osh-native-souffle
2 no-host configure.cpython 1,620,997 0 0 0 25,272 0 14,005 1,075 bash
10 no-host configure.cpython 1,636,067 0 0 0 25,272 0 14,064 1,080 dash
18 no-host configure.cpython 5,950,447 0 0 0 25,272 0 12,870 890 osh-cpython
26 no-host configure.cpython 1,797,785 0 0 0 25,280 0 12,846 1,061 osh-native
34 no-host configure.cpython 1,786,572 0 0 0 25,280 0 12,835 1,095 osh-native-souffle
4 no-host configure.ocaml 298,967 0 0 0 4,432 0 2,009 196 bash
12 no-host configure.ocaml 280,674 0 0 0 4,432 0 2,101 197 dash
20 no-host configure.ocaml 555,626 1 0 0 4,432 0 1,913 179 osh-cpython
28 no-host configure.ocaml 316,142 0 0 0 4,440 0 1,996 188 osh-native
36 no-host configure.ocaml 316,357 0 0 0 4,440 0 1,996 194 osh-native-souffle
5 no-host configure.tcc 5,203 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,233 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 23,777 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,992 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,895 0 0 0 96 0 46 3 osh-native-souffle
3 no-host configure.util-linux 1,535,783 0 0 0 35,944 0 18,897 1,103 bash
11 no-host configure.util-linux 1,693,724 1 0 0 35,936 0 17,073 1,233 dash
19 no-host configure.util-linux 4,964,204 1 0 0 35,944 0 17,508 867 osh-cpython
27 no-host configure.util-linux 1,724,024 1 0 0 35,944 0 17,529 1,056 osh-native
35 no-host configure.util-linux 1,710,836 1 0 0 35,944 0 17,451 1,077 osh-native-souffle
6 no-host configure.yash 173,424 0 0 0 3,616 0 875 92 bash
14 no-host configure.yash 159,534 0 0 0 3,616 0 997 101 dash
22 no-host configure.yash 315,027 0 0 0 3,616 0 862 106 osh-cpython
30 no-host configure.yash 179,822 0 0 0 3,624 0 857 100 osh-native
38 no-host configure.yash 179,088 0 0 0 3,624 0 854 116 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 90 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,870 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 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b40b86d7
dash dash-cea41b3e
osh-cpython osh-89d17f17
osh-native osh-7becdced
osh-native-souffle osh-62ae2b0e
host label host id
no-host no-host-2411472