Skip to content

Commit 192bb5e

Browse files
Merge pull request #55 from maejima-fumika/add-benchmarks
Add benchmarks and fix some bugs of docker compose for artifact evaluation.
2 parents 49843f1 + e7609be commit 192bb5e

File tree

48 files changed

+4746
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4746
-276
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Benchmark programs
2+
3+
This directory contains BlueScript programs derived from [the "Are We Fast Yet?" benchmark suite](https://github.com/smarr/are-we-fast-yet).
4+
5+
The programs under `bluescript` are fully type-annotated, but the programs under `bluescript-without-type` are not
6+
type-annotated.
7+

benchmarks/are-we-fast-yet/bluescript-without-type/bounce.bs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1+
// This code is derived from "Are We Fast Yet?" benchmarks (https://github.com/smarr/are-we-fast-yet/).
2+
//
3+
// Copyright (c) 2015-2016 Stefan Marr <git@stefan-marr.de>
4+
// Copyright (c) 2024 Fumika Mochizuki.
5+
//
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the 'Software'), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in
14+
// all copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
// THE SOFTWARE.
123

2-
import { integer, float, Array } from "../../../../bluescript/modules/base";
3-
import { assert, abs, fabs, sqrt } from "../../../../bluescript/modules/esp32/bluescript/utils";
424

525
const RESULT = 1331;
626

@@ -90,5 +110,3 @@ function benchmark(cycle) {
90110
}
91111

92112

93-
benchmark(3);
94-

0 commit comments

Comments
 (0)