Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions bench/algorithm/edigits/1.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import strconv
import math.big
import math

const (
one = big.integer_from_int(1)
ten = big.integer_from_int(10)
)
const one = big.integer_from_int(1)
const ten = big.integer_from_int(10)

fn main() {
mut n := 27
Expand Down
6 changes: 3 additions & 3 deletions bench/algorithm/json-serde/1.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ fn main() {
}

struct GeoData {
t string [json: 'type']
t string @[json: 'type']
features []Feature
}

struct Feature {
t string [json: 'type']
t string @[json: 'type']
properties Properties
geometry Geometry
}
Expand All @@ -34,6 +34,6 @@ struct Properties {
}

struct Geometry {
t string [json: 'type']
t string @[json: 'type']
coordinates [][][]f64
}
8 changes: 3 additions & 5 deletions bench/algorithm/lru/1.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ module main
import os
import strconv

const (
a = u32(1103515245)
c = u32(12345)
m = u32(1) << 31
)
const a = u32(1103515245)
const c = u32(12345)
const m = u32(1) << 31

struct LCG {
mut:
Expand Down
8 changes: 3 additions & 5 deletions bench/algorithm/lru/2.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ module main
import os
import strconv

const (
a = u32(1103515245)
c = u32(12345)
m = u32(1) << 31
)
const a = u32(1103515245)
const c = u32(12345)
const m = u32(1) << 31

struct LCG {
mut:
Expand Down
8 changes: 3 additions & 5 deletions bench/algorithm/nbody/1.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import math
import strconv
import os

const (
solar_mass = 4.0 * math.pi * math.pi
days_per_year = 365.24
c_n = 5
)
const solar_mass = 4.0 * math.pi * math.pi
const days_per_year = 365.24
const c_n = 5

struct Body {
pub mut:
Expand Down
14 changes: 6 additions & 8 deletions bench/algorithm/pidigits/2.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ import strconv
import math.big
import strings

const (
zero = big.integer_from_int(0)
one = big.integer_from_int(1)
two = big.integer_from_int(2)
three = big.integer_from_int(3)
four = big.integer_from_int(4)
ten = big.integer_from_int(10)
)
const zero = big.integer_from_int(0)
const one = big.integer_from_int(1)
const two = big.integer_from_int(2)
const three = big.integer_from_int(3)
const four = big.integer_from_int(4)
const ten = big.integer_from_int(10)

fn main() {
mut n := 27
Expand Down