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 19 10 467 22 22 24.45 1.16
bin-true no-host 679 550 2,297 821 821 3.38 1.21
configure.cpython no-host 14,968 15,329 29,330 15,463 15,533 1.96 1.03
configure.ocaml no-host 3,852 3,740 4,741 3,872 3,895 1.23 1.01
configure.tcc no-host 49 42 203 54 49 4.16 1.11
configure.util-linux no-host 13,878 15,092 31,782 14,488 14,429 2.29 1.04
configure.yash no-host 1,853 1,774 2,508 1,861 1,913 1.35 1.00
hello-world no-host 1 1 57 3 3 38.63 1.89

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,517 1,098 23,725 3,164 3,119 9.43 1.26
bin-true no-host 106,310 66,523 778,370 125,163 126,204 7.32 1.18
configure.cpython no-host 2,229,751 2,247,023 6,211,281 2,216,098 2,217,274 2.79 0.99
configure.ocaml no-host 410,860 390,920 646,752 412,624 411,952 1.57 1.00
configure.tcc no-host 6,548 5,476 24,004 6,969 6,940 3.67 1.06
configure.util-linux no-host 2,094,967 2,257,749 5,370,448 2,003,847 1,989,160 2.56 0.96
configure.yash no-host 256,066 244,458 388,510 258,045 258,182 1.52 1.01
hello-world no-host 154 80 3,999 342 339 25.97 2.22

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.3 3.4 22.8 9.2 8.7 5.28 2.12
bin-true no-host 3.0 1.4 18.4 8.1 7.6 6.10 2.70
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.0 30.1 30.1 0.99 1.00
configure.yash no-host 24.2 24.5 24.2 24.2 24.2 1.00 1.00
hello-world no-host 2.9 1.4 18.2 6.2 5.8 6.33 2.14

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.2 3,790 3,790 0 697 1,863 1,230 2 0 50,000 0
bin-true no-host 821 1 2 2.6 8.1 153,754 12,327 2,892 8,746 76,327 68,681 3,008 3 50,000 0
configure.cpython no-host 15,463 1 66 14.9 27.4 1,771,755 49,130 28,517 85,418 878,120 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,488 3 62 21.2 30.1 2,702,521 45,805 65,716 108,694 1,290,645 1,303,182 32,239 41 131,432 1
configure.ocaml no-host 3,872 1 2 2.6 20.6 150,088 11,117 5,212 7,511 70,974 71,603 1,695 3 50,000 0
configure.tcc no-host 54 0 0 1.3 19.3 30,594 30,594 0 1,521 14,646 14,427 271 0 50,000 0
configure.yash no-host 1,861 1 2 2.6 24.2 139,420 8,029 6,691 5,992 67,947 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,300 64,408 42,618 4,535 54,441 57,324 277 3 85,236 1
hello-world no-host 3 0 0 0.3 5.8 3,789 3,789 0 698 1,863 1,228 2 0 50,000 0
bin-true no-host 821 1 2 2.6 7.6 153,753 12,116 2,830 8,747 76,327 68,679 3,008 3 50,000 0
configure.cpython no-host 15,533 1 64 14.9 27.4 1,771,754 49,068 28,455 85,419 878,120 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,429 3 62 21.2 30.1 2,702,521 53,698 65,654 108,696 1,290,645 1,303,180 32,239 41 131,308 1
configure.ocaml no-host 3,895 1 2 2.6 20.6 150,088 11,055 5,150 7,513 70,974 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,594 30,594 0 1,523 14,646 14,425 271 0 50,000 0
configure.yash no-host 1,913 1 2 2.6 24.2 139,420 7,967 6,629 5,994 67,947 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,299 64,346 42,556 4,536 54,441 57,322 277 3 85,112 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 19 13 7 4.3 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 467 429 41 22.8 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 22 14 9 8.7 osh-native-souffle
1 no-host bin-true 679 496 213 3.0 bash
9 no-host bin-true 550 416 142 1.4 dash
17 no-host bin-true 2,297 1,485 1,071 18.4 osh-cpython
25 no-host bin-true 821 588 248 8.1 osh-native
33 no-host bin-true 821 560 276 7.6 osh-native-souffle
2 no-host configure.cpython 14,968 9,056 6,317 27.4 bash
10 no-host configure.cpython 15,329 9,309 6,448 27.3 dash
18 no-host configure.cpython 29,330 17,679 13,564 27.4 osh-cpython
26 no-host configure.cpython 15,463 9,303 6,428 27.4 osh-native
34 no-host configure.cpython 15,533 9,194 6,482 27.4 osh-native-souffle
4 no-host configure.ocaml 3,852 1,675 1,209 20.6 bash
12 no-host configure.ocaml 3,740 1,532 1,227 20.6 dash
20 no-host configure.ocaml 4,741 2,300 1,661 20.6 osh-cpython
28 no-host configure.ocaml 3,872 1,601 1,310 20.6 osh-native
36 no-host configure.ocaml 3,895 1,693 1,238 20.6 osh-native-souffle
5 no-host configure.tcc 49 37 12 19.3 bash
13 no-host configure.tcc 42 24 18 19.4 dash
21 no-host configure.tcc 203 140 67 19.3 osh-cpython
29 no-host configure.tcc 54 33 22 19.3 osh-native
37 no-host configure.tcc 49 21 29 19.4 osh-native-souffle
3 no-host configure.util-linux 13,878 8,704 5,654 30.3 bash
11 no-host configure.util-linux 15,092 9,283 6,306 30.1 dash
19 no-host configure.util-linux 31,782 21,396 11,492 30.0 osh-cpython
27 no-host configure.util-linux 14,488 8,695 5,997 30.1 osh-native
35 no-host configure.util-linux 14,429 8,777 5,856 30.1 osh-native-souffle
6 no-host configure.yash 1,853 1,046 816 24.2 bash
14 no-host configure.yash 1,774 987 790 24.5 dash
22 no-host configure.yash 2,508 1,554 998 24.2 osh-cpython
30 no-host configure.yash 1,861 1,046 819 24.2 osh-native
38 no-host configure.yash 1,913 1,130 756 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 45 12 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 0 3 5.8 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,517 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,725 0 0 0 8 0 45 17 osh-cpython
31 no-host abuild-print-help 3,164 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,119 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,310 0 0 0 8 0 1,983 51 bash
9 no-host bin-true 66,523 0 0 0 8 0 1,988 40 dash
17 no-host bin-true 778,370 0 0 0 8 0 1,986 100 osh-cpython
25 no-host bin-true 125,163 0 0 0 16 0 1,989 145 osh-native
33 no-host bin-true 126,204 0 0 0 16 0 1,985 45 osh-native-souffle
2 no-host configure.cpython 2,229,751 0 0 0 32,928 0 14,472 1,188 bash
10 no-host configure.cpython 2,247,023 0 0 0 32,992 0 14,590 1,010 dash
18 no-host configure.cpython 6,211,281 0 0 0 27,512 0 13,257 1,136 osh-cpython
26 no-host configure.cpython 2,216,098 0 0 0 27,520 0 13,259 992 osh-native
34 no-host configure.cpython 2,217,274 1 0 0 27,520 0 13,223 1,014 osh-native-souffle
4 no-host configure.ocaml 410,860 0 0 0 5,120 0 1,945 133 bash
12 no-host configure.ocaml 390,920 0 0 0 5,112 0 1,870 141 dash
20 no-host configure.ocaml 646,752 0 0 0 5,112 0 1,862 172 osh-cpython
28 no-host configure.ocaml 412,624 0 0 0 5,120 0 1,923 250 osh-native
36 no-host configure.ocaml 411,952 0 0 0 5,120 0 1,936 154 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,004 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,940 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,094,967 0 0 0 42,400 0 18,624 967 bash
11 no-host configure.util-linux 2,257,749 0 0 0 42,584 0 17,437 1,206 dash
19 no-host configure.util-linux 5,370,448 9 0 0 39,112 0 16,950 1,306 osh-cpython
27 no-host configure.util-linux 2,003,847 1 0 0 39,128 0 16,955 986 osh-native
35 no-host configure.util-linux 1,989,160 0 0 0 39,136 0 16,971 971 osh-native-souffle
6 no-host configure.yash 256,066 0 0 0 4,120 0 867 94 bash
14 no-host configure.yash 244,458 0 0 0 3,720 0 871 99 dash
22 no-host configure.yash 388,510 0 0 0 3,728 0 852 99 osh-cpython
30 no-host configure.yash 258,045 0 0 0 3,736 0 847 81 osh-native
38 no-host configure.yash 258,182 0 0 0 3,736 0 851 76 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,999 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-edf483c2
dash dash-0ebcf347
osh-cpython osh-2475bb5d
osh-native osh-d05b3a84
osh-native-souffle osh-f8c63a02
host label host id
no-host no-host-556df3ee