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 22 22 33.21 1.37
bin-true no-host 613 435 2,516 799 799 4.10 1.30
configure.cpython no-host 13,873 14,280 30,331 14,609 14,585 2.19 1.05
configure.ocaml no-host 3,698 3,751 4,654 3,713 3,839 1.26 1.00
configure.tcc no-host 48 42 221 49 50 4.64 1.03
configure.util-linux no-host 12,728 13,725 32,512 13,590 13,762 2.55 1.07
configure.yash no-host 1,766 1,700 2,426 1,747 1,765 1.37 0.99
hello-world no-host 1 1 65 3 3 54.51 2.44

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,426 1,161 24,531 3,483 3,350 10.11 1.44
bin-true no-host 100,911 49,405 828,222 135,241 137,270 8.21 1.34
configure.cpython no-host 1,629,492 1,644,932 5,963,640 1,811,865 1,778,582 3.66 1.11
configure.ocaml no-host 298,455 280,578 555,404 316,207 314,941 1.86 1.06
configure.tcc no-host 5,208 4,212 23,797 5,970 5,849 4.57 1.15
configure.util-linux no-host 1,535,345 1,697,932 4,976,817 1,725,838 1,707,061 3.24 1.12
configure.yash no-host 173,441 159,504 316,042 179,475 178,512 1.82 1.03
hello-world no-host 153 83 3,897 385 378 25.47 2.52

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 5.0 4.1 22.8 9.8 9.3 4.57 1.97
bin-true no-host 3.3 1.6 18.2 8.8 8.4 5.55 2.68
configure.cpython no-host 34.6 34.5 34.8 34.8 34.8 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.1 26.3 26.3 0.99 1.00
configure.util-linux no-host 39.7 39.5 39.9 39.9 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.1 33.3 33.1 0.99 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 703 1,880 1,243 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.8 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 14,609 1 66 15.2 34.8 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 13,590 3 62 21.4 39.9 2,707,122 126,354 66,586 113,462 1,294,567 1,299,093 32,539 41 133,172 1
configure.ocaml no-host 3,713 1 2 2.7 28.7 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,747 1 2 2.6 33.3 140,017 8,080 6,714 6,525 68,347 65,145 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,561 54,471 57,336 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.4 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,585 1 65 15.2 34.8 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,762 3 62 21.4 39.7 2,707,122 126,347 66,579 113,464 1,294,567 1,299,091 32,539 41 133,158 1
configure.ocaml no-host 3,839 1 2 2.7 28.7 149,873 12,470 6,513 7,820 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.3 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,765 1 2 2.6 33.1 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.3 116,367 64,433 42,634 4,562 54,471 57,334 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 7 9 5.0 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 528 477 55 22.8 osh-cpython
31 no-host abuild-print-help 22 10 12 9.8 osh-native
39 no-host abuild-print-help 22 12 11 9.3 osh-native-souffle
1 no-host bin-true 613 309 340 3.3 bash
9 no-host bin-true 435 278 164 1.6 dash
17 no-host bin-true 2,516 901 1,897 18.2 osh-cpython
25 no-host bin-true 799 314 500 8.8 osh-native
33 no-host bin-true 799 305 511 8.4 osh-native-souffle
2 no-host configure.cpython 13,873 7,482 6,763 34.6 bash
10 no-host configure.cpython 14,280 7,710 6,964 34.5 dash
18 no-host configure.cpython 30,331 16,650 15,729 34.8 osh-cpython
26 no-host configure.cpython 14,609 7,375 7,529 34.8 osh-native
34 no-host configure.cpython 14,585 7,318 7,429 34.8 osh-native-souffle
4 no-host configure.ocaml 3,698 1,476 1,261 28.7 bash
12 no-host configure.ocaml 3,751 1,490 1,284 28.5 dash
20 no-host configure.ocaml 4,654 2,066 1,810 28.7 osh-cpython
28 no-host configure.ocaml 3,713 1,477 1,277 28.7 osh-native
36 no-host configure.ocaml 3,839 1,549 1,331 28.7 osh-native-souffle
5 no-host configure.tcc 48 26 22 26.3 bash
13 no-host configure.tcc 42 21 22 26.1 dash
21 no-host configure.tcc 221 165 60 26.1 osh-cpython
29 no-host configure.tcc 49 24 26 26.3 osh-native
37 no-host configure.tcc 50 21 29 26.3 osh-native-souffle
3 no-host configure.util-linux 12,728 6,699 6,486 39.7 bash
11 no-host configure.util-linux 13,725 6,538 7,670 39.5 dash
19 no-host configure.util-linux 32,512 20,323 13,287 39.9 osh-cpython
27 no-host configure.util-linux 13,590 6,335 7,483 39.9 osh-native
35 no-host configure.util-linux 13,762 6,305 7,534 39.7 osh-native-souffle
6 no-host configure.yash 1,766 953 820 33.4 bash
14 no-host configure.yash 1,700 947 754 33.1 dash
22 no-host configure.yash 2,426 1,449 1,020 33.1 osh-cpython
30 no-host configure.yash 1,747 962 788 33.3 osh-native
38 no-host configure.yash 1,765 968 799 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 65 42 23 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 1 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,426 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,531 0 0 0 8 0 45 6 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,350 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,911 0 0 0 8 0 1,988 65 bash
9 no-host bin-true 49,405 0 0 0 8 0 2,984 40 dash
17 no-host bin-true 828,222 0 0 0 8 0 1,992 124 osh-cpython
25 no-host bin-true 135,241 0 0 0 16 0 1,968 90 osh-native
33 no-host bin-true 137,270 0 0 0 16 0 1,981 88 osh-native-souffle
2 no-host configure.cpython 1,629,492 0 0 0 25,272 0 14,064 1,039 bash
10 no-host configure.cpython 1,644,932 0 0 0 25,272 0 14,116 1,159 dash
18 no-host configure.cpython 5,963,640 0 0 0 25,272 0 12,868 868 osh-cpython
26 no-host configure.cpython 1,811,865 0 0 0 25,280 0 12,853 1,099 osh-native
34 no-host configure.cpython 1,778,582 0 0 0 25,280 0 12,852 1,023 osh-native-souffle
4 no-host configure.ocaml 298,455 0 0 0 4,432 0 2,010 204 bash
12 no-host configure.ocaml 280,578 0 0 0 4,432 0 2,103 218 dash
20 no-host configure.ocaml 555,404 0 0 0 4,464 0 1,914 185 osh-cpython
28 no-host configure.ocaml 316,207 0 0 0 4,440 0 1,992 219 osh-native
36 no-host configure.ocaml 314,941 0 0 0 4,440 0 1,997 200 osh-native-souffle
5 no-host configure.tcc 5,208 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,212 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,797 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,970 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,849 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,535,345 0 0 0 35,944 0 18,963 1,118 bash
11 no-host configure.util-linux 1,697,932 0 0 0 35,936 0 17,157 1,224 dash
19 no-host configure.util-linux 4,976,817 3 0 0 35,952 0 17,529 890 osh-cpython
27 no-host configure.util-linux 1,725,838 0 0 0 35,944 0 17,447 1,212 osh-native
35 no-host configure.util-linux 1,707,061 1 0 0 35,952 0 17,441 1,070 osh-native-souffle
6 no-host configure.yash 173,441 0 0 0 3,616 0 870 95 bash
14 no-host configure.yash 159,504 0 0 0 3,616 0 999 109 dash
22 no-host configure.yash 316,042 0 0 0 3,616 0 860 100 osh-cpython
30 no-host configure.yash 179,475 0 0 0 3,624 0 857 95 osh-native
38 no-host configure.yash 178,512 0 0 0 3,624 0 857 99 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,897 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 385 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-49e52b3e
dash dash-cea41b3e
osh-cpython osh-17e3f87c
osh-native osh-6f899915
osh-native-souffle osh-0b6e6d00
host label host id
no-host no-host-2411472