Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Aug 27, 2022
1 parent c0eafd0 commit 5ca13bd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion bench/algorithm/knucleotide/1.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ pub fn readInput() ![]const u8 {
defer std.process.argsFree(global_allocator, args);
const file_name = if (args.len > 1) args[1] else "25000_in";
const file = try std.fs.cwd().openFile(file_name, .{});
const reader = std.io.bufferedReader(file.reader()).reader();
var buffered_reader = std.io.bufferedReader(file.reader());
const reader = buffered_reader.reader();
{ // skip past first lines starting with '>'
var i: u8 = 0;
while (i < 3) : (i += 1) {
Expand Down
2 changes: 1 addition & 1 deletion bench/algorithm/nbody/2.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn offset_momentum(bodies: []Body) void {
var pos = vec3{ 0, 0, 0 };
for (bodies) |b| pos += scale(b.vel, b.mass);
var sun = &bodies[0];
sun.vel = -scale(pos, 1 / solar_mass);
sun.vel = -scale(pos, 1.0 / solar_mass);
}

fn advance(bodies: []Body, dt: f64) void {
Expand Down
18 changes: 13 additions & 5 deletions bench/bench_zig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ problems:
- 1.zig
- name: nsieve
source:
- 1.zig
# - 1.zig
- 2.zig
- name: mandelbrot
source:
Expand All @@ -49,9 +49,9 @@ problems:
- name: json-serde
source:
- 1.zig
- name: coro-prime-sieve
source:
- 1.zig
# - name: coro-prime-sieve
# source:
# - 1.zig
- name: knucleotide
source:
- 1.zig
Expand All @@ -66,6 +66,14 @@ environments:
version: latest
docker:
include: zig
build: zig build -Dcpu=broadwell --verbose-llvm-cpu-features
build: zig build -Dcpu=broadwell -fno-stage1 --verbose-llvm-cpu-features
out_dir: zig-out/bin
run_cmd: app
# - os: linux
# compiler: zig/stage1
# version: latest
# docker:
# include: zig
# build: zig build -Dcpu=broadwell -fstage1 --verbose-llvm-cpu-features
# out_dir: zig-out/bin
# run_cmd: app
2 changes: 1 addition & 1 deletion bench/include/kotlin-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
// implementation(kotlin("stdlib"))
// implementation("org.slf4j:slf4j-api:1.7.36")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
val ktor_version = "2.1.0"
implementation("io.ktor:ktor-server-core:$ktor_version")
// implementation("io.ktor:ktor-server-netty:$ktor_version")
Expand Down
2 changes: 1 addition & 1 deletion bench/include/kotlin-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kotlin {
implementation(libs.kbignum)
// implementation("com.ionspin.kotlin:bignum:0.3.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
}
}
}
Expand Down

0 comments on commit 5ca13bd

Please sign in to comment.