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 547 22 22 35.76 1.42
bin-true no-host 617 436 2,443 812 797 3.96 1.32
configure.cpython no-host 13,647 13,792 29,397 14,715 14,479 2.15 1.08
configure.ocaml no-host 3,729 3,640 4,591 3,682 3,674 1.23 0.99
configure.tcc no-host 46 41 218 49 48 4.73 1.06
configure.util-linux no-host 12,444 13,538 32,179 13,493 13,482 2.59 1.08
configure.yash no-host 1,670 1,647 2,428 1,694 1,692 1.45 1.01
hello-world no-host 1 1 60 3 3 50.70 2.56

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,384 1,163 24,850 3,489 3,380 10.42 1.46
bin-true no-host 103,966 49,382 836,069 137,342 135,281 8.04 1.32
configure.cpython no-host 1,621,541 1,636,438 5,959,623 1,799,897 1,787,957 3.68 1.11
configure.ocaml no-host 299,146 281,066 556,449 316,659 316,241 1.86 1.06
configure.tcc no-host 5,192 4,217 23,750 5,966 5,856 4.57 1.15
configure.util-linux no-host 1,531,311 1,693,052 4,963,420 1,725,330 1,710,011 3.24 1.13
configure.yash no-host 173,608 159,501 314,976 179,169 178,911 1.81 1.03
hello-world no-host 150 86 3,873 387 382 25.82 2.58

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.7 9.8 9.2 4.80 2.08
bin-true no-host 3.3 1.4 18.1 8.8 8.3 5.51 2.68
configure.cpython no-host 34.3 34.5 34.6 34.5 34.4 1.01 1.01
configure.ocaml no-host 28.7 28.7 28.6 28.8 28.7 1.00 1.00
configure.tcc no-host 26.3 26.0 26.2 26.0 26.4 1.00 0.99
configure.util-linux no-host 39.5 39.9 39.5 40.0 39.7 1.00 1.01
configure.yash no-host 33.5 33.1 33.2 33.1 33.3 0.99 0.99
hello-world no-host 3.3 1.6 18.1 7.2 6.6 5.51 2.20

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.2 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 812 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,715 1 66 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,493 3 59 21.4 40.0 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,682 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.0 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,694 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 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 797 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,479 1 63 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,482 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,674 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.4 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,692 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 22 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 9 7 4.7 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 547 483 67 22.7 osh-cpython
31 no-host abuild-print-help 22 8 14 9.8 osh-native
39 no-host abuild-print-help 22 11 12 9.2 osh-native-souffle
1 no-host bin-true 617 314 344 3.3 bash
9 no-host bin-true 436 266 175 1.4 dash
17 no-host bin-true 2,443 903 1,807 18.1 osh-cpython
25 no-host bin-true 812 312 516 8.8 osh-native
33 no-host bin-true 797 305 507 8.3 osh-native-souffle
2 no-host configure.cpython 13,647 7,441 6,582 34.3 bash
10 no-host configure.cpython 13,792 7,477 6,675 34.5 dash
18 no-host configure.cpython 29,397 16,177 15,189 34.6 osh-cpython
26 no-host configure.cpython 14,715 7,288 7,613 34.5 osh-native
34 no-host configure.cpython 14,479 7,227 7,342 34.4 osh-native-souffle
4 no-host configure.ocaml 3,729 1,494 1,275 28.7 bash
12 no-host configure.ocaml 3,640 1,489 1,175 28.7 dash
20 no-host configure.ocaml 4,591 2,060 1,751 28.6 osh-cpython
28 no-host configure.ocaml 3,682 1,485 1,238 28.8 osh-native
36 no-host configure.ocaml 3,674 1,448 1,265 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.3 bash
13 no-host configure.tcc 41 23 19 26.0 dash
21 no-host configure.tcc 218 151 71 26.2 osh-cpython
29 no-host configure.tcc 49 26 23 26.0 osh-native
37 no-host configure.tcc 48 22 27 26.4 osh-native-souffle
3 no-host configure.util-linux 12,444 6,543 6,352 39.5 bash
11 no-host configure.util-linux 13,538 6,484 7,400 39.9 dash
19 no-host configure.util-linux 32,179 20,215 13,044 39.5 osh-cpython
27 no-host configure.util-linux 13,493 6,299 7,364 40.0 osh-native
35 no-host configure.util-linux 13,482 6,175 7,385 39.7 osh-native-souffle
6 no-host configure.yash 1,670 936 742 33.5 bash
14 no-host configure.yash 1,647 955 689 33.1 dash
22 no-host configure.yash 2,428 1,481 989 33.2 osh-cpython
30 no-host configure.yash 1,694 914 783 33.1 osh-native
38 no-host configure.yash 1,692 953 741 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 42 18 18.1 osh-cpython
24 no-host hello-world 3 2 1 7.2 osh-native
32 no-host hello-world 3 1 2 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,384 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,850 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,489 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,380 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 103,966 0 0 0 8 0 1,993 61 bash
9 no-host bin-true 49,382 0 0 0 8 0 2,974 48 dash
17 no-host bin-true 836,069 0 0 0 8 0 1,993 103 osh-cpython
25 no-host bin-true 137,342 0 0 0 16 0 1,971 92 osh-native
33 no-host bin-true 135,281 0 0 0 16 0 1,966 90 osh-native-souffle
2 no-host configure.cpython 1,621,541 0 0 0 25,272 0 14,043 1,092 bash
10 no-host configure.cpython 1,636,438 0 0 0 25,272 0 14,108 1,084 dash
18 no-host configure.cpython 5,959,623 0 0 0 25,272 0 12,853 881 osh-cpython
26 no-host configure.cpython 1,799,897 0 0 0 25,280 0 12,823 1,016 osh-native
34 no-host configure.cpython 1,787,957 0 0 0 25,280 0 12,845 1,053 osh-native-souffle
4 no-host configure.ocaml 299,146 0 0 0 4,432 0 2,011 202 bash
12 no-host configure.ocaml 281,066 0 0 0 4,432 0 2,097 202 dash
20 no-host configure.ocaml 556,449 0 0 0 4,432 0 1,908 194 osh-cpython
28 no-host configure.ocaml 316,659 0 0 0 4,440 0 1,996 213 osh-native
36 no-host configure.ocaml 316,241 0 0 0 4,440 0 1,995 202 osh-native-souffle
5 no-host configure.tcc 5,192 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,750 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,966 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,856 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,531,311 1 0 0 35,944 0 18,971 1,049 bash
11 no-host configure.util-linux 1,693,052 0 0 0 35,936 0 17,097 1,223 dash
19 no-host configure.util-linux 4,963,420 1 0 0 35,944 0 17,468 986 osh-cpython
27 no-host configure.util-linux 1,725,330 1 0 0 35,944 0 17,514 1,080 osh-native
35 no-host configure.util-linux 1,710,011 1 0 0 35,944 0 17,503 1,105 osh-native-souffle
6 no-host configure.yash 173,608 0 0 0 3,616 0 873 104 bash
14 no-host configure.yash 159,501 0 0 0 3,624 0 995 110 dash
22 no-host configure.yash 314,976 0 0 0 3,616 0 862 103 osh-cpython
30 no-host configure.yash 179,169 0 0 0 3,624 0 857 114 osh-native
38 no-host configure.yash 178,911 0 0 0 3,624 0 861 104 osh-native-souffle
0 no-host hello-world 150 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,873 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 382 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5fa74cd0
dash dash-cea41b3e
osh-cpython osh-3f44401a
osh-native osh-fdceda3e
osh-native-souffle osh-454243cb
host label host id
no-host no-host-2411472