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 532 21 21 33.98 1.36
bin-true no-host 613 437 2,430 810 795 3.97 1.32
configure.cpython no-host 13,764 13,818 29,469 14,542 14,789 2.14 1.06
configure.ocaml no-host 3,654 3,655 4,652 3,718 3,707 1.27 1.02
configure.tcc no-host 46 42 219 49 48 4.74 1.06
configure.util-linux no-host 12,507 13,317 32,164 13,686 13,728 2.57 1.09
configure.yash no-host 1,728 1,646 2,412 1,717 1,710 1.40 0.99
hello-world no-host 1 1 60 3 3 48.10 2.33

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,409 1,182 24,903 3,484 3,357 10.34 1.45
bin-true no-host 102,925 49,426 834,721 135,302 135,257 8.11 1.31
configure.cpython no-host 1,621,347 1,636,125 5,999,462 1,799,700 1,798,015 3.70 1.11
configure.ocaml no-host 298,685 280,757 558,083 317,572 315,705 1.87 1.06
configure.tcc no-host 5,239 4,213 23,909 5,958 5,839 4.56 1.14
configure.util-linux no-host 1,535,368 1,698,751 5,005,837 1,725,494 1,706,274 3.26 1.12
configure.yash no-host 173,550 159,501 316,461 179,660 179,357 1.82 1.04
hello-world no-host 151 87 3,896 388 377 25.80 2.57

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.5 9.8 9.3 4.76 2.08
bin-true no-host 3.3 1.4 18.2 8.9 8.3 5.55 2.72
configure.cpython no-host 34.3 34.5 34.6 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.8 28.5 1.00 1.00
configure.tcc no-host 26.0 26.2 26.1 26.1 26.0 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.6 39.5 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.1 33.3 1.00 1.00
hello-world no-host 3.3 1.6 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 704 1,881 1,241 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.9 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,542 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,686 3 61 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,718 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.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,717 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 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 795 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,789 1 64 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,728 3 60 21.4 39.5 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,707 1 2 2.7 28.5 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,710 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 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 3 6 3.9 dash
23 no-host abuild-print-help 532 466 70 22.5 osh-cpython
31 no-host abuild-print-help 21 12 10 9.8 osh-native
39 no-host abuild-print-help 21 12 9 9.3 osh-native-souffle
1 no-host bin-true 613 302 348 3.3 bash
9 no-host bin-true 437 271 172 1.4 dash
17 no-host bin-true 2,430 864 1,837 18.2 osh-cpython
25 no-host bin-true 810 299 525 8.9 osh-native
33 no-host bin-true 795 316 496 8.3 osh-native-souffle
2 no-host configure.cpython 13,764 7,576 6,555 34.3 bash
10 no-host configure.cpython 13,818 7,458 6,727 34.5 dash
18 no-host configure.cpython 29,469 16,049 15,378 34.6 osh-cpython
26 no-host configure.cpython 14,542 7,373 7,469 34.4 osh-native
34 no-host configure.cpython 14,789 7,358 7,567 34.5 osh-native-souffle
4 no-host configure.ocaml 3,654 1,492 1,201 28.7 bash
12 no-host configure.ocaml 3,655 1,420 1,258 28.7 dash
20 no-host configure.ocaml 4,652 2,064 1,809 28.8 osh-cpython
28 no-host configure.ocaml 3,718 1,506 1,252 28.8 osh-native
36 no-host configure.ocaml 3,707 1,482 1,265 28.5 osh-native-souffle
5 no-host configure.tcc 46 24 23 26.0 bash
13 no-host configure.tcc 42 23 19 26.2 dash
21 no-host configure.tcc 219 149 74 26.1 osh-cpython
29 no-host configure.tcc 49 23 27 26.1 osh-native
37 no-host configure.tcc 48 24 24 26.0 osh-native-souffle
3 no-host configure.util-linux 12,507 6,505 6,433 39.6 bash
11 no-host configure.util-linux 13,317 6,461 7,331 39.6 dash
19 no-host configure.util-linux 32,164 20,074 13,158 39.6 osh-cpython
27 no-host configure.util-linux 13,686 6,336 7,573 39.6 osh-native
35 no-host configure.util-linux 13,728 6,306 7,486 39.5 osh-native-souffle
6 no-host configure.yash 1,728 951 781 33.3 bash
14 no-host configure.yash 1,646 933 714 33.4 dash
22 no-host configure.yash 2,412 1,423 1,032 33.4 osh-cpython
30 no-host configure.yash 1,717 947 773 33.1 osh-native
38 no-host configure.yash 1,710 953 759 33.3 osh-native-souffle
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 39 21 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 2 1 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,409 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,182 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,903 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,484 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,357 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 102,925 0 0 0 8 0 1,988 81 bash
9 no-host bin-true 49,426 0 0 0 8 0 2,969 54 dash
17 no-host bin-true 834,721 0 0 0 8 0 1,985 112 osh-cpython
25 no-host bin-true 135,302 0 0 0 16 0 1,993 72 osh-native
33 no-host bin-true 135,257 0 0 0 16 0 1,974 65 osh-native-souffle
2 no-host configure.cpython 1,621,347 0 0 0 25,272 0 14,025 1,055 bash
10 no-host configure.cpython 1,636,125 0 0 0 25,272 0 14,078 1,011 dash
18 no-host configure.cpython 5,999,462 0 0 0 25,272 0 12,864 909 osh-cpython
26 no-host configure.cpython 1,799,700 0 0 0 25,280 0 12,864 1,061 osh-native
34 no-host configure.cpython 1,798,015 0 0 0 25,280 0 12,824 1,032 osh-native-souffle
4 no-host configure.ocaml 298,685 0 0 0 4,432 0 2,006 212 bash
12 no-host configure.ocaml 280,757 0 0 0 4,432 0 2,098 190 dash
20 no-host configure.ocaml 558,083 0 0 0 4,432 0 1,914 190 osh-cpython
28 no-host configure.ocaml 317,572 0 0 0 4,440 0 1,995 328 osh-native
36 no-host configure.ocaml 315,705 0 0 0 4,440 0 1,998 206 osh-native-souffle
5 no-host configure.tcc 5,239 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,909 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,958 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,839 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,535,368 1 0 0 35,944 0 18,876 1,103 bash
11 no-host configure.util-linux 1,698,751 1 0 0 35,936 0 17,022 1,181 dash
19 no-host configure.util-linux 5,005,837 0 0 0 35,960 0 17,516 1,038 osh-cpython
27 no-host configure.util-linux 1,725,494 1 0 0 35,944 0 17,483 1,145 osh-native
35 no-host configure.util-linux 1,706,274 1 0 0 35,944 0 17,492 1,123 osh-native-souffle
6 no-host configure.yash 173,550 0 0 0 3,616 0 874 96 bash
14 no-host configure.yash 159,501 0 0 0 3,616 0 999 95 dash
22 no-host configure.yash 316,461 0 0 0 3,616 0 860 103 osh-cpython
30 no-host configure.yash 179,660 0 0 0 3,624 0 852 104 osh-native
38 no-host configure.yash 179,357 0 0 0 3,624 0 859 97 osh-native-souffle
0 no-host hello-world 151 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,896 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-193dcae1
dash dash-cea41b3e
osh-cpython osh-a159b430
osh-native osh-043e290f
osh-native-souffle osh-c3737248
host label host id
no-host no-host-2411472