Skip to content

Commit

Permalink
v 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgerator committed Nov 27, 2016
1 parent f4988cf commit 212e449
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ user.as(User) unless user.nil?
changeset = Crecto::Repo.delete(user)
```

## Some Benchmarks
## Performance

#### crystal:

* crystal 0.20.0

`elapsed: 2.6528820` seconds

```Crystal
require "crecto"
Expand Down Expand Up @@ -145,7 +151,13 @@ end
end_time = Time.now
puts "elapsed: #{end_time - start_time}"
```
`elapsed: 00:00:02.6528820`

#### Ruby / Rails

* ruby 2.3.1
* rails 5.0.0

`elapsed: 14.624411` seconds

```Ruby
class User < ApplicationRecord
Expand All @@ -165,7 +177,6 @@ end
end_time = Time.now
puts "elapsed: #{end_time-start_time}"
```
`elapsed: 14.624411`

## Contributing

Expand Down

0 comments on commit 212e449

Please sign in to comment.