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 528 21 21 33.68 1.36
bin-true no-host 620 434 2,461 806 793 3.97 1.30
configure.cpython no-host 13,692 13,749 29,229 14,540 14,780 2.13 1.06
configure.ocaml no-host 3,631 3,605 4,634 3,708 3,708 1.28 1.02
configure.tcc no-host 46 43 223 48 49 4.88 1.06
configure.util-linux no-host 12,416 13,297 32,041 13,512 13,609 2.58 1.09
configure.yash no-host 1,716 1,629 2,422 1,704 1,709 1.41 0.99
hello-world no-host 1 1 60 3 3 52.01 2.47

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,391 1,172 24,905 3,483 3,351 10.42 1.46
bin-true no-host 103,972 49,359 837,045 139,302 133,253 8.05 1.34
configure.cpython no-host 1,624,930 1,634,586 5,947,754 1,803,920 1,802,113 3.66 1.11
configure.ocaml no-host 298,940 281,204 556,359 317,060 316,817 1.86 1.06
configure.tcc no-host 5,214 4,208 23,740 5,921 5,888 4.55 1.14
configure.util-linux no-host 1,534,472 1,695,146 4,957,239 1,715,482 1,709,955 3.23 1.12
configure.yash no-host 173,469 159,507 315,442 179,579 178,833 1.82 1.04
hello-world no-host 148 88 3,870 388 378 26.15 2.62

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.70 2.03
bin-true no-host 3.1 1.7 18.2 8.9 8.3 5.78 2.83
configure.cpython no-host 34.5 34.4 34.7 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.4 26.3 26.3 26.2 26.1 1.00 0.99
configure.util-linux no-host 39.9 39.6 39.7 39.6 39.6 1.00 0.99
configure.yash no-host 33.4 33.4 33.3 33.5 33.2 1.00 1.00
hello-world no-host 3.1 1.6 18.1 7.1 6.4 5.75 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 806 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,540 1 64 15.2 34.5 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,512 3 59 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,708 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 48 0 0 1.3 26.2 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,704 1 2 2.6 33.5 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 793 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,780 1 65 15.2 34.4 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,609 3 58 21.4 39.6 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,708 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 49 0 0 1.3 26.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.6 33.2 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.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 16 5 11 4.8 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 528 463 68 22.8 osh-cpython
31 no-host abuild-print-help 21 12 10 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.2 osh-native-souffle
1 no-host bin-true 620 309 350 3.1 bash
9 no-host bin-true 434 272 167 1.7 dash
17 no-host bin-true 2,461 896 1,834 18.2 osh-cpython
25 no-host bin-true 806 310 512 8.9 osh-native
33 no-host bin-true 793 300 511 8.3 osh-native-souffle
2 no-host configure.cpython 13,692 7,506 6,558 34.5 bash
10 no-host configure.cpython 13,749 7,474 6,663 34.4 dash
18 no-host configure.cpython 29,229 16,129 15,049 34.7 osh-cpython
26 no-host configure.cpython 14,540 7,386 7,451 34.5 osh-native
34 no-host configure.cpython 14,780 7,308 7,594 34.4 osh-native-souffle
4 no-host configure.ocaml 3,631 1,476 1,192 28.7 bash
12 no-host configure.ocaml 3,605 1,441 1,188 28.8 dash
20 no-host configure.ocaml 4,634 2,083 1,772 28.8 osh-cpython
28 no-host configure.ocaml 3,708 1,448 1,301 28.7 osh-native
36 no-host configure.ocaml 3,708 1,455 1,292 28.7 osh-native-souffle
5 no-host configure.tcc 46 26 20 26.4 bash
13 no-host configure.tcc 43 26 17 26.3 dash
21 no-host configure.tcc 223 163 63 26.3 osh-cpython
29 no-host configure.tcc 48 26 22 26.2 osh-native
37 no-host configure.tcc 49 27 22 26.1 osh-native-souffle
3 no-host configure.util-linux 12,416 6,411 6,457 39.9 bash
11 no-host configure.util-linux 13,297 6,495 7,286 39.6 dash
19 no-host configure.util-linux 32,041 20,263 12,840 39.7 osh-cpython
27 no-host configure.util-linux 13,512 6,305 7,432 39.6 osh-native
35 no-host configure.util-linux 13,609 6,174 7,511 39.6 osh-native-souffle
6 no-host configure.yash 1,716 994 730 33.4 bash
14 no-host configure.yash 1,629 939 690 33.4 dash
22 no-host configure.yash 2,422 1,410 1,055 33.3 osh-cpython
30 no-host configure.yash 1,704 934 772 33.5 osh-native
38 no-host configure.yash 1,709 959 752 33.2 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 36 24 18.1 osh-cpython
24 no-host hello-world 3 3 0 7.1 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,391 0 0 0 8 0 42 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,905 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,483 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,351 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 103,972 0 0 0 8 0 1,983 63 bash
9 no-host bin-true 49,359 0 0 0 8 0 2,981 43 dash
17 no-host bin-true 837,045 0 0 0 8 0 1,990 127 osh-cpython
25 no-host bin-true 139,302 0 0 0 16 0 1,977 74 osh-native
33 no-host bin-true 133,253 0 0 0 16 0 1,984 66 osh-native-souffle
2 no-host configure.cpython 1,624,930 0 0 0 25,272 0 14,013 1,065 bash
10 no-host configure.cpython 1,634,586 0 0 0 25,272 0 14,072 1,050 dash
18 no-host configure.cpython 5,947,754 0 0 0 25,272 0 12,847 907 osh-cpython
26 no-host configure.cpython 1,803,920 0 0 0 25,280 0 12,830 1,042 osh-native
34 no-host configure.cpython 1,802,113 0 0 0 25,280 0 12,862 1,026 osh-native-souffle
4 no-host configure.ocaml 298,940 0 0 0 4,432 0 2,007 204 bash
12 no-host configure.ocaml 281,204 0 0 0 4,432 0 2,077 200 dash
20 no-host configure.ocaml 556,359 0 0 0 4,432 0 1,911 208 osh-cpython
28 no-host configure.ocaml 317,060 0 0 0 4,440 0 1,988 231 osh-native
36 no-host configure.ocaml 316,817 0 0 0 4,440 0 1,997 196 osh-native-souffle
5 no-host configure.tcc 5,214 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,740 0 0 0 88 0 53 7 osh-cpython
29 no-host configure.tcc 5,921 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,888 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,534,472 1 0 0 35,944 0 18,931 1,096 bash
11 no-host configure.util-linux 1,695,146 0 0 0 35,936 0 17,046 1,183 dash
19 no-host configure.util-linux 4,957,239 0 0 0 35,952 0 17,525 851 osh-cpython
27 no-host configure.util-linux 1,715,482 0 0 0 35,944 0 17,505 1,075 osh-native
35 no-host configure.util-linux 1,709,955 1 0 0 35,944 0 17,509 1,133 osh-native-souffle
6 no-host configure.yash 173,469 0 0 0 3,616 0 878 100 bash
14 no-host configure.yash 159,507 0 0 0 3,624 0 1,000 104 dash
22 no-host configure.yash 315,442 0 0 0 3,616 0 861 107 osh-cpython
30 no-host configure.yash 179,579 0 0 0 3,624 0 857 100 osh-native
38 no-host configure.yash 178,833 0 0 0 3,624 0 857 106 osh-native-souffle
0 no-host hello-world 148 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,870 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 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-79aa41ae
dash dash-cea41b3e
osh-cpython osh-383f0f19
osh-native osh-c79533ea
osh-native-souffle osh-871b7dfd
host label host id
no-host no-host-2411472