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 521 22 20 33.68 1.40
bin-true no-host 611 433 2,437 800 789 3.99 1.31
configure.cpython no-host 13,528 13,572 28,770 14,336 14,526 2.13 1.06
configure.ocaml no-host 3,618 3,554 4,569 3,711 3,671 1.26 1.03
configure.tcc no-host 46 40 219 51 48 4.80 1.11
configure.util-linux no-host 12,325 13,107 31,491 13,354 13,404 2.56 1.08
configure.yash no-host 1,660 1,605 2,384 1,738 1,686 1.44 1.05
hello-world no-host 1 1 59 3 3 51.42 2.51

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,411 1,172 24,871 3,478 3,362 10.32 1.44
bin-true no-host 102,967 49,437 837,056 137,278 133,276 8.13 1.33
configure.cpython no-host 1,626,870 1,641,374 5,961,272 1,798,621 1,790,453 3.66 1.11
configure.ocaml no-host 298,489 280,579 556,081 317,732 316,487 1.86 1.06
configure.tcc no-host 5,226 4,213 23,761 5,943 5,873 4.55 1.14
configure.util-linux no-host 1,538,218 1,696,349 4,964,453 1,724,488 1,698,548 3.23 1.12
configure.yash no-host 173,635 159,522 315,441 179,503 179,076 1.82 1.03
hello-world no-host 154 86 3,875 381 380 25.16 2.47

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.8 9.2 4.67 2.03
bin-true no-host 3.3 1.6 18.4 8.8 8.3 5.60 2.68
configure.cpython no-host 34.6 34.4 34.5 34.7 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.0 26.3 26.0 0.99 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.5 39.9 1.00 1.00
configure.yash no-host 33.5 33.4 33.2 33.4 33.4 0.99 1.00
hello-world no-host 3.1 1.6 18.1 6.8 6.6 5.74 2.17

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.8 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 800 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,336 1 62 15.2 34.7 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,354 3 57 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,711 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 51 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,738 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 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 789 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,526 1 62 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,404 3 56 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,671 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.0 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,686 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 20 1 2 2.8 9.2 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 7 9 4.8 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 521 459 65 22.7 osh-cpython
31 no-host abuild-print-help 22 10 13 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.2 osh-native-souffle
1 no-host bin-true 611 308 341 3.3 bash
9 no-host bin-true 433 275 165 1.6 dash
17 no-host bin-true 2,437 839 1,858 18.4 osh-cpython
25 no-host bin-true 800 308 509 8.8 osh-native
33 no-host bin-true 789 320 483 8.3 osh-native-souffle
2 no-host configure.cpython 13,528 7,472 6,426 34.6 bash
10 no-host configure.cpython 13,572 7,415 6,540 34.4 dash
18 no-host configure.cpython 28,770 15,798 14,890 34.5 osh-cpython
26 no-host configure.cpython 14,336 7,273 7,354 34.7 osh-native
34 no-host configure.cpython 14,526 7,157 7,441 34.5 osh-native-souffle
4 no-host configure.ocaml 3,618 1,444 1,211 28.7 bash
12 no-host configure.ocaml 3,554 1,389 1,188 28.6 dash
20 no-host configure.ocaml 4,569 2,039 1,748 28.7 osh-cpython
28 no-host configure.ocaml 3,711 1,439 1,315 28.7 osh-native
36 no-host configure.ocaml 3,671 1,428 1,284 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 23 26.3 bash
13 no-host configure.tcc 40 22 18 26.3 dash
21 no-host configure.tcc 219 159 64 26.0 osh-cpython
29 no-host configure.tcc 51 26 25 26.3 osh-native
37 no-host configure.tcc 48 23 25 26.0 osh-native-souffle
3 no-host configure.util-linux 12,325 6,521 6,251 39.6 bash
11 no-host configure.util-linux 13,107 6,372 7,213 39.7 dash
19 no-host configure.util-linux 31,491 19,793 12,732 39.6 osh-cpython
27 no-host configure.util-linux 13,354 6,213 7,372 39.5 osh-native
35 no-host configure.util-linux 13,404 6,147 7,330 39.9 osh-native-souffle
6 no-host configure.yash 1,660 931 737 33.5 bash
14 no-host configure.yash 1,605 920 687 33.4 dash
22 no-host configure.yash 2,384 1,425 1,001 33.2 osh-cpython
30 no-host configure.yash 1,738 941 800 33.4 osh-native
38 no-host configure.yash 1,686 901 788 33.4 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 59 36 23 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 1 1 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,411 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,871 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,478 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,362 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,967 0 0 0 8 0 1,985 59 bash
9 no-host bin-true 49,437 0 0 0 8 0 2,978 44 dash
17 no-host bin-true 837,056 0 0 0 8 0 1,990 127 osh-cpython
25 no-host bin-true 137,278 0 0 0 16 0 1,973 96 osh-native
33 no-host bin-true 133,276 0 0 0 16 0 1,955 106 osh-native-souffle
2 no-host configure.cpython 1,626,870 0 0 0 25,272 0 14,035 1,043 bash
10 no-host configure.cpython 1,641,374 0 0 0 25,272 0 14,072 1,031 dash
18 no-host configure.cpython 5,961,272 0 0 0 25,272 0 12,874 851 osh-cpython
26 no-host configure.cpython 1,798,621 0 0 0 25,280 0 12,869 1,090 osh-native
34 no-host configure.cpython 1,790,453 0 0 0 25,280 0 12,815 1,047 osh-native-souffle
4 no-host configure.ocaml 298,489 0 0 0 4,432 0 2,011 176 bash
12 no-host configure.ocaml 280,579 0 0 0 4,432 0 2,095 197 dash
20 no-host configure.ocaml 556,081 1 0 0 4,432 0 1,919 190 osh-cpython
28 no-host configure.ocaml 317,732 0 0 0 4,440 0 2,000 181 osh-native
36 no-host configure.ocaml 316,487 0 0 0 4,440 0 1,999 202 osh-native-souffle
5 no-host configure.tcc 5,226 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,761 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,943 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,873 0 0 0 96 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,538,218 1 0 0 35,944 0 18,954 1,078 bash
11 no-host configure.util-linux 1,696,349 0 0 0 35,936 0 17,084 1,196 dash
19 no-host configure.util-linux 4,964,453 1 0 0 35,944 0 17,535 862 osh-cpython
27 no-host configure.util-linux 1,724,488 2 0 0 35,944 0 17,539 1,128 osh-native
35 no-host configure.util-linux 1,698,548 1 0 0 35,944 0 17,497 1,133 osh-native-souffle
6 no-host configure.yash 173,635 0 0 0 3,616 0 872 101 bash
14 no-host configure.yash 159,522 0 0 0 3,624 0 1,000 106 dash
22 no-host configure.yash 315,441 0 0 0 3,616 0 861 101 osh-cpython
30 no-host configure.yash 179,503 0 0 0 3,624 0 854 102 osh-native
38 no-host configure.yash 179,076 0 0 0 3,632 0 856 96 osh-native-souffle
0 no-host hello-world 154 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,875 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 381 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-53f22e98
dash dash-cea41b3e
osh-cpython osh-11bf455e
osh-native osh-25f5888b
osh-native-souffle osh-f588d2e4
host label host id
no-host no-host-2411472