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 521 22 20 33.68 1.42
bin-true no-host 611 433 2,423 794 794 3.97 1.30
configure.cpython no-host 13,568 13,622 28,956 14,404 14,516 2.13 1.06
configure.ocaml no-host 3,626 3,650 4,594 3,682 3,717 1.27 1.02
configure.tcc no-host 46 41 219 49 48 4.79 1.06
configure.util-linux no-host 12,310 13,201 31,707 13,384 13,569 2.58 1.09
configure.yash no-host 1,696 1,615 2,390 1,709 1,717 1.41 1.01
hello-world no-host 1 1 61 3 3 50.58 2.38

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,393 1,161 24,593 3,422 3,366 10.28 1.43
bin-true no-host 100,904 49,375 827,320 137,295 135,281 8.20 1.36
configure.cpython no-host 1,624,987 1,648,586 5,972,328 1,800,075 1,784,926 3.68 1.11
configure.ocaml no-host 298,926 280,526 555,034 316,415 316,542 1.86 1.06
configure.tcc no-host 5,201 4,195 23,800 5,963 5,864 4.58 1.15
configure.util-linux no-host 1,533,619 1,697,382 4,979,481 1,714,899 1,715,312 3.25 1.12
configure.yash no-host 173,398 159,563 315,700 179,363 178,628 1.82 1.03
hello-world no-host 152 89 3,895 387 379 25.62 2.55

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.8 22.8 9.8 9.2 4.70 2.03
bin-true no-host 3.3 1.4 18.2 8.8 8.3 5.55 2.68
configure.cpython no-host 34.6 34.7 34.5 34.4 34.7 1.00 0.99
configure.ocaml no-host 28.6 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.2 33.4 33.1 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 18.2 7.1 6.7 5.55 2.16

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 703 1,880 1,243 2 0 50,000 0
bin-true no-host 794 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,404 1 64 15.2 34.4 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,384 3 58 21.4 39.6 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,682 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,709 1 2 2.6 33.4 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.7 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.3 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,516 1 64 15.2 34.7 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,569 3 60 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,717 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 48 0 0 1.3 26.2 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,717 1 2 2.6 33.4 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.2 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 15 8 8 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 521 467 58 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.2 osh-native-souffle
1 no-host bin-true 611 309 337 3.3 bash
9 no-host bin-true 433 282 156 1.4 dash
17 no-host bin-true 2,423 851 1,836 18.2 osh-cpython
25 no-host bin-true 794 303 510 8.8 osh-native
33 no-host bin-true 794 313 495 8.3 osh-native-souffle
2 no-host configure.cpython 13,568 7,522 6,413 34.6 bash
10 no-host configure.cpython 13,622 7,439 6,571 34.7 dash
18 no-host configure.cpython 28,956 15,868 15,050 34.5 osh-cpython
26 no-host configure.cpython 14,404 7,312 7,372 34.4 osh-native
34 no-host configure.cpython 14,516 7,303 7,335 34.7 osh-native-souffle
4 no-host configure.ocaml 3,626 1,437 1,226 28.6 bash
12 no-host configure.ocaml 3,650 1,441 1,229 28.7 dash
20 no-host configure.ocaml 4,594 2,111 1,701 28.6 osh-cpython
28 no-host configure.ocaml 3,682 1,456 1,264 28.7 osh-native
36 no-host configure.ocaml 3,717 1,470 1,286 28.7 osh-native-souffle
5 no-host configure.tcc 46 20 26 26.1 bash
13 no-host configure.tcc 41 23 19 26.2 dash
21 no-host configure.tcc 219 152 71 26.2 osh-cpython
29 no-host configure.tcc 49 25 24 26.3 osh-native
37 no-host configure.tcc 48 23 25 26.2 osh-native-souffle
3 no-host configure.util-linux 12,310 6,455 6,306 39.6 bash
11 no-host configure.util-linux 13,201 6,262 7,422 39.7 dash
19 no-host configure.util-linux 31,707 19,864 12,897 39.6 osh-cpython
27 no-host configure.util-linux 13,384 6,227 7,382 39.6 osh-native
35 no-host configure.util-linux 13,569 6,243 7,401 39.7 osh-native-souffle
6 no-host configure.yash 1,696 960 744 33.2 bash
14 no-host configure.yash 1,615 928 688 33.4 dash
22 no-host configure.yash 2,390 1,454 978 33.1 osh-cpython
30 no-host configure.yash 1,709 922 788 33.4 osh-native
38 no-host configure.yash 1,717 958 762 33.4 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 61 35 26 18.2 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 1 2 6.7 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,393 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,593 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,422 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,366 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,904 0 0 0 8 0 1,980 71 bash
9 no-host bin-true 49,375 0 0 0 8 0 2,981 52 dash
17 no-host bin-true 827,320 0 0 0 8 0 1,989 133 osh-cpython
25 no-host bin-true 137,295 0 0 0 16 0 1,990 98 osh-native
33 no-host bin-true 135,281 0 0 0 16 0 1,966 98 osh-native-souffle
2 no-host configure.cpython 1,624,987 0 0 0 25,272 0 14,024 1,027 bash
10 no-host configure.cpython 1,648,586 0 0 0 25,272 0 14,063 1,035 dash
18 no-host configure.cpython 5,972,328 0 0 0 25,272 0 12,875 897 osh-cpython
26 no-host configure.cpython 1,800,075 0 0 0 25,280 0 12,841 1,024 osh-native
34 no-host configure.cpython 1,784,926 0 0 0 25,280 0 12,850 1,065 osh-native-souffle
4 no-host configure.ocaml 298,926 0 0 0 4,432 0 2,010 207 bash
12 no-host configure.ocaml 280,526 0 0 0 4,432 0 2,104 216 dash
20 no-host configure.ocaml 555,034 0 0 0 4,432 0 1,910 207 osh-cpython
28 no-host configure.ocaml 316,415 0 0 0 4,440 0 1,999 216 osh-native
36 no-host configure.ocaml 316,542 0 0 0 4,440 0 1,991 197 osh-native-souffle
5 no-host configure.tcc 5,201 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,800 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,963 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,864 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,533,619 1 0 0 35,944 0 18,987 1,108 bash
11 no-host configure.util-linux 1,697,382 1 0 0 35,936 0 17,114 1,191 dash
19 no-host configure.util-linux 4,979,481 0 0 0 35,944 0 17,525 945 osh-cpython
27 no-host configure.util-linux 1,714,899 1 0 0 35,944 0 17,458 1,108 osh-native
35 no-host configure.util-linux 1,715,312 1 0 0 35,944 0 17,516 1,158 osh-native-souffle
6 no-host configure.yash 173,398 0 0 0 3,616 0 875 112 bash
14 no-host configure.yash 159,563 0 0 0 3,616 0 989 105 dash
22 no-host configure.yash 315,700 0 0 0 3,616 0 858 109 osh-cpython
30 no-host configure.yash 179,363 0 0 0 3,624 0 850 220 osh-native
38 no-host configure.yash 178,628 0 0 0 3,632 0 857 105 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,895 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 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-00e18449
dash dash-cea41b3e
osh-cpython osh-df763290
osh-native osh-944d0eee
osh-native-souffle osh-c6ddc8cb
host label host id
no-host no-host-2411472